DIY: Number of Islands
Explore how to solve the number of islands problem in a 2D grid using Ruby. Understand how to identify connected land regions and implement a solution that counts separate islands, a common coding interview challenge from companies like Facebook.
We'll cover the following...
We'll cover the following...