摘要:
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
摘要:
1.In the main() function, after ModifyString(text) is called, what’s the value of ‘text’? 这要从仔细读源码开始了。 FindSubString的功能,上面已经解释很清楚了,寻找一个先连续递增,在连续递减的字符串 阅读全文
摘要:
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文