neetcode-gh/leetcode

Leetcode solutions

JavaScript

6,501

9,314 commits

updated Oct 16, 2026

See the code

README

Leetcode solutions for 🚀 NeetCode.io

This repo hosts the solutions found on NeetCode.io including the solutions shown on the NeetCode YouTube channel. The site will periodically be updated with new solutions from this repo!


Solutions from these languages will be linked from NeetCode.io:

Python, Java, JavaScript, C++, Go, Swift, C#, TypeScript, Rust, Kotlin, Ruby, C, Scala and Dart

Solutions are also welcome for any other supported language on leetcode.com!

Contributing

Please read the contributing guidlines before opening a PR

To contribute, please fork this repo and open a PR adding a missing solution from the supported languages.

If you would like to have collaborator permissions on the repo to merge your own PRs or review others' PRs please let me know.

Credits

Missing Solutions

Arrays & Hashing

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0217 - Contains Duplicate
❌
❌
0242 - Valid Anagram
❌
❌
1929 - Concatenation of Array
❌
❌
1299 - Replace Elements With Greatest Element On Right Side
❌
❌
❌
0392 - Is Subsequence
❌
❌
❌
0058 - Length of Last Word
❌
❌
0001 - Two Sum
❌
❌
0014 - Longest Common Prefix
❌
❌
❌
❌
0049 - Group Anagrams
❌
❌
0118 - Pascals Triangle
❌
❌
❌
❌
❌
0027 - Remove Element
❌
❌
❌
❌
0929 - Unique Email Addresses
❌
❌
❌
❌
0205 - Isomorphic Strings
❌
❌
❌
❌
❌
0605 - Can Place Flowers
❌
❌
❌
❌
❌
0169 - Majority Element
❌
❌
❌
❌
0496 - Next Greater Element I
❌
❌
❌
❌
❌
❌
0724 - Find Pivot Index
❌
❌
❌
❌
❌
0303 - Range Sum Query - Immutable
❌
❌
❌
❌
❌
0448 - Find All Numbers Disappeared in An Array
❌
❌
❌
❌
❌
❌
1189 - Maximum Number of Balloons
❌
❌
❌
❌
❌
❌
0290 - Word Pattern
❌
❌
❌
❌
❌
❌
0705 - Design HashSet
❌
❌
❌
❌
❌
❌
0706 - Design HashMap
❌
❌
❌
❌
❌
❌
0912 - Sort an Array
❌
❌
❌
❌
❌
❌
0347 - Top K Frequent Elements
❌
❌
0238 - Product of Array Except Self
❌
❌
❌
❌
0036 - Valid Sudoku
❌
❌
❌
0271 - Encode and Decode Strings
❌
❌
❌
❌
❌
0128 - Longest Consecutive Sequence
❌
❌
❌
❌
0075 - Sort Colors
❌
❌
❌
❌
❌
0535 - Encode and Decode TinyURL
❌
❌
❌
❌
❌
0554 - Brick Wall
❌
❌
❌
❌
❌
❌
0122 - Best Time to Buy And Sell Stock II
❌
❌
❌
❌
❌
❌
❌
❌
0560 - Subarray Sum Equals K
❌
❌
❌
❌
❌
1930 - Unique Length 3 Palindromic Subsequences
❌
❌
❌
❌
❌
❌
❌
❌
1963 - Minimum Number of Swaps to Make The String Balanced
❌
❌
❌
❌
❌
❌
❌
2001 - Number of Pairs of Interchangeable Rectangles
❌
❌
❌
❌
❌
❌
❌
❌
❌
2002 - Maximum Product of The Length of Two Palindromic Subsequences
❌
❌
❌
❌
❌
❌
2017 - Grid Game
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0438 - Find All Anagrams in a String
❌
❌
❌
❌
❌
❌
0028 - Find The Index of The First Occurrence in a String
❌
❌
❌
❌
❌
❌
0280 - Wiggle Sort
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0179 - Largest Number
❌
❌
❌
0523 - Continuous Subarray Sum
❌
❌
❌
❌
❌
❌
❌
❌
0838 - Push Dominoes
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0187 - Repeated DNA Sequences
❌
❌
❌
❌
❌
❌
❌
❌
0380 - Insert Delete Get Random O(1)
❌
❌
❌
❌
❌
❌
❌
1461 - Check if a String Contains all Binary Codes of Size K
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0304 - Range Sum Query 2D Immutable
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0665 - Non Decreasing Array
❌
❌
❌
❌
❌
❌
0041 - First Missing Positive
❌
❌
❌
❌
❌
❌
❌
❌
1822 - Sign of An Array
❌
❌
❌
❌
❌
❌
❌
2215 - Find the Difference of Two Arrays
❌
❌
❌
❌
❌
❌
❌
1603 - Design Parking System
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2348 - Number of Zero-Filled Subarrays
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2405 - Optimal Partition of String
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
1396 - Design Underground System
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2483 - Minimum Penalty for a Shop
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0068 - Text Justification
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2306 - Naming a Company
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌

