The repository contains the best versions of my solutions to LeetCode problems using Python3 and TypeScript.
# | Title | Solution | Time | Space |
---|---|---|---|---|
1814 | Count Nice Pairs in an Array | TypeScript | O(n) | O(n) |
2 | Add Two Numbers | TypeScript | O(n) | O(n) |
# | Title | Solution | Time | Space |
---|---|---|---|---|
217 | Contains Duplicate | Python | O(n) | O(n) |
53 | Maximum Subarray | Python | O(n) | O(1) |
1 | Two Sum | Python | O(n^2) | O(1) |
88 | Merge Sorted Array | Python | O(n + k) | O(k) |
1480 | Running Sum of 1d Array | Python | O(n) | O(1) |