摘要:
题目描述: 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 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
题目描述: Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
题目描述: 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 阅读全文