Two Pointers

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0125 - Valid Palindrome
❌
❌
0680 - Valid Palindrome II
❌
❌
❌
❌
❌
❌
1984 - Minimum Difference Between Highest And Lowest of K Scores
❌
❌
❌
❌
❌
❌
1768 - Merge Strings Alternately
❌
❌
❌
❌
❌
❌
❌
❌
❌
0344 - Reverse String
❌
❌
❌
❌
0088 - Merge Sorted Array
❌
❌
❌
❌
❌
❌
0283 - Move Zeroes
❌
❌
❌
❌
❌
0026 - Remove Duplicates From Sorted Array
❌
❌
❌
❌
❌
0080 - Remove Duplicates From Sorted Array II
❌
❌
❌
❌
❌
❌
❌
0167 - Two Sum II Input Array Is Sorted
❌
❌
❌
0015 - 3Sum
❌
❌
0018 - 4Sum
❌
❌
❌
❌
❌
❌
❌
❌
0011 - Container With Most Water
❌
❌
1498 - Number of Subsequences That Satisfy The Given Sum Condition
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0189 - Rotate Array
❌
❌
❌
❌
❌
❌
❌
❌
❌
1968 - Array With Elements Not Equal to Average of Neighbors
❌
❌
❌
❌
❌
❌
❌
❌
❌
0881 - Boats to Save People
❌
❌
❌
❌
❌
❌
❌
0042 - Trapping Rain Water
❌
❌
❌

Sliding Window

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0121 - Best Time to Buy And Sell Stock
❌
❌
0219 - Contains Duplicate II
❌
❌
❌
❌
❌
❌
1343 - Number of Sub Arrays of Size K and Avg Greater than or Equal to Threshold
❌
❌
❌
❌
❌
❌
❌
❌
0003 - Longest Substring Without Repeating Characters
❌
❌
0424 - Longest Repeating Character Replacement
❌
❌
❌
❌
0567 - Permutation In String
❌
❌
❌
❌
❌
1838 - Frequency of The Most Frequent Element
❌
❌
❌
❌
❌
❌
0904 - Fruits into Basket
❌
❌
❌
❌
❌
❌
❌
❌
1456 - Maximum Number of Vowels in a Substring of Given Length
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
1888 - Minimum Number of Flips to Make The Binary String Alternating
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0209 - Minimum Size Subarray Sum
❌
❌
❌
❌
❌
❌
❌
❌
0658 - Find K Closest Elements
❌
❌
❌
❌
❌
❌
❌
❌
❌
1658 - Minimum Operations to Reduce X to Zero
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0076 - Minimum Window Substring
❌
❌
❌
❌
0239 - Sliding Window Maximum
❌
❌
❌
❌

