← 返回 meta 的题目列表Ocean View Houses
类型:online_judge
Given an integer array heights, where heights[i] represents the height of the i-th house, return the indices of houses that have an ocean view. A house has an ocean view if there are no houses to the right that are taller. Please write a function to implement this requirement.
Example
Input
3
4 2 3