- 博客(4)
- 收藏
- 关注
原创 LeetCode之Projection Area of 3D Shapes(Kotlin)
问题: 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 placed on top of grid cell (i, j). Now we v...
2018-12-23 21:38:17 194
原创 LeetCode之Increasing Order Search Tree(Kotlin)
问题: Given a tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child and only 1 right child. Example 1: Input: [5,3,6,...
2018-12-15 18:09:28 172
原创 LeetCode之Reveal Cards In Increasing Order(Kotlin)
问题: In a deck of cards, every card has a unique integer. You can order the deck in any order you want. Initially, all the cards start face down (unrevealed) in one deck. Now, you do the following st...
2018-12-08 21:21:52 197
原创 LeetCode之DI String Match(Kotlin)
问题: Given a string S that only contains “I” (increase) or “D” (decrease), let N = S.length. Return any permutation A of [0, 1, …, N] such that for all i = 0, …, N-1: If S[i] == “I”, then A[i] < A...
2018-12-01 20:18:40 437
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人