
python
Simple_ R
这个作者很懒,什么都没留下…
展开
-
Leetcode 476. Number Complement
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given integer is guaranteed to fit within the range of a ...原创 2019-03-30 14:20:25 · 178 阅读 · 0 评论 -
Leetcode 114. Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ ...原创 2019-03-30 16:32:20 · 196 阅读 · 0 评论