LeetCode JavaScript Solutions
A collection of 1,680 elegant solutions to LeetCode problems.
All 1680 Array 929 String 423 Hash Table 327 Math 308 Dynamic Programming 302 Sorting 224 Greedy 190 Depth-First Search 184 Breadth-First Search 148 Binary Search 145 Matrix 138 Tree 135 Two Pointers 133 Bit Manipulation 123 Binary Tree 114 Stack 106 Heap Priority Queue 91 Prefix Sum 89 Simulation 77 Design 72 Backtracking 71 Graph 69 Sliding Window 68 Counting 66 Linked List 54 Union Find 50 Divide and Conquer 37 Monotonic Stack 35 Recursion 34 Ordered Set 31 Trie 30 Memoization 29 Bitmask 28 Binary Search Tree 28 Number Theory 27 Queue 26 Enumeration 25 Geometry 23 Segment Tree 21 Combinatorics 19 Game Theory 19 Topological Sort 18 Hash Function 16 String Matching 15 Binary Indexed Tree 14 Randomized 12 Rolling Hash 11 Data Stream 10 Monotonic Queue 10 Shortest Path 9 Brainteaser 9 Merge Sort 8 Counting Sort 8 Doubly-Linked List 6 Probability and Statistics 6 Quickselect 6 Bucket Sort 6 Interactive 5 Iterator 5 Line Sweep 5 Reservoir Sampling 4 Suffix Array 3 Minimum Spanning Tree 2 Strongly Connected Component 2 Eulerian Circuit 2 Radix Sort 2 Rejection Sampling 2 Biconnected Component 1