https://leetcode.com/problems/maximum-depth-of-binary-tree/Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along ...
分类:
其他好文 时间:
2015-12-10 23:47:24
阅读次数:
159
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'...
分类:
其他好文 时间:
2015-12-10 21:21:37
阅读次数:
118
/*** Definition for a binary tree node.* struct TreeNode {* int val;* TreeNode *left;* TreeNode *right;* TreeNode(int x) : val(x), left(NULL), right(N...
分类:
其他好文 时间:
2015-12-10 17:00:21
阅读次数:
139
For example, the 32-bit integer ’11' has binary representation00000000000000000000000000001011, so the function should return 3.class Solution {public...
分类:
其他好文 时间:
2015-12-10 16:56:00
阅读次数:
90
/*** Definition for a binary tree node.* struct TreeNode {* int val;* TreeNode *left;* TreeNode *right;* TreeNode(int x) : val(x), left(NULL), right(N...
分类:
其他好文 时间:
2015-12-10 16:47:04
阅读次数:
131
_______6______ / \ ___2__ ___8__ / \ / \ 0 _4 7 9 / \ 3 ...
分类:
其他好文 时间:
2015-12-10 16:45:33
阅读次数:
126
import cv2img = cv2.imread( 'E:\A.jpeg' )cv2.imshow( 'img', img )gray = cv2.cvtColor( img, cv2.COLOR_BGR2GRAY )ret, binary = cv2.threshold( gray, 127,...
分类:
其他好文 时间:
2015-12-09 21:39:52
阅读次数:
1051
/*** Definition for a binary tree node.* struct TreeNode {* int val;* TreeNode *left;* TreeNode *right;* TreeNode(int x) : val(x), left(NULL), right(N...
分类:
其他好文 时间:
2015-12-09 17:21:02
阅读次数:
152
Error Code: 1418This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want ...
分类:
其他好文 时间:
2015-12-09 17:16:43
阅读次数:
119
nvert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1/*** Definition for a binary tree node.*...
分类:
其他好文 时间:
2015-12-09 17:15:28
阅读次数:
169