Solutions to LeetCode practice questions. Problems attempted to date listed below, from newest to oldest.
# | Title | Solution | Date | Time | Space | Difficulty | Notes |
---|---|---|---|---|---|---|---|
387 | First Unique Character in a String | Python | 2018-9-23 | O(n) | O(1) | Easy | |
155 | Min Stack | Python | 2018-9-23 | O(1) | O(n) | Easy | |
60 | Plus One | Python | 2018-9-23 | O(n) | O(1) | Easy | |
20 | Valid Parentheses | Python | 2018-9-23 | O(n) | O(n) | Easy | |
171 | Excel Sheet Column Number | Python | 2018-9-16 | O(n) | O(1) | Easy | |
686 | Repeated String Match | Python | 2018-4-30 | O(n^2) | O(n^2) | Easy | Time limit exceeded - needs improvement |
482 | License Key Formatting | Python | 2018-4-23 | O(n) | O(n) | Easy | Solution can be improved - retry later |
371 | Sum of Two Integers | Python | 2018-4-11 | O(n) | O(n) | Easy | Looked up solution - retry later |
283 | Move Zeroes | Python | 2018-3-29 | O(n) | O(1) | Easy | |
104 | Maximum Depth of Binary Tree | Python | 2018-3-28 | O(n) | O(h) | Easy | |
136 | Single Number | Python | 2018-3-27 | O(n) | O(1) | Easy | |
412 | Fizz Buzz | Python | 2018-3-27 | O(n) | O(n) | Easy | |
344 | Reverse String | Python | 2018-3-26 | O(n) | O(n) | Easy |