Solutions to every question in the May LeetCoding challenge
Hi guys!
Lockdown gave me an ample time to participate in May LeetCoding Challenge on Leetcode.
I have chosen C++ as my preferable language. I will be uploading the solutions to these questions (best of my knowledge) with both Time and Space Complexity.
| # | Title | Solution | Difficulty | Time Complexity | Space Complexity |
|---|---|---|---|---|---|
| 278 | First Bad Version | C++ | Easy | O(logn) | O(1) |
| 771 | Jewels and Stones | C++ | Easy | O(m+n) | O(m) |
| 383 | Ransom Note | C++ | Easy | O(n) | O(m) |
| 476 | Number Complement | C++ | Easy | O(logn) | O(1) |
| 387 | First Unique Character in a String | C++ | Easy | O(n) | O(m) |