- 博客(2)
- 收藏
- 关注
原创 Leetcode 99. Recover Binary Search Tree
Recover Binary Search Tree 题目描述: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. 解决思路: 题目要求把一个有序二叉树恢复,其中的两个值调换了,要修改过来。 题目给出的list是广...
2018-11-21 14:50:59
114
原创 Leetcode 342. power of four
Leetcode 342. power of four Leetcode 342. power of four 工具: 0101 0101 0101 0101 0101 0101 0101 0101 (32bits) 1431655765 作用: 4的零次方: 0001 4的1次方: 00100 4的2次方: 10000 也就是说,1431655765这个十进制数是power of 4的...
2018-10-12 15:09:33
245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人