摘要:
题目描述: Given an n-ary tree, return the postorder traversal of its nodes' values. For example, given a 3-ary tree: Return its postorder traversal as: [5 阅读全文
posted @ 2018-08-19 10:34
gszzsg
阅读(147)
评论(0)
推荐(0)
摘要:
题目描述: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original 阅读全文
posted @ 2018-08-18 14:57
gszzsg
阅读(114)
评论(0)
推荐(0)
摘要:
题目描述: Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appe 阅读全文
posted @ 2018-08-18 14:18
gszzsg
阅读(120)
评论(0)
推荐(0)
摘要:
题目描述: Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the 阅读全文
posted @ 2018-08-17 20:59
gszzsg
阅读(117)
评论(0)
推荐(0)
摘要:
题目描述: Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy 阅读全文
posted @ 2018-08-17 19:31
gszzsg
阅读(129)
评论(0)
推荐(0)
摘要:
题目描述: 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 horizonta 阅读全文
posted @ 2018-08-16 19:49
gszzsg
阅读(92)
评论(0)
推荐(0)
摘要:
题目描述: A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if 阅读全文
posted @ 2018-08-16 18:37
gszzsg
阅读(116)
评论(0)
推荐(0)
摘要:
题目描述: You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Each round's operation is p 阅读全文
posted @ 2018-08-15 19:12
gszzsg
阅读(148)
评论(0)
推荐(0)
摘要:
题目描述: Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farth 阅读全文
posted @ 2018-08-14 21:05
gszzsg
阅读(130)
评论(0)
推荐(0)
摘要:
题目描述: S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want 阅读全文
posted @ 2018-08-14 19:56
gszzsg
阅读(149)
评论(0)
推荐(0)
浙公网安备 33010602011771号