My JavaScript&Golang Solution of leetcode.
No | Title | Source Code | Difficulty |
---|---|---|---|
001 | Two Sum | JavaScript & Golang | Easy |
002 | Add Two Numbers | Golang | Medium |
003 | Longest Substring Without Repeating Characters | Golang | Medium |
004 | Median of Two Sorted Arrays | Golang | Hard |
005 | Longest Palindromic Substring | Golang | Medium |
006 | ZigZag Conversion | JavaScript & Golang | Medium |
007 | Reverse Integer | JavaScript & Golang | Easy |
008 | String to Integer (atoi) | JavaScript & Golang | Medium |
009 | Palindrome Number | JavaScript & Golang | Easy |
010 | Regular Expression Matching | Golang | Hard |
011 | Container With Most Water | Golang | Medium |
012 | Integer to Roman | JavaScript & Golang | Medium |
013 | Roman to Integer | JavaScript & Golang | Easy |
014 | Longest Common Prefix | JavaScript & Golang | Easy |
015 | 3Sum | Golang | Medium |
016 | 3Sum Closest | Golang | Medium |
017 | Letter Combinations of a Phone Number | Golang | Medium |
018 | 4Sum | Golang | Medium |
019 | Remove Nth Node From End of List | JavaScript & Golang | Easy |
020 | Valid Parentheses | JavaScript & Golang | Easy |
021 | Merge Two Sorted Lists | JavaScript & Golang | Easy |
022 | Generate Parentheses | Golang | Medium |
023 | Merge k Sorted Lists | Golang | Hard |
024 | Swap Nodes in Pairs | JavaScript & Golang | Easy |
025 | Reverse Nodes in k-Group | Golang | Hard |
026 | Remove Duplicates from Sorted Array | JavaScript & Golang | Easy |
027 | Remove Element | JavaScript & Golang | Easy |
028 | Implement strStr() | JavaScript & Golang | Easy |
029 | Divide Two Integers | Golang | Medium |
030 | Substring with Concatenation of All Words | Golang | Hard |
031 | Next Permutation | Golang | Medium |
032 | Longest Valid Parentheses | Golang | Hard |
033 | Search in Rotated Sorted Array | Golang | Medium |
034 | Find First and Last Position of Element in Sorted Array | Golang | Medium |
035 | Search Insert Position | Golang | Easy |
036 | Valid Sudoku | JavaScript & Golang | Easy |
037 | Sudoku Solver | Golang | Hard |
038 | Count and Say | JavaScript & Golang | Easy |
039 | Combination Sum | Golang | Medium |
040 | Combination Sum II | Golang | Medium |
041 | First Missing Positive | Golang | Hard |
042 | Trapping Rain Water | Golang | Hard |
043 | Multiply Strings | Golang | Medium |
044 | Wildcard Matching | Golang | Hard |
045 | Jump Game II | Golang | Hard |
046 | Permutations | Golang | Medium |
047 | Permutations II | Golang | Medium |
048 | Rotate Image | Golang | Medium |
049 | Group Anagrams | Golang | Medium |
050 | Pow(x, n) | Golang | Medium |
051 | N-Queens | Golang | Hard |
058 | Length of Last Word | JavaScript | Easy |
062 | Unique Paths | JavaScript | Medium |
066 | Plus One | JavaScript | Easy |
067 | Add Binary | JavaScript | Easy |
070 | Climbing Stairs | JavaScript | Easy |
083 | Remove Duplicates from Sorted List | JavaScript | Easy |
088 | Merge Sorted Array | JavaScript | Easy |
094 | Binary Tree Inorder Traversal | JavaScript | Medium |
096 | Unique Binary Search Trees | JavaScript | Medium |
100 | Same Tree | JavaScript | Easy |
101 | Symmetric Tree | JavaScript | Easy |
102 | Binary Tree Level Order Traversal | JavaScript | Easy |
104 | Maximum Depth of Binary Tree | JavaScript | Easy |
107 | Binary Tree Level Order Traversal II | JavaScript | Easy |
110 | Balanced Binary Tree | JavaScript | Easy |
111 | Minimum Depth of Binary Tree | JavaScript | Easy |
112 | Path Sum | JavaScript | Easy |
118 | Pascal's Triangle | JavaScript | Easy |
119 | 119. Pascal's Triangle II | JavaScript | Easy |
121 | Best Time to Buy and Sell Stock | JavaScript | Easy |
122 | Best Time to Buy and Sell Stock II | JavaScript | Medium |
125 | Valid Palindrome | JavaScript | Easy |
136 | Single Number | JavaScript | Medium |
137 | Single Number II | JavaScript | Medium |
141 | Linked List Cycle | JavaScript | Easy |
144 | Binary Tree Preorder Traversal | JavaScript | Medium |
145 | Binary Tree Postorder Traversal | JavaScript | Hard |
155 | Min Stack | Java | Easy |
160 | Intersection of Two Linked Lists | JavaScript | Easy |
165 | Compare Version Numbers | JavaScript | Easy |
168 | Excel Sheet Column Title | JavaScript | Easy |
169 | Majority Element | JavaScript | Easy |
171 | Excel Sheet Column Number | JavaScript | Easy |
172 | Factorial Trailing Zeroes | JavaScript | Easy |
189 | Rotate Array | JavaScript | Easy |
190 | Reverse Bits | JavaScript | Easy |
191 | Number of 1 Bits | JavaScript | Easy |
198 | House Robber | JavaScript | Easy |
202 | Happy Number | JavaScript | Easy |
203 | Remove Linked List Elements | JavaScript | Easy |
204 | Count Primes | JavaScript | Easy |
205 | Isomorphic Strings | JavaScript | Easy |
206 | Reverse Linked List | JavaScript | Easy |
217 | Contains Duplicate | JavaScript | Easy |
219 | Contains Duplicate II | JavaScript | Easy |
223 | Rectangle Area | JavaScript | Easy |
225 | Implement Stack using Queues | JavaScript | Easy |
226 | Invert Binary Tree | JavaScript | Easy |
230 | Kth Smallest Element in a BST | JavaScript | Medium |
231 | Power of Two | JavaScript | Easy |
232 | Implement Queue using Stacks | JavaScript | Easy |
234 | Palindrome Linked List | JavaScript | Easy |
235 | Lowest Common Ancestor of a Binary Search Tree | JavaScript | Easy |
237 | Delete Node in a Linked List | JavaScript | Easy |
238 | Product of Array Except Self | JavaScript | Medium |
242 | Valid Anagram | JavaScript | Easy |
257 | Binary Tree Paths | JavaScript | Easy |
258 | Add Digits | JavaScript | Easy |
260 | Single Number III | JavaScript | Medium |
263 | Ugly Number | JavaScript | Easy |
268 | Missing Number | JavaScript | Medium |
278 | First Bad Version | JavaScript | Easy |
283 | Move Zeroes | JavaScript | Easy |
290 | Word Pattern | JavaScript | Easy |
292 | Nim Game | JavaScript | Easy |
299 | Bulls and Cows | JavaScript | Easy |
303 | Range Sum Query - Immutable | JavaScript | Easy |
309 | Best Time to Buy and Sell Stock with Cooldown | JavaScript | Medium |
318 | Maximum Product of Word Lengths | JavaScript | Medium |
319 | Bulb Switcher | JavaScript | Medium |
326 | Power of Three | JavaScript | Easy |
328 | Odd Even Linked List | JavaScript | Medium |
338 | Counting Bits | JavaScript | Medium |
342 | Power of Four | JavaScript | Easy |
343 | Integer Break | JavaScript | Medium |
344 | Reverse String | JavaScript | Easy |
345 | Reverse Vowels of a String | JavaScript | Easy |
347 | Top K Frequent Elements | JavaScript | Medium |
349 | Intersection of Two Arrays | JavaScript | Easy |
350 | Intersection of Two Arrays II | JavaScript | Easy |
357 | Count Numbers with Unique Digits | JavaScript | Medium |
371 | Sum of Two Integers | JavaScript | Easy |