摘要:
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 Outp 阅读全文
posted @ 2018-10-20 11:51
bernieloveslife
阅读(84)
评论(0)
推荐(0)
摘要:
Given an n ary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example, given a 3 ary tree: 阅读全文
posted @ 2018-10-20 11:51
bernieloveslife
阅读(74)
评论(0)
推荐(0)
摘要:
On a N N grid, we place some 1 1 1 cubes that are axis aligned with the x, y, and z axes. Each value v = grid[i][j] represents a tower of v cubes plac 阅读全文
posted @ 2018-10-20 11:51
bernieloveslife
阅读(112)
评论(0)
推荐(0)
摘要:
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list head = [4,5,1,9], which 阅读全文
posted @ 2018-10-20 11:51
bernieloveslife
阅读(82)
评论(0)
推荐(0)
摘要:
Given an array nums of n integers where n 1, return an array output such that output[i] is equal to the product of all the elements of nums except num 阅读全文
posted @ 2018-10-20 11:51
bernieloveslife
阅读(79)
评论(0)
推荐(0)

浙公网安备 33010602011771号