This project uses the Swift language to solve questions on LeetCode-cn and records the solution and the answer.
This project uses Xcode Playground to organize code files.
- Compiled with Xcode 10 and above.
- Swift 5.0 and above.
This section will list the questions that have been solved in this project.
# |
Title |
Difficulty |
914 |
X of a Kind in a Deck of Cards |
 |
941 |
Valid Mountain Array |
 |
999 |
Available Captures forRook |
 |
1365 |
How Many Numbers Are Smaller |
 |
289 |
Game of Life |
 |
912 |
Sort an Array |
 |
5381 |
Queries on a Permutation With Key |
 |
mst-01.07 |
Rotate Matrix LCCI |
 |
57 |
Insert Interval |
 |
# |
Title |
Difficulty |
278 |
First Bad Version |
 |
34 |
Find First and Last Position of Element in Sorted Array |
 |
# |
Title |
Difficulty |
127 |
Word Ladder |
 |
1162 |
As Far from Land as Possible |
 |
# |
Title |
Difficulty |
mst-17.16 |
The Masseuse LCCI |
 |
# |
Title |
Difficulty |
1207 |
Unique Number of Occurrences |
 |
463 |
Island Perimeter |
 |
# |
Title |
Difficulty |
55 |
Jump Game |
 |
134 |
Gas Station |
 |
1111 |
Maximum Nesting Depth of Two Valid Parentheses Strings |
 |
5195 |
Longest Happy String |
 |
# |
Title |
Difficulty |
876 |
Middle of the Linked List |
 |
2 |
Add Two Numbers |
 |
# |
Title |
Difficulty |
67 |
Add Binary |
 |
892 |
Surface Area of 3D Shapes |
 |
# |
Title |
Difficulty |
232 |
Implement Queue using Stacks |
 |
mst-03.02 |
Min Stack LCCI |
 |
496 |
Validate Stack Sequences |
 |
42 |
Trapping Rain Water |
 |
# |
Title |
Difficulty |
5380 |
String Matching in an Array |
 |
22 |
Generate Parentheses |
 |
151 |
Reverse Words in a String |
 |
5382 |
HTML Entity Parser |
 |
# |
Title |
Difficulty |
104 |
Maximum Depth of Binary Tree |
 |
110 |
Balanced Binary Tree |
 |
226 |
Invert Binary Tree |
 |
94 |
Binary Tree Inorder Traversal |
 |
129 |
Sum Root to Leaf Numbers |
 |
144 |
Binary Tree Preorder Traversal |
 |
236 |
Lowest Common Ancestor of a Binary Tree |
 |
654 |
Maximum Binary Tree |
 |
# |
Title |
Difficulty |
820 |
Short Encoding of Words |
 |
# |
Title |
Difficulty |
349 |
Intersection of Two Arrays |
 |