This repo contains the solution of the problems which are written in Swift and solved by TDD or unit tests. The problems are taken from LeedtCode site.
| Problem | Solution | Time Complexity (Runtime) | Space Complexity (Memory) | Difficulty |
|---|---|---|---|---|
| Fizz Buzz | Solution | O(1) | O(1) | Easy |
| First Unique Character in a String | Solution | O(n) | O(1) | Easy |
| Valid Palindrome | Solution | O(n) | O(n) | Easy |
| Two Sum | Solution | O(n) | O(n) | Easy |