2017年8月24日

LeetCode: 637 Average of Levels in Binary Tree

摘要: 题目: Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: Input: 3 / \ 9 20 / \ 15 7 阅读全文

posted @ 2017-08-24 22:38 玲珑子 阅读(115) 评论(0) 推荐(0) 编辑

LeetCode: 496 Next Greater Element I(easy)

摘要: 题目: You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nu 阅读全文

posted @ 2017-08-24 09:40 玲珑子 阅读(120) 评论(0) 推荐(0) 编辑

LeetCode: 463 Island Perimeter(easy)

摘要: 题目: You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontall 阅读全文

posted @ 2017-08-24 08:59 玲珑子 阅读(143) 评论(0) 推荐(0) 编辑

导航