|
2 | 2 | Leetcode Solutions using Javascript
|
3 | 3 | By Chihung Yu
|
4 | 4 |
|
5 |
| -1 Two Sum |
6 |
| -100 Same Tree |
7 |
| -101 Symmetric Tre |
8 |
| -102 Binary Tree Level Order Traversal |
9 |
| -104 Maximum Depth of Binary Tre |
10 |
| -106 Construct Binary Tree from Inorder and Postorder Traversa |
11 |
| -107 Binary Tree Level Order Traversal I |
12 |
| -108 Convert Sorted Array to Binary Search Tre |
13 |
| -11 Container With Most Wate |
14 |
| -110 Balanced Binary Tre |
15 |
| -111 Minimum Depth of Binary Tre |
16 |
| -112 Path Su |
17 |
| -114 Flatten Binary Tree to Linked Lis |
18 |
| -116 Populating Next Right Pointers in Each Node |
19 |
| -118 Pascal's Triangle |
20 |
| -119 Pascal's Triangle I |
21 |
| -120 Triangl |
22 |
| -121 Best Time to Buy and Sell Stock |
23 |
| -122 Best Time to Buy and Sell Stock I |
24 |
| -127 Word Ladder I |
25 |
| -129 Sum Root to Leaf Number |
26 |
| -13 Roman to Integer |
27 |
| -131 Palindrome Partitioning |
28 |
| -136 Single Number |
29 |
| -137 Single Number I |
30 |
| -139 Word Brea |
31 |
| -14 Longest Common Prefi |
32 |
| -141 Linked List Cycle |
33 |
| -15 3Sum |
34 |
| -150 Evaluate Reverse Polish Notatio |
35 |
| -151 Reverse Words in a String |
36 |
| -152 Maximum Product Subarra |
37 |
| -153 Find Minimum in Rotated Sorted Arra |
38 |
| -155 Min Stack |
39 |
| -16 3Sum Closest |
40 |
| -160 Intersection Of Two Linked List |
41 |
| -162 Find Peak Element |
42 |
| -165 Compare Version Numbers |
43 |
| -166 Fraction to Recurring Decimal |
44 |
| -168 Excel Sheet Column Titl |
45 |
| -169 Majority Elemen |
46 |
| -17 Letter Combinations of a Phone Numbe |
47 |
| -171 Excel Sheet Column Number |
48 |
| -172 Factorial Trailing Zeroes |
49 |
| -179 Largest Numbe |
50 |
| -189 Rotate Arra |
51 |
| -19 Remove Nth Node From End of List |
52 |
| -190 Reverse Bit |
53 |
| -191 Number of 1 Bit |
54 |
| -198 House Robbe |
55 |
| -199 Binary Tree Right Side View |
56 |
| -2 Add Two Numbers |
57 |
| -20 Valid Parenthese |
58 |
| -201 Bitwise AND of Numbers Rang |
59 |
| -202 Happy Numbe |
60 |
| -203 Remove Linked List Elements |
61 |
| -204 Count Prime |
62 |
| -205 Isomorphic String |
63 |
| -206 Reverse Linked List |
64 |
| -207 Course Schedule |
65 |
| -21 Merge Two Sorted Lists |
66 |
| -211 Add and Search Word - Data structure design |
67 |
| -217 Contain Duplicate |
68 |
| -219 Contains Duplicate II |
69 |
| -22 Generate Parentheses |
70 |
| -223 Rectangle Are |
71 |
| -225 Implement Stack Using Queue |
72 |
| -226 Invert Binary Tre |
73 |
| -228 Summary Range |
74 |
| -229 Majority Element II |
75 |
| -231 Power of Tw |
76 |
| -232 Implement Queue using Stack |
77 |
| -234 Palindrome Linked Lis |
78 |
| -235 Lowest Common Ancestor Of a Binary Search Tre |
79 |
| -237 Delete Node in a Linked Lis |
80 |
| -24 Swap nodes in Pair |
81 |
| -242 Valid Anagram |
82 |
| -26 Remove Duplicates from Sorted Arra |
83 |
| -27 Remove Element |
84 |
| -28 Implement strStr() |
85 |
| -3 Longest Substring Without Repeating Character |
86 |
| -34 Search for a Range |
87 |
| -35 Search Insert Position |
88 |
| -36 Valid Sudoku |
89 |
| -38 Count and Sa |
90 |
| -39 Combination Su |
91 |
| -40 combination Sum II |
92 |
| -43 Multiply Strings |
93 |
| -48 Rotate Image |
94 |
| -49 Anagrams |
95 |
| -5 Longest Palindromic Substring |
96 |
| -51 N-Queens |
97 |
| -53 Maximum Subarray |
98 |
| -54 Spiral Matri |
99 |
| -55 Jump Gam |
100 |
| -58 Length of Last Wor |
101 |
| -59 Spiral Matrix II |
102 |
| -61 Rotate Lis |
103 |
| -62 Unique Paths |
104 |
| -63 Unique Paths I |
105 |
| -64 Minimum Path Sum |
106 |
| -66 Plus One |
107 |
| -67 Add Binary |
108 |
| -70 Climbing Stair |
109 |
| -71 Simplify Pat |
110 |
| -72 Edit Distanc |
111 |
| -74 Search a 2D Matrix |
112 |
| -75 Sort Color |
113 |
| -77 Combinations |
114 |
| -8 String to Integer (atoi |
115 |
| -80 Remove Duplicates from Sorted Array II |
116 |
| -81 Search in Rotated Sorted Array I |
117 |
| -83 Remove Duplicates from Sorted List |
118 |
| -86 Partition List |
119 |
| -88 Merge Sorted Array |
120 |
| -9 Palindrome Number |
121 |
| -90 Subsets II |
122 |
| -91 Decode Way |
123 |
| -92 Reverse Linked List II |
124 |
| -93 Restore IP Addresses |
125 |
| -94 Binary Tree Inorder Traversa |
126 |
| -98 Validate Binary Search Tree |
127 |
| - |
128 |
| - |
| 5 | +1 Two Sum.\n |
| 6 | +100 Same Tree.\n |
| 7 | +101 Symmetric Tree\n |
| 8 | +102 Binary Tree Level Order Traversal.\n |
| 9 | +104 Maximum Depth of Binary Tree\n |
| 10 | +106 Construct Binary Tree from Inorder and Postorder Traversal\n |
| 11 | +107 Binary Tree Level Order Traversal II\n |
| 12 | +108 Convert Sorted Array to Binary Search Tree\n |
| 13 | +11 Container With Most Water\n |
| 14 | +110 Balanced Binary Tree\n |
| 15 | +111 Minimum Depth of Binary Tree\n |
| 16 | +112 Path Sum\n |
| 17 | +114 Flatten Binary Tree to Linked List\n |
| 18 | +116 Populating Next Right Pointers in Each Node.\n |
| 19 | +118 Pascal's Triangle.\n |
| 20 | +119 Pascal's Triangle II\n |
| 21 | +120 Triangle\n |
| 22 | +121 Best Time to Buy and Sell Stock.\n |
| 23 | +122 Best Time to Buy and Sell Stock II\n |
| 24 | +127 Word Ladder II\n |
| 25 | +129 Sum Root to Leaf Numbers\n |
| 26 | +13 Roman to Integer.\n |
| 27 | +131 Palindrome Partitioning.\n |
| 28 | +136 Single Number.\n |
| 29 | +137 Single Number II\n |
| 30 | +139 Word Break\n |
| 31 | +14 Longest Common Prefix\n |
| 32 | +141 Linked List Cycle.\n |
| 33 | +15 3Sum.\n |
| 34 | +150 Evaluate Reverse Polish Notation\n |
| 35 | +151 Reverse Words in a String.\n |
| 36 | +152 Maximum Product Subarray\n |
| 37 | +153 Find Minimum in Rotated Sorted Array\n |
| 38 | +155 Min Stack.\n |
| 39 | +16 3Sum Closest.\n |
| 40 | +160 Intersection Of Two Linked Lists\n |
| 41 | +162 Find Peak Element.\n |
| 42 | +165 Compare Version Numbers.\n |
| 43 | +166 Fraction to Recurring Decimal.\n |
| 44 | +168 Excel Sheet Column Title\n |
| 45 | +169 Majority Element\n |
| 46 | +17 Letter Combinations of a Phone Number\n |
| 47 | +171 Excel Sheet Column Number.\n |
| 48 | +172 Factorial Trailing Zeroes.\n |
| 49 | +179 Largest Number\n |
| 50 | +189 Rotate Array\n |
| 51 | +19 Remove Nth Node From End of List.\n |
| 52 | +190 Reverse Bits\n |
| 53 | +191 Number of 1 Bits\n |
| 54 | +198 House Robber\n |
| 55 | +199 Binary Tree Right Side View.\n |
| 56 | +2 Add Two Numbers.\n |
| 57 | +20 Valid Parentheses\n |
| 58 | +201 Bitwise AND of Numbers Range\n |
| 59 | +202 Happy Number\n |
| 60 | +203 Remove Linked List Elements.\n |
| 61 | +204 Count Primes\n |
| 62 | +205 Isomorphic Strings\n |
| 63 | +206 Reverse Linked List.\n |
| 64 | +207 Course Schedule.\n |
| 65 | +21 Merge Two Sorted Lists.\n |
| 66 | +211 Add and Search Word - Data structure design.\n |
| 67 | +217 Contain Duplicate.\n |
| 68 | +219 Contains Duplicate II.\n |
| 69 | +22 Generate Parentheses.\n |
| 70 | +223 Rectangle Area\n |
| 71 | +225 Implement Stack Using Queues\n |
| 72 | +226 Invert Binary Tree\n |
| 73 | +228 Summary Ranges\n |
| 74 | +229 Majority Element II.\n |
| 75 | +231 Power of Two\n |
| 76 | +232 Implement Queue using Stacks\n |
| 77 | +234 Palindrome Linked List\n |
| 78 | +235 Lowest Common Ancestor Of a Binary Search Tree\n |
| 79 | +237 Delete Node in a Linked List\n |
| 80 | +24 Swap nodes in Pairs\n |
| 81 | +242 Valid Anagram.\n |
| 82 | +26 Remove Duplicates from Sorted Array\n |
| 83 | +27 Remove Element.\n |
| 84 | +28 Implement strStr().\n |
| 85 | +3 Longest Substring Without Repeating Characters\n |
| 86 | +34 Search for a Range.\n |
| 87 | +35 Search Insert Position.\n |
| 88 | +36 Valid Sudoku.\n |
| 89 | +38 Count and Say\n |
| 90 | +39 Combination Sum\n |
| 91 | +40 combination Sum II.\n |
| 92 | +43 Multiply Strings.\n |
| 93 | +48 Rotate Image.\n |
| 94 | +49 Anagrams.\n |
| 95 | +5 Longest Palindromic Substring.\n |
| 96 | +51 N-Queens.\n |
| 97 | +53 Maximum Subarray.\n |
| 98 | +54 Spiral Matrix\n |
| 99 | +55 Jump Game\n |
| 100 | +58 Length of Last Word\n |
| 101 | +59 Spiral Matrix II.\n |
| 102 | +61 Rotate List\n |
| 103 | +62 Unique Paths.\n |
| 104 | +63 Unique Paths II\n |
| 105 | +64 Minimum Path Sum.\n |
| 106 | +66 Plus One.\n |
| 107 | +67 Add Binary.\n |
| 108 | +70 Climbing Stairs\n |
| 109 | +71 Simplify Path\n |
| 110 | +72 Edit Distance\n |
| 111 | +74 Search a 2D Matrix.\n |
| 112 | +75 Sort Colors\n |
| 113 | +77 Combinations.\n |
| 114 | +8 String to Integer (atoi)\n |
| 115 | +80 Remove Duplicates from Sorted Array II.\n |
| 116 | +81 Search in Rotated Sorted Array II\n |
| 117 | +83 Remove Duplicates from Sorted List.\n |
| 118 | +86 Partition List.\n |
| 119 | +88 Merge Sorted Array.\n |
| 120 | +9 Palindrome Number.\n |
| 121 | +90 Subsets II.\n |
| 122 | +91 Decode Ways\n |
| 123 | +92 Reverse Linked List II.\n |
| 124 | +93 Restore IP Addresses.\n |
| 125 | +94 Binary Tree Inorder Traversal\n |
| 126 | +98 Validate Binary Search Tree\n |
129 | 127 | README.md
|