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 (complete)
- C++ (complete)
- Java (complete)
- Javascript
Solutions are also welcome for any other supported language on leetcode.com!
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.
| Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 217 - Contains Duplicate | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 242 - Valid Anagram | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 1 - Two Sum | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 49 - Group Anagrams | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 347 - Top K Frequent Elements | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 238 - Product of Array Except Self | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 36 - Valid Sudoku | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 128 - Longest Consecutive Sequence | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 125 - Valid Palindrome | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 167 - Two Sum II | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 15 - 3Sum | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
| 11 - Container with Most Water | β |
βοΈ |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
Need to update the README? Update the template instead.