摘要:
Given a binary tree, return the inorder traversal of its nodes' values. Example: Input: [1,null,2,3] 1 \ 2 / 3 Output: [1,3,2] Follow up: Recursive so 阅读全文
posted @ 2018-07-11 17:50
Lin.B
阅读(79)
评论(0)
推荐(0)
摘要:
Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: Input: 5 O 阅读全文
posted @ 2018-07-11 17:39
Lin.B
阅读(107)
评论(0)
推荐(0)
摘要:
We are given the head node root of a binary tree, where additionally every node's value is either a 0 or a 1. Return the same tree where every subtree 阅读全文
posted @ 2018-07-11 16:32
Lin.B
阅读(107)
评论(0)
推荐(0)
摘要:
Given a list of daily temperatures, produce a list that, for each day in the input, tells you how many days you would have to wait until a warmer temp 阅读全文
posted @ 2018-07-11 15:02
Lin.B
阅读(105)
评论(0)
推荐(0)

浙公网安备 33010602011771号