/Leetcode-Golang

Leetcode Solutions in Go

Primary LanguageGo

Leetcode-Golang

Leetcode Solutions in Go

Please give this repo a ⭐ if it inspires you.

Easy

LC # Description
1480 Running Sum of 1d Array
1431 Kids With the Greatest Number of Candies
1 Two Sum
575 Distribute Candies
1365 How Many Numbers Are Smaller Than the Current Number
1773 Count Items Matching a Rule
645 Set Mismatch
268 Missing Number
160 Intersection of Two Linked Lists
637 Average of Levels in Binary Tree
559 Maximum Depth of N-ary Tree
690 Employee Importance
993 Cousins in Binary Tree
1748 Sum of Unique Elements
232 Implement Queue using Stacks
1332 Remove Palindromic Subsequences
1678 Goal Parser Interpretation
1022 Sum of Root To Leaf Binary Numbers
404 Sum of Left Leaves
112 Path Sum
535 Encode and Decode TinyURL
1560 Most Visited Sector in a Circular Track
598 Range Addition II
762 Prime Number of Set Bits in Binary Representation
500 Keyboard Row
1656 Design an Ordered Stream
234 Palindrome Linked List
1614 Maximum Nesting Depth of the Parentheses
1668 Maximum Repeating Substring
1704 Determine if String Halves Are Alike
953 Verifying an Alien Dictionary
509 Fibonacci Number
589 N-ary Tree Preorder Traversal
696 Count Binary Substrings
326 Power of Three
703 Kth Largest Element in a Stream
204 Count Primes
453 Minimum Moves to Equal Array Elements
709 To Lower Case
1710 Maximum Units on a Truck
1047 Remove All Adjacent Duplicates In String
108 Convert Sorted Array to Binary Search Tree
415 Add Strings
653 Two Sum IV - Input is a BST

Medium

LC # Description
946 Validate Stack Sequences
29 Divide Two Integers
820 Short Encoding of Words
1381 Design a Stack With Increment Operation
623 Add One Row to Tree
12 Integer to Roman
1315 Sum of Nodes with Even-Valued Grandparent
1302 Deepest Leaves Sum
322 Coin Change
1305 All Elements in Two Binary Search Trees
1461 Check If a String Contains All Binary Codes of Size K
1721 Swapping Nodes in a Linked List
714 Best Time to Buy and Sell Stock with Transaction Fee
478 Generate Random Point in a Circle
208 Implement Trie (Prefix Tree)
376 Wiggle Subsequence
38 Count and Say
146 LRU Cache
1583 Count Unhappy Friends
729 My Calendar I
841 Keys And Rooms
113 Path Sum II
1398 Design Underground System
1797 Design Authentication Manager
1798 Maximum Number of Consecutive Values You Can Make
966 Vowel Spellchecker
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers
1764 Form Array by Concatenating Subarrays of Another Array
923 3Sum With Multiplicity
417 Pacific Atlantic Water Flow
916 Word Subsets
5 Longest Palindromic Substring
647 Palindromic Substrings
971 Flip Binary Tree To Match Preorder Traversal
1726 Tuple with Same Product
474 Ones and Zeroes
1488 Avoid Flood in The City
947 Most Stones Removed with Same Row or Column
622 Design Circular Queue
1670 Design Front Middle Back Queue
494 Target Sum
17 Letter Combinations of a Phone Number
638 Shopping Offers
667 Beautiful Arrangement II
650 2 Keys Keyboard
801 Minimum Swaps To Make Sequences Increasing
341 Flatten Nested List Iterator
86 Partition List
91 Decode Ways
62 Unique Paths
1209 Remove All Adjacent Duplicates in String II
279 Perfect Squares
377 Combination Sum IV
120 Triangle
554 Brick Wall
48 Rotate Image
935 Knight Dialer
740 Delete and Earn
63 Unique Paths II
34 Find First and Last Position of Element in Sorted Array
970 Powerful Integers
665 Non-decreasing Array
1472 Design Browser History
109 Convert Sorted List to Binary Search Tree
583 Delete Operation for Two Strings
1423 Maximum Points You Can Obtain from Cards
304 Range Sum Query 2D - Immutable
816 Ambiguous Coordinates
114 Flatten Binary Tree to Linked List
1048 Longest String Chain
213 House Robber II
462 Minimum Moves to Equal Array Elements II
890 Find and Replace Pattern
337 House Robber III
921 Minimum Add to Make Parentheses Valid
1871 Jump Game VII
150 Evaluate Reverse Polish Notation
318 Maximum Product of Word Lengths
1695 Maximum Erasure Value
1268 Search Suggestions System
695 Max Area of Island
97 Interleaving String
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
128 Longest Consecutive Sequence
105 Construct Binary Tree from Preorder and Inorder Traversal
1696 Jump Game VI
698 Partition to K Equal Sum Subsets
22 Generate Parentheses
795 Number of Subarrays with Bounded Maximum
118 Pascal's Triangle
576 Out of Boundary Paths
684 Redundant Connection
1004 Max Consecutive Ones III
236 Lowest Common Ancestor of a Binary Tree
89 Gray Code
378 Kth Smallest Element in a Sorted Matrix
718 Maximum Length of Repeated Subarray
300 Longest Increasing Subsequence
162 Find Peak Element
791 Custom Sort String
611 Valid Triangle Number
235 Lowest Common Ancestor of a Binary Search Tree
838 Push Dominoes
915 Partition Array into Disjoint Intervals
814 Binary Tree Pruning
90 Subsets II
877 Stone Game
429 N-ary Tree Level Order Traversal
926 Flip String to Monotone Increasing
954 Array of Doubled Pairs
49 Group Anagrams
73 Set Matrix Zeroes
1448 Count Good Nodes in Binary Tree
36 Valid Sudoku

Hard

LC # Description
354 Russian Doll Envelopes
936 Stamping The Sequence
32 Longest Valid Parentheses
1559 Detect Cycles in 2D Grid
329 Longest Increasing Path in a Matrix
1192 Critical Connections in a Network
980 Unique Paths III
745 Prefix and Suffix Search
630 Course Schedule III
65 Valid Number
968 Binary Tree Cameras
1473 Paint House III
51 N-Queens
52 N-Queens II
778 Swim in Rising Water
315 Count of Smaller Numbers After Self
135 Candy
927 Three Equal Parts
25 Reverse Nodes in k-Group
233 Number of Digit One
42 Trapping Rain Water
132 Palindrome Partitioning II
546 Remove Boxes
37 Sudoku Solver
850 Rectangle Area II