上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 76 下一页
摘要: 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,6,3,2 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(93) 评论(0) 推荐(0)
摘要: We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would c 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(103) 评论(0) 推荐(0)
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(88) 评论(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 numbe 阅读全文
posted @ 2018-10-21 12:24 bernieloveslife 阅读(123) 评论(0) 推荐(0)
摘要: Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column ind 阅读全文
posted @ 2018-10-21 12:24 bernieloveslife 阅读(65) 评论(0) 推荐(0)
摘要: Given an array A of integers, for each integer A[i] we may choose any x with K 阅读全文
posted @ 2018-10-21 12:24 bernieloveslife 阅读(88) 评论(0) 推荐(0)
摘要: On a 2 dimensional grid with R rows and C columns, we start at (r0, c0) facing east. Here, the north west corner of the grid is at the first row and c 阅读全文
posted @ 2018-10-21 12:24 bernieloveslife 阅读(196) 评论(0) 推荐(0)
摘要: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and . Example 1: Input: a = 1, b = 2 Output: 3 Example 2: Inp 阅读全文
posted @ 2018-10-21 12:24 bernieloveslife 阅读(110) 评论(0) 推荐(0)
摘要: 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)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 76 下一页