My leetcode solutions basically in swift.
Licence: WTFPL
- 437: There is a better way with O(n) time.
- 123: Why my solution that slow?
- 1032: Time out
- 459: to follow the dp solution from others.
- 152: to follow the online solution from others.
- 134: simple solution
- 39: to follow the dp solution from others.
- 133: There is a more elegant 1-pass recusive solution.
- 111: Why so slow?
- 1510: Why so slow?
- 1283: Not the best way to do binary search.
- 1705: Swift has no priority queue which is needed.
- 1781: TLE
- 322: DFS is Much faster. Check on it.