My solutions to LeetCode problems in JavaScript and Python. I did them as daily "marathons" (30 days in JS, 20 days in Python) to get better at algorithms and data structures. Every solution has tests, and most of them have a link to my explanation on LeetCode.
git clone https://github.com/IkboljonMe/leetcode.git
cd leetcodecd JavaScript
npm install
npm testRun tests for one problem:
npm test -- 30days_marathon/2_day/PlusOnecd Python
pip install -r requirements.txt
pytestRun tests for one problem:
pytest -k "isAnagram"| Day | Problem | Difficulty | Solution |
|---|---|---|---|
| 1 | 27. Remove Element | Easy | code |
| 2 | 28. Find the Index of the First Occurrence in a String | Easy | code |
| 3 | 35. Search Insert Position | Easy | code |
| 4 | 1470. Shuffle the Array | Easy | code |
| 5 | 1920. Build Array from Permutation | Easy | code |
| 6 | 217. Contains Duplicate | Easy | code |
| 7 | 242. Valid Anagram | Easy | code |
| 8 | 49. Group Anagrams | Medium | code |
| 9 | 36. Valid Sudoku | Medium | code |
MIT, see LICENSE.
Made by IkboljonMe