Buildings With an Ocean View.
Unlock detailed company stats for this questionUpgrade
You are given the heights of buildings in a vector, with a sea to the right of the vector. Return the indices of all buildings with a sea view.
Expect follow-ups like
- What if the ocean is on both sides?
- If you can remove one building, which one increases the count of buildings with an ocean view?
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course

