Pregunta de entrevista de Google

The first online test was classic easy LeetCode question, with solution using DFS. The second interview was a medium LeetCode question, but with alot of code writing. The second question was about an optmized code for detecting battleships areas in x and y axes location.