- 博客(3)
- 收藏
- 关注
原创 【LeetCode】 94 Binary Tree Inorder Traversal
题目描述 Given the root of a binary tree, return the inorder traversal of its nodes' values. Example 1: Input: root = [1,null,2,3]Output: [1,3,2] Example 2: Input: root = [1,2]Output: [2,1] Example 3:Input: root = []Output: [] Constraints: T...
2020-10-22 23:29:10
149
原创 【LeetCode】 455 Assign Cookies
题目描述 Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i hasa greed factor g[i], which is the minimum size of a cookie that the child will be content with; and ea.
2020-10-20 21:03:49
195
原创 【LeetCode】 374 Guess Number Higher or Lower
题目描述 We are playing the Guess Game. The game is as follows: I pick a number from1ton. You have to guess which number I picked. Every time you guess wrong, I will tell you whether the number I picked is higher or lower than your guess. You call a pre...
2020-10-18 16:51:54
116
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人