LeetCode(https://leetcode.com/)
序号 | 问题 | 难度 | 代码 | 时间复杂度 |
---|---|---|---|---|
1 | Two Sum | Easy | JavaScript | O(n^2) |
1 | Two Sum | Easy | JavaScript | O(n) |
1 | Two Sum | Easy | Python | O(n) |
2 | Add Tow Numbers | Medium | JavaScript | O(n) |
2 | Add Tow Numbers | Medium | Python | O(n) |
3 | Longest Substring Without Repeating Characters | Medium | JavaScript | O(n^2) |
3 | Longest Substring Without Repeating Characters | Medium | JavaScript | O(n) |
4 | Median of Two Sorted Arrays | Hard | JavaScript | O(m+n) |
4 | Median of Two Sorted Arrays | Hard | JavaScript | O(log2(m+n)) |
5 | Longest Palindromic Substring | Medium | JavaScript | |
6 | ZigZag Conversion | Easy | JavaScript | O(n) |
7 | Reverse Integer | Easy | JavaScript | O(n) |
8 | String to Integer | Easy | JavaScript | O(n) |
9 | Palindrome Number | Easy | JavaScript | O(n) |
10 | Regular Expression Matching | Hard | JavaScript | O(n) |
11 | Container With Most Water | Medium | JavaScript | O(n) |
12 | Integer to Roman | Medium | JavaScript | O(n) |
13 | Roman to integer | Easy | JavaScript | O(n) |
14 | Longest Common Prefix | Easy | JavaScript | O(n) |