网站首页 站内搜索

搜索结果

查询Tags标签: indexStk,共有 1条记录
  • 1762. Buildings With an Ocean View

    My first solution is use two skacks, one stack store index, another one store value, the time complexity is O(n).public int[] findBuildings(int[] heights) {Stack<Integer> indexStk = new Stack<>();Stack<Integer> valueStk = new Stack&l…

    2022/2/8 6:12:39 人评论 次浏览
扫一扫关注最新编程教程