Loading...
Engaged Employer
2D array with 0 and 1, find islands.
Anonymous
Yep, use DFS and mark the 1's as visited inside the DFS and add 1 to the island's count when you find a 1 before doing the DFS.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.