- Exercices on LeetCode, solved by C and Python.
- The project started on 31-03-2021.
- Solve one problem each day.
- Learn Data Structure and Algorithm on a daily basis.
- Acquire skills on Python and enhance C's.
Dificulty | Time Complexity | Space Complexity | Notes | |
---|---|---|---|---|
Introduction | ||||
485. Max Consecutive Ones | Easy | |||
1295. Find Numbers with Even Number of Digits | Easy | |||
977. Squares of a Sorted Array | Easy | O(N) | O(N) | |
Inserting Items into an Array | ||||
1089. Duplicate Zeros | Easy | |||
88. Merge Sorted Array | Easy | |||
Deleting Items from an Array | ||||
27. Remove Element | Easy | O(N) | O(1) | |
26. Remove Duplicates from Sorted Array | Easy | O(N) | O(1) | Two-pointer technique, In-place operation |
Searching for Items in an Array | ||||
1346. Check If N and Its Double Exist | Easy | O(N) | O(N) | To be continued... |
941. Valid Mountain Array | Easy | O(N) | O(1) | |
In-Place Operations | ||||
1299. Replace Elements with Greatest Element on Right Side | Easy | O(N) | O(N) | |
283. Move Zeroes | Easy | O(N) | O(1) | Similar to #26 |
905. Sort Array By Parity | Easy | O(N) | O(N) | |
Other Techniques | ||||
1051. Height Checker | Easy | |||
414. Third Maximum Number | Easy | |||
448. Find All Numbers Disappeared in an Array | Easy |
Dificulty | Time Complexity | Space Complexity | |
---|---|---|---|
Background | |||
704. Binary Search | Easy | O(logn) | O(1) |
Template I | |||
69. Sqrtx | Easy | O(logn) | O(1) |
374. Guess Number Higher or Lower | Easy | O(logn) | O(1) |
33. Search in Rotated Sorted Array | Medium | O(logn) | O(1) |
Template II | |||
278. First Bad Version | Easy | O(logn) | O(1) |
162. Find Peak Element | Medium | O(logn) | O(1) |
153. Find Minimum in Rotated Sorted Array | Medium | O(logn) | O(1) |
Template III | |||
34. Search for a Range | Medium | O(logn) | O(1) |
658. Find K Closest Elements | Medium | O(logn + klogk + k) | Not finished yet |
Dificulty | |
---|---|
707. Design Linked List | Medium |
Dificulty | |
---|---|
705. Design Hash Set | Easy |
706. Design Hash Map | Easy |