leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

This Repository Contain LEETCODE Solutions using Golang & Dart Programming language.

trafficstars

image

This repo contain leetcode solution using DART and GO programming language. You can find the Question Instructions in DART file. And I have done multiple Solutions in dart and Best adn the Fastest Possible Solution in GO Most of the solution.

Solutions

  • 67. Add Binary
  • 948. Bag of Tokens
  • 110. Balanced Binary Tree
  • 188. Best Time to Buy and Sell Stock IV
  • 94. Binary Tree In Order Traversal
  • 70. Climbing Stairs
  • 108. Convert Sorted Array To Binary Search Tree
  • 609. Find Duplicate File in System
  • 2007. Find Original Array From Double Array
  • 28. Implement str Str
  • 58. Length of Last word
  • 14. Longest Common Prefix
  • 104. Maximum Depth of Binary tree
  • 718. Maximum Length of Repeated SubArray
  • 1383. Maximum Performance of a Team
  • 88. Merge Sorted Array
  • 21. Merge Two Sorted Lists
  • 111. Minimum Depth of Binary Tree
  • 9. Palindrome Number
  • 118. Pascal's Triangle
  • 112. Path Sum
  • 66. Plus One
  • 1457. Pseudo-Palindrome Path In A Binary Tree
  • 26. Remove Duplicates From Sorted Array
  • 83. Remove Duplicates from Sorted List
  • 27. Remove Element
  • 557. Reverse Words In A String III
  • 13. Roman To Integer
  • 100. Same Tree
  • 35. Search Insert Position
  • 69. SqrtX
  • 985. Sum of Even Number After Queries
  • 101. Symmetric Tree
  • 1996. The Number Of week Character In The Game
  • 42. Trapping Rain Water
  • 1. Two Sum
  • 393. UFT-8 Validation
  • 20. Valid Parenthesis
  • 1680. Concatenation of Consecutive Binary Numbers
  • 113. Path Sum II
  • 119. Pascal's Triangle II
  • 622. Design Circular Queue
  • 990. Satisfiability of Equality Equations
  • 121. Best Time to Buy and Sell Stock
  • 125. Valid Palindrome
  • 838. Push Dominoes
  • 136. Single Number
  • 19. Remove Nth Node From End of List
  • 141. Linked List Cycle
  • 144. Binary Tree PreOrder Traversal
  • 145. Binary Tree PostOrder Traversal
  • 157. Read N Characters Given Read4
  • 8160. Intersection of Two Linked Lists
  • 163. Missing Ranges
  • 658. Find K Closest Elements
  • 168. Excel Sheet Column Title
  • 169. Majority Element
  • 218. The Skyline Problem
  • 170. Two Sum III - Data Structure Design
  • 8171. Excel Sheet Column Number
  • 91. Decode Ways
  • 191. Number of 1 Bits
  • 190. Reverse Bits
  • 202. Happy Number
  • 1155. Number of Dice Rolls With Target Sum
  • 203. Remove Linked List Elements
  • 1578. Minimum Time to Make Rope Colorful
  • 205. Isomorphic Strings
  • 623. Add One Row to Tree
  • 981. Time Based Key-Value Store
  • 732. My Calendar III
  • 206. Reverse Linked List
  • 217. Contains Duplicate
  • 219. Contains Duplicate II
  • 225. Implement Stack using Queues
  • 226. Invert Binary Tree
  • 228. Summary Ranges
  • 231. Power of Two
  • 232. Implement Queue using Stacks
  • 16. 3Sum Closest
  • 653. Two Sum IV - Input is a BST
  • 242. Valid Anagram
  • 1328. Break a Palindrome
  • 234. Palindrome Linked List
  • 334. Increasing Triplet Subsequence
  • 243. Shortest Word Distance
  • 976. Largest Perimeter Triangle
  • 257. Binary Tree Paths
  • 237. Delete Node in a Linked List
  • 247. Strobo-Grammatic Number
  • 252. Meeting Rooms
  • 2095. Delete the Middle Node of a Linked List
  • 1531. String Compression II
  • 258. Add Digits
  • 1335. Minimum Difficulty of a Job Schedule
  • 1832. Check if the Sentence Is Pangram
  • 38. Count and Say
  • 692. Top K Frequent Words
  • 12. Integer to Roman
  • 263. Ugly Number
  • 76. Minimum Window Substring
  • 645. Set Mismatch
  • 1239. Maximum Length of a Concatenated String with Unique Characters
  • 1662. Check If Two String Arrays are Equivalent
  • 523. Continuous SubArray Sum
  • 835. Image Overlap
  • 49. Group Anagrams
  • 2136. Earliest Possible Day of Full Bloom
  • 1293. Shortest Path in a Grid with Obstacles Elimination
  • 766. Toe-Plitz Matrix
  • 288. Missing Number
  • 278. First Bad Version
  • 283. Move Zeroes
  • 1706. Where Will the Ball Fall
  • 290. Word Pattern
  • 292. Nim Game
  • 303. Range Sum Query - Immutable
  • 433. Minimum Genetic Mutation
  • 2131. Longest Palindrome by Concatenating Two Letter Words
  • 345. Reverse Vowels of a String
  • 151. Reverse Words in a String
  • 947. Most Stones Removed with Same Row or Column
  • 222. Count Complete Tree Nodes
  • 326. Power of Three
  • 338. Counting Bits
  • 374. Guess Number Higher or Lower
  • 342. Power of Four
  • 344. Reverse String
  • 349. Intersection of Two Arrays
  • 223. Rectangle Area
  • 350. Intersection of Two Arrays II
  • 367. Valid Perfect Square
  • 383. Ransom Note
  • 587. Erect the Fence
  • 387. First Unique Character in a String
  • 389. Find the Difference
  • 224. Basic Calculator
  • 1926. Nearest Exit from Entrance in Maze
  • 295. Find Median from Data Stream
  • 279. Perfect Squares
  • 36. Valid Sudoku
  • 79. Word Search
  • 907. Sum of Sub-Array Minimums
  • 1235. Maximum Profit in Job Scheduling
  • 446. Arithmetic Slices II - Subsequence
  • 2225. Find Players With Zero or One Losses
  • 380. Insert Delete GetRandom O(1)
  • 1207. Unique Number of Occurrences
  • 392. Is Subsequence
  • 1704. Determine if String Halves Are Alike
  • 1657. Determine if Two Strings Are Close
  • 401. Binary Watch
  • 451. Sort Characters By Frequency
  • 2256. Minimum Average Difference
  • 876. Middle of the Linked List
  • 328. Odd Even Linked List
  • 938. Range Sum of BST
  • 872. Leaf-Similar Trees
  • 1026. Maximum Difference Between Node and Ancestor
  • 1339. Maximum Product of Splitted Binary Tree
  • 124. Binary Tree Maximum Path Sum
  • 931. Minimum Falling Path Sum
  • 198. House Robber
  • 1143. Longest Common Subsequence
  • 150. Evaluate Reverse Polish Notation
  • 739. Daily Temperatures
  • 1971. Find if Path Exists in Graph
  • 841. Keys and Rooms
  • 886. Possible Bipartition
  • 980. Unique Paths III
  • 520. Detect Capital
  • 944. Delete Columns to Make Sorted
  • 2244. Minimum Rounds to Complete All Tasks
  • 452. Minimum Number of Arrows to Burst Balloons
  • 1833. Maximum Ice Cream Bars
  • 149. Max Points on a Line
  • 1443. Minimum Time to Collect All Apples in a Tree
  • 1519. Number of Nodes in the Sub-Tree With the Same Label
  • 2246. Longest Path With Different Adjacent Characters
  • 1061. Lexicographically Smallest Equivalent String
  • 2421. Number of Good Paths
  • 57. Insert Interval
  • 926. Flip String to Monotone Increasing
  • 918. Maximum Sum Circular Sub-Array
  • 974. SubArray Sums Divisible by K
  • 491. Non-decreasing Subsequences
  • 93. Restore IP Addresses
  • 131. Palindrome Partitioning
  • 909. Snakes and Ladders
  • 2359. Find Closest Node to Given Two Nodes
  • 787. Cheapest Flights Within K Stops
  • 472. Concatenated Words
  • 352. Data Stream as Disjoint Intervals
  • 460. LFU Cache
  • 1137. N-th Tribonacci Number
  • 1626. Best Team With No Conflicts
  • 1071. Greatest Common Divisor of Strings
  • 953. Verifying an Alien Dictionary
  • 6. Zigzag Conversion
  • 1470. Shuffle the Array
  • 904. Fruit Into Baskets
  • 45. Jump Game II
  • 2306. Naming a Company
  • 1162. As Far from Land as Possible
  • 1129. Shortest Path with Alternating Colors
  • 2477. Minimum Fuel Cost to Report to the Capital
  • 1523. Count Odd Numbers in an Interval Range
  • 989. Add to Array-Form of Integer
  • 1472. Design Browser History
  • 347. Top K Frequent Elements
  • 837. New 21 Game
  • 705.. Design HashSet
  • 1396. Design Underground System
  • 2101. Detonate the Maximum Bombs
  • 1376. Time Needed to Inform All Employees
  • 404. Sum of Left Leaves
  • 1232. Check If It Is a Straight Line
  • 405. Convert a Number to Hexadecimal
  • 1502. Can Make Arithmetic Progression From Sequence
  • 409. Longest Palindrome
  • 1351. Count Negative Numbers in a Sorted Matrix
  • 744. Find Smallest Letter Greater Than Target
  • 1802. Maximum Value at a Given Index in a Bounded Array
  • 412. Fizz Buzz
  • 414. Third Maximum Number
  • 415. Add Strings
  • 2352. Equal Row and Column Pairs
  • 1569. Number of Ways to Reorder Array to Get Same BST
  • 1187. Make Array Strictly Increasing
  • 1732. Find the Highest Altitude
  • 2090. K Radius SubArray Averages
  • 714. Best Time to Buy and Sell Stock with Transaction Fee
  • 1027. Longest Arithmetic Subsequence
  • 956. Tallest Billboard
  • 864. Shortest Path to Get All Keys
  • 1970. Last Day Where You Can Still Cross
  • 859. Buddy Strings
  • 137. Single Number II
  • 1493. Longest Subarray of 1's After Deleting One Element
  • 2024. Maximize the Confusion of an Exam
  • 2551. Put Marbles in Bags
  • 863. All Nodes Distance K in Binary Tree
  • 207. Course Schedule
  • 146. LRU Cache
  • 735. Asteroid Collision
  • 673. Number of Longest Increasing Subsequence
  • 50. Pow(x, n)
  • 852. Peak Index in a Mountain Array
  • 1870. Minimum Speed to Arrive on Time
  • 486. Predict the Winner
  • 808. Soup Servings
  • 139. Word Break
  • 95. Unique Binary Search Trees II
  • 74. Search a 2D Matrix
  • 2616. Minimize the Maximum Difference of Pairs
  • 81. Search in Rotated Sorted Array II
  • 518. Coin Change II
  • 2369. Check if There is a Valid Partition For The Array
  • 86. Partition List
  • 239. Sliding Window Maximum
  • 542. 01 Matrix
  • 1615. Maximal Network Rank
  • 1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
  • 1203. Sort Items by Groups Respecting Dependencies
  • 97. Interleaving String
  • 646. Maximum Length of Pair Chain
  • 2483. Minimum Penalty for a Shop
  • 2366. Minimum Replacements to Sort the Array
  • 138. Copy List with Random Pointer
  • 725. Split Linked List in Parts
  • 377. Combination Sum IV
  • 1282. Group the People Given the Group Size They Belong To
  • 1647. Minimum Deletions to Make Character Frequencies Unique
  • 1584. Min Cost to Connect All Points
  • 1631. Path With Minimum Effort
  • 1337. The K Weakest Rows in a Matrix
  • 1424 Diagonal Traverse II
  • 1630. Arithmetic Subarrays
  • 1561. Maximum Number of Coins You Can Get
  • 1685. Sum of Absolute Differences in a Sorted Array
  • 201. Bitwise AND of Numbers Range

Reach me via

Gmail

Twitter

LinkedIn

GitHub

LeetCode