- Notifications
You must be signed in to change notification settings - Fork0
ironchef001/neetcode-leetcode
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Leetcode solutions for 🚀NeetCode.io
This repo hosts the solutions found onNeetCode.io including the solutions shown on theNeetCode YouTube channel. The site will periodically be updated with new solutions from this repo!
Solutions from these languages will be linked fromNeetCode.io:
Python, Java, JavaScript, C++, Go, Swift, C#, TypeScript, Rust, Kotlin, Ruby, C, Scala and Dart
Solutions are also welcome for any othersupported language on leetcode.com!
Please read thecontributing guidlines before opening a PR
To contribute, please fork this repo and open a PR adding amissing 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.
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | ❌ | ❌ | ❌ | ❌ |
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0208 - Implement Trie Prefix Tree | ❌ | |||||||||||||
0211 - Design Add And Search Words Data Structure | ❌ | ❌ | ||||||||||||
2707 - Extra Characters in a String | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
0212 - Word Search II | ❌ | ❌ | ❌ | ❌ |
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0703 - Kth Largest Element In a Stream | ❌ | ❌ | ❌ | |||||||||||
1046 - Last Stone Weight | ❌ | ❌ | ❌ | |||||||||||
0973 - K Closest Points to Origin | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||||
0215 - Kth Largest Element In An Array | ❌ | ❌ | ❌ | |||||||||||
0621 - Task Scheduler | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||||
0355 - Design Twitter | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||
1675 - Minimize Deviation in Array | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
2542 - Maximum Subsequence Score | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
1834 - Single Threaded Cpu | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||
1845 - Seat Reservation Manager | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||
1882 - Process Tasks Using Servers | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
1985 - Find The Kth Largest Integer In The Array | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||
0767 - Reorganize String | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||
1405 - Longest Happy String | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |
1094 - Car Pooling | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||
0295 - Find Median From Data Stream | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||||
1383 - Maximum Performance of a Team | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||
0502 - IPO | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0078 - Subsets | ❌ | ❌ | ||||||||||||
0039 - Combination Sum | ❌ | ❌ | ||||||||||||
0077 - Combinations | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||
0046 - Permutations | ❌ | ❌ | ||||||||||||
0090 - Subsets II | ❌ | ❌ | ❌ | |||||||||||
0040 - Combination Sum II | ❌ | ❌ | ❌ | ❌ | ||||||||||
0047 - Permutations II | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||
0079 - Word Search | ❌ | ❌ | ❌ | |||||||||||
0131 - Palindrome Partitioning | ❌ | ❌ | ❌ | |||||||||||
0093 - Restore IP Addresses | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||
0017 - Letter Combinations of a Phone Number | ❌ | ❌ | ❌ | |||||||||||
0473 - Matchsticks to Square | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||
1849 - Splitting a String Into Descending Consecutive Values | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||
1980 - Find Unique Binary String | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||
1239 - Maximum Length of a Concatenated String With Unique Characters | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
0698 - Partition to K Equal Sum Subsets | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||
0051 - N Queens | ❌ | ❌ | ❌ | ❌ | ||||||||||
0052 - N Queens II | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1631 - Path with Minimum Effort | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |
0332 - Reconstruct Itinerary | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||||
1584 - Min Cost to Connect All Points | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||||
0743 - Network Delay Time | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||
1514 - Path with Maximum Probability | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||
0778 - Swim In Rising Water | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||||
0269 - Alien Dictionary | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||
0787 - Cheapest Flights Within K Stops | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||||
2421 - Number of Good Paths | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||
1579 - Remove Max Number of Edges to Keep Graph Fully Traversable | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |
1489 - Find Critical and Pseudo Critical Edges in Minimum Spanning Tree | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0053 - Maximum Subarray | ❌ | ❌ | ||||||||||||
0918 - Maximum Sum Circular Subarray | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||
0978 - Longest Turbulent Array | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
0055 - Jump Game | ❌ | ❌ | ❌ | |||||||||||
0045 - Jump Game II | ❌ | ❌ | ❌ | |||||||||||
1871 - Jump Game VII | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |
0134 - Gas Station | ❌ | ❌ | ❌ | |||||||||||
0846 - Hand of Straights | ❌ | ❌ | ❌ | ❌ | ||||||||||
2439 - Minimize Maximum of Array | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |
0649 - Dota2 Senate | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |
1423 - Maximum Points You Can Obtain From Cards | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
1899 - Merge Triplets to Form Target Triplet | ❌ | ❌ | ❌ | ❌ | ||||||||||
0763 - Partition Labels | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||||
0678 - Valid Parenthesis String | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||||
1921 - Eliminate Maximum Number of Monsters | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||
1029 - Two City Scheduling | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||
0646 - Maximum Length of Pair Chain | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |
1647 - Minimum Deletions to Make Character Frequencies Unique | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
135- - Candy | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0057 - Insert Interval | ❌ | ❌ | ❌ | |||||||||||
0056 - Merge Intervals | ❌ | ❌ | ❌ | |||||||||||
0435 - Non Overlapping Intervals | ❌ | ❌ | ❌ | ❌ | ||||||||||
0252 - Meeting Rooms | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||
0253 - Meeting Rooms II | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||
1288 - Remove Covered Intervals | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
1851 - Minimum Interval to Include Each Query | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||
0352 - Data Stream as Disjoint Intervals | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0168 - Excel Sheet Column Title | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||
1071 - Greatest Common Divisor of Strings | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||
1523 - Count Odd Numbers in an Interval Range | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
1572 - Matrix Diagonal Sum | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||
0149 - Maximum Points on a Line | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||||
0048 - Rotate Image | ❌ | ❌ | ||||||||||||
0054 - Spiral Matrix | ❌ | ❌ | ❌ | ❌ | ||||||||||
0059 - Spiral Matrix II | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||
0073 - Set Matrix Zeroes | ❌ | ❌ | ❌ | ❌ | ||||||||||
0202 - Happy Number | ❌ | ❌ | ||||||||||||
0066 - Plus One | ❌ | ❌ | ||||||||||||
0009 - Palindrome Number | ❌ | ❌ | ❌ | ❌ | ||||||||||
0263 - Ugly Number | ❌ | ❌ | ❌ | ❌ | ||||||||||
1260 - Shift 2D Grid | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |||||
0013 - Roman to Integer | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||||
0012 - Integer to Roman | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||||
0050 - Pow(x, n) | ❌ | ❌ | ❌ | ❌ | ||||||||||
0043 - Multiply Strings | ❌ | ❌ | ❌ | ❌ | ||||||||||
2013 - Detect Squares | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||||
1041 - Robot Bounded In Circle | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
0006 - Zigzag Conversion | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||
2028 - Find Missing Observations | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
Problem | C | C++ | C# | Dart | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0136 - Single Number | ❌ | |||||||||||||
0191 - Number of 1 Bits | ❌ | ❌ | ||||||||||||
0338 - Counting Bits | ❌ | ❌ | ||||||||||||
0190 - Reverse Bits | ❌ | ❌ | ||||||||||||
0268 - Missing Number | ❌ | ❌ | ||||||||||||
1470 - Shuffle the Array | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||
0989 - Add to Array-Form of Integer | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||||||
0371 - Sum of Two Integers | ❌ | ❌ | ||||||||||||
0007 - Reverse Integer | ❌ | |||||||||||||
0067 - Add Binary | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
Need to update the README?Update the template instead.
About
Leetcode solutions
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- JavaScript15.8%
- Kotlin15.4%
- Java14.4%
- C++11.9%
- C8.3%
- Python7.5%
- Other26.7%