Doordash Phone screen
Anonymous User
767

https://leetcode.com/problems/count-sub-islands/description/ Exact same question with different names of grid1 and grid2 obviously

Just this one cuz I wasted too much time thinking about grid1. I realized at the end of the interview that I only needed DFS/BFS on grid2 and return True/False from the BFS/DFS function, for every island in grid2. Sad! :`(

Comments (4)