Stack

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0020 - Valid Parentheses
❌
❌
❌
0682 - Baseball Game
❌
❌
❌
❌
❌
0225 - Implement Stack Using Queues
❌
❌
❌
❌
❌
0155 - Min Stack
❌
❌
❌
0150 - Evaluate Reverse Polish Notation
❌
❌
❌
2390 - Removing Stars From a String
❌
❌
❌
❌
❌
❌
❌
❌
❌
0946 - Validate Stack Sequences
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0022 - Generate Parentheses
❌
❌
❌
❌
0735 - Asteroid Collision
❌
❌
❌
❌
❌
❌
❌
0739 - Daily Temperatures
❌
❌
❌
❌
0901 - Online Stock Span
❌
❌
❌
❌
❌
❌
❌
❌
❌
0853 - Car Fleet
❌
❌
❌
❌
0071 - Simplify Path
❌
❌
❌
❌
❌
❌
❌
❌
❌
0394 - Decode String
❌
❌
❌
❌
❌
❌
❌
❌
❌
0402 - Remove K Digits
❌
❌
❌
❌
❌
❌
❌
❌
❌
1209 - Remove All Adjacent Duplicates In String II
❌
❌
❌
❌
❌
❌
❌
❌
❌
0456 - 132 Pattern
❌
❌
❌
❌
❌
❌
❌
❌
❌
0895 - Maximum Frequency Stack
❌
❌
❌
❌
❌
❌
❌
❌
❌
0084 - Largest Rectangle In Histogram
❌
❌
❌
❌
ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0704 - Binary Search
❌
❌
0035 - Search Insert Position
❌
❌
❌
❌
0374 - Guess Number Higher Or Lower
❌
❌
❌
❌
❌
❌
0441 - Arranging Coins
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0977 - Squares of a Sorted Array
❌
❌
❌
❌
❌
❌
❌
0367 - Valid Perfect Square
❌
❌
❌
❌
❌
❌
❌
❌
0069 - Sqrt(x)
❌
❌
❌
❌
❌
❌
❌
❌
❌
0540 - Single Element in a Sorted Array
❌
❌
❌
❌
❌
❌
❌
❌
❌
1011 - Capacity to Ship Packages
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0162 - Find Peak Element
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2300 - Successful Pairs of Spells and Potions
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0074 - Search a 2D Matrix
❌
❌
❌
❌
0875 - Koko Eating Bananas
❌
❌
❌
❌
2616 - Minimize the Maximum Difference of Pairs
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0153 - Find Minimum In Rotated Sorted Array
❌
❌
❌
0033 - Search In Rotated Sorted Array
❌
❌
❌
❌
0081 - Search In Rotated Sorted Array II
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0981 - Time Based Key Value Store
❌
❌
❌
❌
0034 - Find First And Last Position of Element In Sorted Array
❌
❌
❌
❌
❌
❌
❌
❌
1898 - Maximum Number of Removable Characters
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0116 - Populating Next Right Pointers In Each Node
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
1268 - Search Suggestions System
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0410 - Split Array Largest Sum
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0004 - Median of Two Sorted Arrays
❌
❌
❌
❌

Linked List

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0206 - Reverse Linked List
❌
❌
0021 - Merge Two Sorted Lists
❌
❌
0234 - Palindrome Linked List
❌
❌
❌
❌
❌
❌
❌
❌
❌
0203 - Remove Linked List Elements
❌
❌
❌
❌
❌
❌
❌
❌
0083 - Remove Duplicates From Sorted List
❌
❌
❌
❌
❌
❌
❌
❌
0876 - Middle of the Linked List
❌
❌
❌
❌
❌
0160 - Intersection of Two Linked Lists
❌
❌
❌
❌
❌
❌
❌
❌
❌
0143 - Reorder List
❌
❌
❌
❌
❌
2130 - Maximum Twin Sum Of A Linked List
❌
❌
❌
❌
❌
❌
❌
❌
❌
0019 - Remove Nth Node From End of List
❌
❌
❌
❌
❌
1721 - Swapping Nodes in a Linked List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0460 - LFU Cache
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0138 - Copy List With Random Pointer
❌
❌
❌
❌
❌
0707 - Design Linked List
❌
❌
❌
❌
❌
❌
❌
❌
❌
1472 - Design Browser History
❌
❌
❌
❌
❌
❌
❌
❌
0002 - Add Two Numbers
❌
❌
0141 - Linked List Cycle
❌
❌
❌
0287 - Find The Duplicate Number
❌
❌
❌
❌
0024 - Swap Nodes In Pairs
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0148 - Sort List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0086 - Partition List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0061 - Rotate List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0092 - Reverse Linked List II
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0622 - Design Circular Queue
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0147 - Insertion Sort List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0725 - Split Linked List in Parts
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0146 - LRU Cache
❌
❌
❌
❌
❌
0023 - Merge K Sorted Lists
❌
❌
❌
❌
❌
0025 - Reverse Nodes In K Group
❌
❌
❌
❌
❌

