1、uuid guidUUID是一个由4个连字号(-)将32个字节长的字符串分隔后生成的字符串,总共36个字节长。比如:550e8400-e29b-41d4-a716-446655440000CHAR(36)或者BINARY(36) 保存在mysql用char(36) 默认保存为uuid格式 不是u...
分类:
数据库 时间:
2015-06-25 10:21:02
阅读次数:
158
Description:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as000000101001010000011110100111...
分类:
其他好文 时间:
2015-06-25 10:19:54
阅读次数:
151
redundant binary upload there already...
分类:
移动开发 时间:
2015-06-25 08:57:21
阅读次数:
171
Given n, generate all structurally unique BST’s (binary search trees) that store values 1…n.For example,
Given n = 3, your program should return all 5 unique BST’s shown below.
confused what “{1,#,...
分类:
其他好文 时间:
2015-06-25 01:25:38
阅读次数:
143
1. Question求二叉树的最大深度。Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node do...
分类:
其他好文 时间:
2015-06-25 00:00:30
阅读次数:
281
1. Question判断一个二叉树是否是对称的。Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree i...
分类:
其他好文 时间:
2015-06-24 23:54:40
阅读次数:
183
1. Question判断一个树是否是平衡二叉树(每个节点的两个子树深度差不超过1)Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is d...
分类:
其他好文 时间:
2015-06-24 23:54:40
阅读次数:
124
#104 Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node...
分类:
其他好文 时间:
2015-06-24 22:38:28
阅读次数:
164
1. Question给定两个二叉树,判断是不是相同(结构相同,值相同)的树。Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equa...
分类:
其他好文 时间:
2015-06-24 22:30:31
阅读次数:
148
QuestionGiven a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).For example:
Given binary tree {3,9,20,#,#,15,7}, 3
/ 9 20
/...
分类:
其他好文 时间:
2015-06-24 16:30:04
阅读次数:
97