Initially, I used basic loops for almost everything. But while learning more, I started understanding how JavaScript array methods make code cleaner and easier to read. Some methods that I’m using ...
Count Sub Islands. 💡 Approach: The idea is to traverse every island in grid2 using DFS/BFS. While exploring an island, we continuously check whether all its land cells correspond to land cells in ...
I created this repository because there came a point where I felt that just watching tutorials wasn't going to cut it. Programming doesn't truly "make sense" until you open a blank file and solve ...