Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5944d62

Browse files
authored
Update README.md
1 parent 24f59cb commit 5944d62

File tree

1 file changed

+33
-21
lines changed

1 file changed

+33
-21
lines changed

‎README.md‎

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,37 @@ Straightforward solutions
99
- Written in [Swift 4.2](https://swift.org/blog/swift-4-2-released/)
1010

1111
## 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) |
12+
| # | Problem | Solution || # | 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)|| 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) |
15+
| 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)|| 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) |
16+
| 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)|| 20 | [Valid Parentheses](https://leetcode.com/problems/valid-parentheses/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0020-ValidParentheses.playground/Contents.swift) |
17+
| 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)|| 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) |
18+
| 27 | [Remove Element](https://leetcode.com/problems/remove-element/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0027-RemoveElement.playground/Contents.swift)|| 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)|| 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) |
19+
| 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)|| 66 | [Plus One](https://leetcode.com/problems/plus-one/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0066-PlusOne.playground/Contents.swift) |
20+
| 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)|| 70 | [Climbing Stairs](https://leetcode.com/problems/climbing-stairs/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0070-ClimbingStairs.playground/Contents.swift) |
21+
| 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)|| 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) |
22+
| 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)|| 500 | [Keyboard Row](https://leetcode.com/problems/keyboard-row/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Easy/0500-KeyboardRow.playground/Contents.swift) |
23+
| 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)|| 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) |
3324
| 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) |
25+
26+
## Problems and Solutions - Medium
27+
| # | Problem | Solution || # | Problem | Solution |
28+
| ---- |:-------------| -----:|-| ---- |:-------------| -----:|
29+
| 2 | [Add Two Numbers](https://leetcode.com/problems/add-two-numbers/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Medium/0002-AddTwoNumbers.playground/Contents.swift)|| 3 | [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Medium/0003-LongestSubstringWithoutRepeatingCharacters.playground/Contents.swift) |
30+
| 6 | [ZigZag Conversion](https://leetcode.com/problems/zigzag-conversion/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Medium/0006-ZigZagConversion.playground/Contents.swift)|| 11 | [Container With Most Water](https://leetcode.com/problems/container-with-most-water/description/) | [Solution](https://github.com/twho/LeetCode-Swift/blob/master/Medium/0003-LongestSubstringWithoutRepeatingCharacters.playground/Contents.swift) |
31+
| 12 | [Integer to Roman](https://leetcode.com/problems/integer-to-roman/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0012-IntegerToRoman.playground/Contents.swift)|| 15 | [3Sum](https://leetcode.com/problems/3sum/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0015-3Sum.playground/Contents.swift) |
32+
| 16 | [3Sum Closest](https://leetcode.com/problems/3sum-closest/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0016-3SumClosest.playground/Contents.swift)|| 17 | [Letter Combinations of a Phone Number](https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0017-LetterCombinationsOfAPhoneNumber.playground/Contents.swift) |
33+
| 18 | [4Sum](https://leetcode.com/problems/4sum/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0018-4Sum.playground/Contents.swift)|| 19 | [Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0019-RemoveNthNodeFromEndofList.playground/Contents.swift) |
34+
| 24 | [Swap Nodes in Pairs](https://leetcode.com/problems/swap-nodes-in-pairs/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0024-SwapNodesInPairs.playground/Contents.swift)|| 29 | [Divide Two Integers](https://leetcode.com/problems/divide-two-integers/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0029-DivideTwoIntegers.playground/Contents.swift) |
35+
| 33 | [Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0033-SearchInRotatedSortedArray.playground/Contents.swift)|| 39 | [Combination Sum](https://leetcode.com/problems/combination-sum/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0039-CombinationSum.playground/Contents.swift) |
36+
| 40 | [Combination Sum II](https://leetcode.com/problems/combination-sum-ii/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0040-CombinationSumII.playground/Contents.swift)|| 46 | [Permutations](https://leetcode.com/problems/permutations/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0046-Permutations.playground/Contents.swift) |
37+
| 48 | [Rotate Image](https://leetcode.com/problems/rotate-image/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0048-RotateImage.playground/Contents.swift)|| 49 | [Group Anagrams](https://leetcode.com/problems/group-anagrams/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0049-GroupAnagrams.playground/Contents.swift) |
38+
| 56 | [Merge Intervals](https://leetcode.com/problems/merge-intervals/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0056-MergeIntervals.playground/Contents.swift)|| 61 | [Rotate List](https://leetcode.com/problems/rotate-list/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0061-RotateList.playground/Contents.swift) |
39+
| 62 | [Unique Paths](https://leetcode.com/problems/unique-paths/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0062-UniquePaths.playground/Contents.swift)|| 75 | [Sort Colors](https://leetcode.com/problems/sort-colors/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0075-SortColors.playground/Contents.swift) |
40+
| 78 | [Subsets](https://leetcode.com/problems/subsets/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0078-Subsets.playground/Contents.swift)|| 80 | [Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0080-RemoveDuplicatesFromSortedArrayII.playground/Contents.swift) |
41+
| 90 | [Subsets II](https://leetcode.com/problems/subsets-ii/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0090-SubsetsII.playground/Contents.swift)|| 134 | [Gas Station](https://leetcode.com/problems/gas-station/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0134-GasStation.playground/Contents.swift) |
42+
| 148 | [Sort List](https://leetcode.com/problems/sort-list/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0148-SortList.playground/Contents.swift)|| 152 | [Maximum Product Subarray](https://leetcode.com/problems/maximum-product-subarray/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0152-MaximumProductSubarray.playground/Contents.swift) |
43+
| 153 | [Find Minimum in Rotated Sorted Array](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0153-FindMinimumInRotatedSortedArray.playground/Contents.swift)|| 200 | [Number of Islands](https://leetcode.com/problems/number-of-islands/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0200-NumberOfIslands.playground/Contents.swift) |
44+
| 238 | [Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0238-ProductOfArrayExceptSelf.playground/Contents.swift)|| 287 | [Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0287-FindTheDuplicateNumber.playground/Contents.swift) |
45+
| 395 | [Longest Substring with At Least K Repeating Characters](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/description/) | [Solution](https://github.com/twho/LeetCode-Swift/tree/master/Medium/0395-LongestSubstringwithAtLeastKRepeatingCharacters.playground/Contents.swift)|

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /