Leetcode #1762 Buildings With an Ocean View
This question might not be as hard as it looks. We can solve this question by looking at the array from the end, since the question stated "the ocean is right at the buildings".
Looping from the end of the array, we need a variable to keep track of t...
michelletanpy.hashnode.dev1 min read