NVIDIA Interview Question

coding part: the classic DFS question about island, which can be found in Leetcode