HAMLeetcodeSwiftSolutions
HAMLeetcodeSwiftSolutions copied to clipboard
Leetcode Swift 题解。Leetcode solutions in Swift.
Leet code Swift 题解
仅为个人学习用,只能保证在 Leet code 上通过,也可能有的语法不完全规范,或者有更好的解法。讨论欢迎留 issue :)
| # | 题目 | 题解 |
|---|---|---|
| 1 | Two Sum | 题解 |
| 2 | Add Two Numbers | 题解 |
| 3 | Longest Substring Without Repeating Characters | 题解 |
| 4 | Median of Two Sorted Arrays | 题解 |
| 5 | Longest Palindromic Substring | 题解 |
| 6 | ZigZag Conversion | 题解 |
| 7 | Reverse Integer | 题解 |
| 8 | String to Integer | 题解 |
| 9 | Palindrome Number | 题解 |
| 10 | Regular Expression Matching | 题解 |
| 11 | Container With Most Water | 题解 |
| 12 | Integer to Roman | 题解 |
| 13 | Roman to Integer | 题解 |
| 14 | Longest Common Prefix | 题解 |
| 15 | 3Sum | 题解 |
| 16 | 3Sum closest | 题解 |
| 17 | Letter Combinations of a Phone Number | 题解 |
| 18 | 4Sum | 题解 |
| 19 | Remove Nth Node From End of List | 题解 |
| 20 | Valid Parentheses | 题解 |
| 21 | Merge Two Sorted Lists | 题解 |
| 22 | Generate Parentheses | 题解 |
| 23 | Merge k Sorted Lists | 题解 |
| 24 | Swap Node in Pairs | 题解 |
| 25 | Reverse Nodes in k-Group | 题解 |
| 26 | Remove Duplicates from Sorted Array | 题解 |
| 27 | Remove Element | 题解 |
| 28 | Implement strStr() | 题解 |
| 29 | Divide Two Integers | 题解 |