LeetCode Problem Solving in Kotlin.
# | Title | Difficulty | Solution |
---|---|---|---|
1 | Two Sum | Easy | O(n^2), O(n) |
2 | Add two numbers | Medium | O(n) |
3 | longest-substring-without-repeating-characters | Medium | O(n^2) |
4 | median-of-two-sorted-arrays | Hard | O(n+m) |
5 | longest-palindromic-substring | Medium | O(n^2) |
6 | zigzag-conversion | Medium | O(n) |
7 | reverse-integer | Easy | O(log10_n) |