Showing 3 of 10 questions
You are given a grid representing land and water. Find the water cell that is furthest from any land cell, and return the distance. If the grid is all land or all water, return -1.
#1. As Far from Land as Possible
Determine if you can escape a maze with obstacles, given a starting point and a target. The maze is very large, so a simple search may not be efficient.
#2. Escape a Large Maze
You're given a sequence of numbers, each belonging to one of three groups. Find the minimum number of operations to sort the sequence so that all numbers from the same group are clustered together.
#3. Sorting Three Groups
Page 1 of 1 · 10 total