Domanda di colloquio di Magic Leap

A leetcode question about matrix and dfs.