Trees

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0094 - Binary Tree Inorder Traversal
❌
❌
❌
❌
[0144

Truncated — view the full README on GitHub.

neetcode-gh/leetcode

Leetcode solutions

JavaScript

6,501

9,314 commits

updated Oct 16, 2026

See the code

README

Leetcode solutions for 🚀 NeetCode.io

This repo hosts the solutions found on NeetCode.io including the solutions shown on the NeetCode YouTube channel. The site will periodically be updated with new solutions from this repo!


Solutions from these languages will be linked from NeetCode.io:

Python, Java, JavaScript, C++, Go, Swift, C#, TypeScript, Rust, Kotlin, Ruby, C, Scala and Dart

Solutions are also welcome for any other supported language on leetcode.com!

Contributing

Please read the contributing guidlines before opening a PR

To contribute, please fork this repo and open a PR adding a missing solution from the supported languages.

If you would like to have collaborator permissions on the repo to merge your own PRs or review others' PRs please let me know.

Credits

Missing Solutions

Arrays & Hashing

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0217 - Contains Duplicate
❌
❌
0242 - Valid Anagram
❌
❌
1929 - Concatenation of Array
❌
❌
1299 - Replace Elements With Greatest Element On Right Side
❌
❌
❌
0392 - Is Subsequence
❌
❌
❌
0058 - Length of Last Word
❌
❌
0001 - Two Sum
❌
❌
0014 - Longest Common Prefix
❌
❌
❌
❌
0049 - Group Anagrams
❌
❌
0118 - Pascals Triangle
❌
❌
❌
❌
❌
0027 - Remove Element
❌
❌
❌
❌
0929 - Unique Email Addresses
❌
❌
❌
❌
0205 - Isomorphic Strings
❌
❌
❌
❌
❌
0605 - Can Place Flowers
❌
❌
❌
❌
❌
0169 - Majority Element
❌
❌
❌
❌
0496 - Next Greater Element I
❌
❌
❌
❌
❌
❌
0724 - Find Pivot Index
❌
❌
❌
❌
❌
0303 - Range Sum Query - Immutable
❌
❌
❌
❌
❌
0448 - Find All Numbers Disappeared in An Array
❌
❌
❌
❌
❌
❌
1189 - Maximum Number of Balloons
❌
❌
❌
❌
❌
❌
0290 - Word Pattern
❌
❌
❌
❌
❌
❌
0705 - Design HashSet
❌
❌
❌
❌
❌
❌
0706 - Design HashMap
❌
❌
❌
❌
❌
❌
0912 - Sort an Array
❌
❌
❌
❌
❌
❌
0347 - Top K Frequent Elements
❌
❌
0238 - Product of Array Except Self
❌
❌
❌
❌
0036 - Valid Sudoku
❌
❌
❌
0271 - Encode and Decode Strings
❌
❌
❌
❌
❌
0128 - Longest Consecutive Sequence
❌
❌
❌
❌
0075 - Sort Colors
❌
❌
❌
❌
❌
0535 - Encode and Decode TinyURL
❌
❌
❌
❌
❌
0554 - Brick Wall
❌
❌
❌
❌
❌
❌
0122 - Best Time to Buy And Sell Stock II
❌
❌
❌
❌
❌
❌
❌
❌
0560 - Subarray Sum Equals K
❌
❌
❌
❌
❌
1930 - Unique Length 3 Palindromic Subsequences
❌
❌
❌
❌
❌
❌
❌
❌
1963 - Minimum Number of Swaps to Make The String Balanced
❌
❌
❌
❌
❌
❌
❌
2001 - Number of Pairs of Interchangeable Rectangles
❌
❌
❌
❌
❌
❌
❌
❌
❌
2002 - Maximum Product of The Length of Two Palindromic Subsequences
❌
❌
❌
❌
❌
❌
2017 - Grid Game
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0438 - Find All Anagrams in a String
❌
❌
❌
❌
❌
❌
0028 - Find The Index of The First Occurrence in a String
❌
❌
❌
❌
❌
❌
0280 - Wiggle Sort
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0179 - Largest Number
❌
❌
❌
0523 - Continuous Subarray Sum
❌
❌
❌
❌
❌
❌
❌
❌
0838 - Push Dominoes
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0187 - Repeated DNA Sequences
❌
❌
❌
❌
❌
❌
❌
❌
0380 - Insert Delete Get Random O(1)
❌
❌
❌
❌
❌
❌
❌
1461 - Check if a String Contains all Binary Codes of Size K
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0304 - Range Sum Query 2D Immutable
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0665 - Non Decreasing Array
❌
❌
❌
❌
❌
❌
0041 - First Missing Positive
❌
❌
❌
❌
❌
❌
❌
❌
1822 - Sign of An Array
❌
❌
❌
❌
❌
❌
❌
2215 - Find the Difference of Two Arrays
❌
❌
❌
❌
❌
❌
❌
1603 - Design Parking System
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2348 - Number of Zero-Filled Subarrays
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2405 - Optimal Partition of String
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
1396 - Design Underground System
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2483 - Minimum Penalty for a Shop
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0068 - Text Justification
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2306 - Naming a Company
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌

Two Pointers

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0125 - Valid Palindrome
❌
❌
0680 - Valid Palindrome II
❌
❌
❌
❌
❌
❌
1984 - Minimum Difference Between Highest And Lowest of K Scores
❌
❌
❌
❌
❌
❌
1768 - Merge Strings Alternately
❌
❌
❌
❌
❌
❌
❌
❌
❌
0344 - Reverse String
❌
❌
❌
❌
0088 - Merge Sorted Array
❌
❌
❌
❌
❌
❌
0283 - Move Zeroes
❌
❌
❌
❌
❌
0026 - Remove Duplicates From Sorted Array
❌
❌
❌
❌
❌
0080 - Remove Duplicates From Sorted Array II
❌
❌
❌
❌
❌
❌
❌
0167 - Two Sum II Input Array Is Sorted
❌
❌
❌
0015 - 3Sum
❌
❌
0018 - 4Sum
❌
❌
❌
❌
❌
❌
❌
❌
0011 - Container With Most Water
❌
❌
1498 - Number of Subsequences That Satisfy The Given Sum Condition
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0189 - Rotate Array
❌
❌
❌
❌
❌
❌
❌
❌
❌
1968 - Array With Elements Not Equal to Average of Neighbors
❌
❌
❌
❌
❌
❌
❌
❌
❌
0881 - Boats to Save People
❌
❌
❌
❌
❌
❌
❌
0042 - Trapping Rain Water
❌
❌
❌

Sliding Window

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0121 - Best Time to Buy And Sell Stock
❌
❌
0219 - Contains Duplicate II
❌
❌
❌
❌
❌
❌
1343 - Number of Sub Arrays of Size K and Avg Greater than or Equal to Threshold
❌
❌
❌
❌
❌
❌
❌
❌
0003 - Longest Substring Without Repeating Characters
❌
❌
0424 - Longest Repeating Character Replacement
❌
❌
❌
❌
0567 - Permutation In String
❌
❌
❌
❌
❌
1838 - Frequency of The Most Frequent Element
❌
❌
❌
❌
❌
❌
0904 - Fruits into Basket
❌
❌
❌
❌
❌
❌
❌
❌
1456 - Maximum Number of Vowels in a Substring of Given Length
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
1888 - Minimum Number of Flips to Make The Binary String Alternating
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0209 - Minimum Size Subarray Sum
❌
❌
❌
❌
❌
❌
❌
❌
0658 - Find K Closest Elements
❌
❌
❌
❌
❌
❌
❌
❌
❌
1658 - Minimum Operations to Reduce X to Zero
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0076 - Minimum Window Substring
❌
❌
❌
❌
0239 - Sliding Window Maximum
❌
❌
❌
❌

Stack

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0020 - Valid Parentheses
❌
❌
❌
0682 - Baseball Game
❌
❌
❌
❌
❌
0225 - Implement Stack Using Queues
❌
❌
❌
❌
❌
0155 - Min Stack
❌
❌
❌
0150 - Evaluate Reverse Polish Notation
❌
❌
❌
2390 - Removing Stars From a String
❌
❌
❌
❌
❌
❌
❌
❌
❌
0946 - Validate Stack Sequences
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0022 - Generate Parentheses
❌
❌
❌
❌
0735 - Asteroid Collision
❌
❌
❌
❌
❌
❌
❌
0739 - Daily Temperatures
❌
❌
❌
❌
0901 - Online Stock Span
❌
❌
❌
❌
❌
❌
❌
❌
❌
0853 - Car Fleet
❌
❌
❌
❌
0071 - Simplify Path
❌
❌
❌
❌
❌
❌
❌
❌
❌
0394 - Decode String
❌
❌
❌
❌
❌
❌
❌
❌
❌
0402 - Remove K Digits
❌
❌
❌
❌
❌
❌
❌
❌
❌
1209 - Remove All Adjacent Duplicates In String II
❌
❌
❌
❌
❌
❌
❌
❌
❌
0456 - 132 Pattern
❌
❌
❌
❌
❌
❌
❌
❌
❌
0895 - Maximum Frequency Stack
❌
❌
❌
❌
❌
❌
❌
❌
❌
0084 - Largest Rectangle In Histogram
❌
❌
❌
❌
ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0704 - Binary Search
❌
❌
0035 - Search Insert Position
❌
❌
❌
❌
0374 - Guess Number Higher Or Lower
❌
❌
❌
❌
❌
❌
0441 - Arranging Coins
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0977 - Squares of a Sorted Array
❌
❌
❌
❌
❌
❌
❌
0367 - Valid Perfect Square
❌
❌
❌
❌
❌
❌
❌
❌
0069 - Sqrt(x)
❌
❌
❌
❌
❌
❌
❌
❌
❌
0540 - Single Element in a Sorted Array
❌
❌
❌
❌
❌
❌
❌
❌
❌
1011 - Capacity to Ship Packages
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0162 - Find Peak Element
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
2300 - Successful Pairs of Spells and Potions
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0074 - Search a 2D Matrix
❌
❌
❌
❌
0875 - Koko Eating Bananas
❌
❌
❌
❌
2616 - Minimize the Maximum Difference of Pairs
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0153 - Find Minimum In Rotated Sorted Array
❌
❌
❌
0033 - Search In Rotated Sorted Array
❌
❌
❌
❌
0081 - Search In Rotated Sorted Array II
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0981 - Time Based Key Value Store
❌
❌
❌
❌
0034 - Find First And Last Position of Element In Sorted Array
❌
❌
❌
❌
❌
❌
❌
❌
1898 - Maximum Number of Removable Characters
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0116 - Populating Next Right Pointers In Each Node
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
1268 - Search Suggestions System
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0410 - Split Array Largest Sum
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0004 - Median of Two Sorted Arrays
❌
❌
❌
❌

Linked List

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0206 - Reverse Linked List
❌
❌
0021 - Merge Two Sorted Lists
❌
❌
0234 - Palindrome Linked List
❌
❌
❌
❌
❌
❌
❌
❌
❌
0203 - Remove Linked List Elements
❌
❌
❌
❌
❌
❌
❌
❌
0083 - Remove Duplicates From Sorted List
❌
❌
❌
❌
❌
❌
❌
❌
0876 - Middle of the Linked List
❌
❌
❌
❌
❌
0160 - Intersection of Two Linked Lists
❌
❌
❌
❌
❌
❌
❌
❌
❌
0143 - Reorder List
❌
❌
❌
❌
❌
2130 - Maximum Twin Sum Of A Linked List
❌
❌
❌
❌
❌
❌
❌
❌
❌
0019 - Remove Nth Node From End of List
❌
❌
❌
❌
❌
1721 - Swapping Nodes in a Linked List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0460 - LFU Cache
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0138 - Copy List With Random Pointer
❌
❌
❌
❌
❌
0707 - Design Linked List
❌
❌
❌
❌
❌
❌
❌
❌
❌
1472 - Design Browser History
❌
❌
❌
❌
❌
❌
❌
❌
0002 - Add Two Numbers
❌
❌
0141 - Linked List Cycle
❌
❌
❌
0287 - Find The Duplicate Number
❌
❌
❌
❌
0024 - Swap Nodes In Pairs
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0148 - Sort List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0086 - Partition List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0061 - Rotate List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0092 - Reverse Linked List II
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0622 - Design Circular Queue
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0147 - Insertion Sort List
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0725 - Split Linked List in Parts
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
❌
0146 - LRU Cache
❌
❌
❌
❌
❌
0023 - Merge K Sorted Lists
❌
❌
❌
❌
❌
0025 - Reverse Nodes In K Group
❌
❌
❌
❌
❌

Trees

ProblemarticlesCC++C#DartGOhintsJavaJSKotlinPythonRubyRustScalaSwiftTS
0094 - Binary Tree Inorder Traversal
❌
❌
❌
❌
[0144

Truncated — view the full README on GitHub.

Significant stargazers

Leandro Moreira

2,379 followers · starred Apr 2022

Boris Dvorkin

61 followers · starred May 2023

Jimin Hsieh

42 followers · starred Aug 2022

Duong A. Nguyen

52 followers · starred Nov 2022