S.No | Problem Name | Difficulty (Relative to Me) | Algo Used | DS Used | Time Complexity | Space Complexity | Solution Required |
---|---|---|---|---|---|---|---|
1 | Check If It Is a Straight Line | Inter | - | - | O(n) | O(1) | ✔️ |
2 | First Bad Version | Inter | Binary Search | - | O(logn) | O(1) | ✔️ |
3 | Valid Perfect Square | Inter | Intuitive / Binary Search | - | O(logn) | O(1) | ✔️ |
4 | Jewels and Stones | Easy | Intuitive | Set | O(n2) | O(1) | 〰️ |
5 | Find the Town Judge | Hard | Intuitive (88/89) | - | O(n2) | O(n) | ✔️ |
6 | Ransom Note | Inter | - | Dictionary | O(r * m) | O(m) | ✔️ |
7 | Contiguous Array | Inter | Prefix Difference | Dictionary | O(n) | O(n) | ✔️ |
8 | Possible Bipartition | Hard | BFS / Graph Colouring | Sets / Dictionary | O(n) | O(n) | ✔️ |
kaulraghav / leetcodemaychallenge Goto Github PK
View Code? Open in Web Editor NEWLeetCode May 30 Day Challenge