码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
[LeetCode][Java] Binary Tree Zigzag Level Order Traversal
题目: Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: Give...
分类:编程语言   时间:2015-07-20 23:39:45    阅读次数:184
Leetcode -- Day13
Question 1Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".Firslty I wirte a very dire...
分类:其他好文   时间:2015-07-20 23:10:01    阅读次数:155
[leedcode 103] Binary Tree Zigzag Level Order Traversal
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:其他好文   时间:2015-07-20 23:09:54    阅读次数:123
[leedcode 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 le...
分类:其他好文   时间:2015-07-20 23:00:05    阅读次数:85
[leedcode 102] Binary Tree Level Order Traversal
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:其他好文   时间:2015-07-20 22:54:51    阅读次数:89
PostgreSQL+PostGIS 的使用
一、PostGIS中的几何类型PostGIS支持所有OGC规范的“Simple Features”类型,同时在此基础上扩展了对3DZ、3DM、4D坐标的支持。1. OGC的WKB和WKT格式OGC定义了两种描述几何对象的格式,分别是WKB(Well-Known Binary)和WKT(Well-Kn...
分类:数据库   时间:2015-07-20 21:32:41    阅读次数:205
遍历二叉树
DescriptionLittle Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital l...
分类:其他好文   时间:2015-07-20 21:28:40    阅读次数:183
[leedcode 101] 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: 1 / \ ...
分类:其他好文   时间:2015-07-20 18:38:42    阅读次数:93
好用的方法
#include upper_bound(a,a+n,x);查找到x最后一个并返回下一个地址。lower_bound(a,a+n,x);查找到第一个x并返回他的地址。binary_bound(a,a+n,x);查找x,返回Bool。sort(a,a+n,compare)/(v.begin(),v.e...
分类:其他好文   时间:2015-07-20 16:17:32    阅读次数:128
[LeetCode][Java]Unique Binary Search Trees II
题目: 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. ...
分类:编程语言   时间:2015-07-20 14:36:18    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!