1. Description 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 repre ...
分类:
其他好文 时间:
2016-04-03 10:11:41
阅读次数:
127
If you need to maintain a list of objects that are sorted and unique & if you need to be able to quickly insert and retrieve objects to and from this ...
分类:
其他好文 时间:
2016-04-03 06:59:35
阅读次数:
176
Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are a total of 5 unique BST' ...
分类:
其他好文 时间:
2016-04-02 16:09:57
阅读次数:
144
【题目】 Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / ...
分类:
其他好文 时间:
2016-04-01 20:34:19
阅读次数:
131
题目链接:https://leetcode.com/problems/symmetric-tree/
题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
...
分类:
其他好文 时间:
2016-04-01 18:28:40
阅读次数:
176