This repository is a collection of Leetcode questions and solutions.
To use this project to test the algorithm result.
- Go to the view controller class
- Invoke the algorithms in viewDidLoad, where I have already put some examples.
- Because all the functions are written in the Algorithms class and they are class functions.
- To invoke any func, do the following:
Algorithms.threeSum([-1,0,1,2,-1,-4])
This repository will be updated quite often, so please stay tune. Currently it contains:
- Two Sum Easy
- Integer to Roman Medium
- Roman to Integer Easy
- Longest Common Prefix Easy
- 3Sum Medium
- 3Sum Closest Medium
- Letter Combinations of a Phone Number Medium
- 4Sum Medium
- Remove Nth Node From End of List Medium
- Valid Parentheses Easy
- Merge Two Sorted Lists Easy
- Generate Parentheses Medium
- Merge k Sorted Lists Hard
- Swap Nodes in Pairs Medium
Please feel free to check my other repository for iOS tutorials. Each tutorial will have a corresponding video tutorial in my Youtube Channel here: https://Youtube.com/c/iosetutorials.com
Also follow my social account: Facebook: https://www.facebook.com/iosetutorial/?ref=bookmarks Twitter: https://twitter.com/sheldonwaaaaang Github: https://github.com/SheldonWangRJT My log website: http://iosetutorials.com