- 博客(2)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 Bottom View of a Binary Tree
Given a Binary Tree, we need to print the bottom view from left to right. A node x is there in output if x is the bottommost node at its horizontal distance. Horizontal distance of left child of a nod
2014-12-17 15:15:23 2568 1
原创 输入一个无符号整数,用最少的步骤将该数变为1
输入一个无符号整数n,用最少的步骤将该数变为1,当n为偶数时可以采取的步骤是除2的形式,当n为奇数的时候可以采取加1或者减1的操作。 #include #include using namespace std; int min(int a, int b) { if (a < b) return a; return b; } int get_pow(uint num) { if
2014-12-16 17:15:19 3874 2
an efficient implemention of double array trie
2013-01-06
shared ptr可以从boost库中单独提出来吗
2015-06-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人