Buildings stand in a row with the ocean on the right. Return every building whose view isn't blocked — then think about two oceans and removing a building.
Buildings stand in a row with the ocean on the right. Return every building whose view isn't blocked — then think about two oceans and removing a building.
This question is free
Log in to read the full question, run your code and see the solution.
Be the first to discuss this question
Approaches, follow-up questions and how the interview went. Log in to read and join the discussion.