If you appreciate my work, please ๐ this repository. It motivates me. ๐ ๐
DSA CRACKER sheet : link
๐ด ๐ด IMPORTANT : If you forked this repo and want to be updated with the changes made to this repo refer How do I update a GitHub forked repository?
- Added Clone A Graph problem in the Graphs topic.
- If you think you have the better optimal solution.
- If you have the solution to the unsolved problem marked with "red-cross".
This is an attempt to solve 450 questions carefully curated by our very own Love Babbar.
# | Title | Solution | Time | Space | Difficulty | Note |
---|---|---|---|---|---|---|
1 | Spiral traversal on a Matrix | โ๏ธ | ||||
2 | Search an element in a matriix | โ๏ธ | ||||
3 | Find median in a row wise sorted matrix | โ๏ธ | ||||
4 | Find row with maximum no. of 1's | โ๏ธ |
# | Title | Solution | Time | Space | Difficulty | Note |
---|---|---|---|---|---|---|
1 | Rat In A Maze | โ๏ธ | - | - | - | |
2 | N Queens Problem | โ๏ธ | - | - | - | |
3 | M coloring Problem | โ๏ธ | O(n^m) | O(n) | - | |
5 | Sudoku Solver | โ๏ธ | - | - | - |
# | Title | Solution | Time | Space | Difficulty | Note |
---|---|---|---|---|---|---|
6 | Flood fill Algorithm | โ๏ธ | O(n*m) | O(n*m) | - | |
7 | Minimum Step By Knight | โ๏ธ | - | - | - | |
9 | Clone A Graph | โ๏ธ | - | - | - | |
13 | Implement Topological Sorting | โ๏ธ | - | - | - | |
22 | Implement Floyd Warshall Algorithm | โ๏ธ | - | - | - | |
25 | Snake and Ladder Problem | โ๏ธ | O(n) | O(n) | - | |
27 | Strongly Connected Components (Kosaraju's Algo) | โ๏ธ | - | - | - | |
32 | Cheapest Flights within k stops | โ๏ธ | Quadratic | Quadratic | Medium | |
358 | searching element in Graph using DFS | โ๏ธ | O(V+E) | O(V) | Medium |
# | Title | Solution | Time | Space | Difficulty | Note |
---|---|---|---|---|---|---|
1 | Right View of Binary Tree | โ๏ธ | o(n) | O(n) | Medium | |
2 | Height of Binary Tree | โ๏ธ | O(N) | O(N) | Medium | |
3 | Diameter of Binary Tree | โ๏ธ | O(N) | O(log(N)) | Easy | |
4 | Check for Balanced Tree | โ๏ธ | O(N) | O(log(N)) | Easy | |
5 | Binary Tree Postorder Traversal | โ๏ธ | O(n) | O(n) | Easy |
You can find me on to stay updated and follow along with my journey.