Skip to content

Commit 24f59cb

Browse files
Merge branch 'master' of https://github.com/twho/LeetCode-Swift
2 parents 4e331c5 + f3d752d commit 24f59cb

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

README.md

+33-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
1-
# LeetCode-Swift
2-
Swift solutions for LeetCode problem set
1+
# LeetCode-Swift
2+
Straightforward solutions
3+
4+
[![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg?style=flat)](https://developer.apple.com/swift/)
5+
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/twho/LeetCode-Swift/blob/master/LICENSE)
6+
7+
## Key Features
8+
- All solutions have been accepted by [LeetCode](https://leetcode.com/problemset/all/).
9+
- Written in [Swift 4.2](https://swift.org/blog/swift-4-2-released/)
10+
11+
## Problems and Solutions - Easy
12+
| # | Problem | Solution |
13+
| ---- |:-------------| -----:|
14+
| 1 |[Two Sum](https://leetcode.com/problems/two-sum/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0001-TwoSum.playground/Contents.swift) |
15+
| 7 | [Reverse Integer](https://leetcode.com/problems/reverse-integer/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0007-ReverseInteger%2B0069-Sqrtx.playground/Contents.swift) |
16+
| 9 | [Palindrome Number](https://leetcode.com/problems/palindrome-number/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0009-PalindromeNumber.playground/Contents.swift) |
17+
| 13 | [Roman to Integer](https://leetcode.com/problems/roman-to-integer/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0013-RomanToInteger.playground/Contents.swift) |
18+
| 14 | [Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0014-LongestCommonPrefix.playground/Contents.swift) |
19+
| 20 | [Valid Parentheses](https://leetcode.com/problems/valid-parentheses/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0020-ValidParentheses.playground/Contents.swift) |
20+
| 21 | [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0021-MergeTwoSortedLists.playground/Contents.swift) |
21+
| 26 | [Remove Duplicate from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0026-RemoveDuplicatesfromSortedArray.playground/Contents.swift) |
22+
| 27 | [Remove Element](https://leetcode.com/problems/remove-element/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0027-RemoveElement.playground/Contents.swift) |
23+
| 28 | [Implement strStr()](https://leetcode.com/problems/implement-strstr/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0028-ImplementstrStr().playground/Contents.swift) |
24+
| 35 | [Search Insert Position](https://leetcode.com/problems/search-insert-position/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0035-SearchInsertPosition.playground/Contents.swift) |
25+
| 53 | [Maximum Subarray](https://leetcode.com/problems/maximum-subarray/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0053-MaximumSubarray.playground/Contents.swift) |
26+
| 66 | [Plus One](https://leetcode.com/problems/plus-one/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0066-PlusOne.playground/Contents.swift) |
27+
| 67 | [Add Binary](https://leetcode.com/problems/add-binary/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0067-AddBinary.playground/Contents.swift) |
28+
| 88 | [Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0088-MergeSortedArray.playground/Contents.swift) |
29+
| 167 | [Two Sum II - Input array is sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0167-TwoSumII.playground/Contents.swift) |
30+
| 206 | [Reverse Linked List](https://leetcode.com/problems/reverse-linked-list/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0206-ReverseLinkedList.playground/Contents.swift) |
31+
| 766 | [Toeplitz Matrix](https://leetcode.com/problems/toeplitz-matrix/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0766-ToeplitzMatrix.playground/Contents.swift) |
32+
| 876 | [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0876-MiddleOfTheLinkedList.playground/Contents.swift) |
33+
| 892 | [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0892-SurfaceAreaOf3DShapes.playground/Contents.swift) |

0 commit comments

Comments
 (0)