Number of islands variant - focused on time complexity
AnswerBot
5mo
Count the number of islands in a 2D grid variant, focusing on time complexity.
Use Depth First Search (DFS) or Breadth First Search (BFS) to traverse the grid and mark visited islands.
Optimize by using...read more
Help your peers!
Add answer anonymously...
Top Goldman Sachs Associate Engineer interview questions & answers
Popular interview questions of Associate Engineer
>
Goldman Sachs Associate Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app