码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Gray Code LeetCode 89
题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total n...
分类:其他好文   时间:2015-09-08 21:54:06    阅读次数:164
LeetCode#226 Invert Binary Tree
Invert Binary Tree翻转二叉树下面我们分别用java和python实现两种解决方案(两种解决方案可以完全用java或python实现:方案一:(java)/*** Definition for a binary tree node.* public class TreeNode {*...
分类:其他好文   时间:2015-09-08 21:49:05    阅读次数:139
LeetCode#235 Lowest Common Ancestor of a Binary Search Tree
#235Lowest Common Ancestor of a Binary Search Tree寻找二叉搜索树两个节点的最小共同祖先java代码:/*** Definition for a binary tree node.* public class TreeNode {* int val.....
分类:其他好文   时间:2015-09-08 21:41:18    阅读次数:122
Linux入门
参考资料:http://www.92csz.com/study/linux/【Linux系统目录结构】 登录系统后,在当前命令窗口下输入ls /你会看到 以下是对这些目录的解释: /bin bin是Binary的缩写。这个目录存放着最经常使用的命令。 /boot这里存放的是启动Linux时使...
分类:系统相关   时间:2015-09-08 19:47:23    阅读次数:234
SQL SERVER中字段类型与C#数据类型的对应关系
数据库 C#程序 int int32 text string bigint int64 binary System.Byte[] bit Boolean char string datetime System.DateTime decimal System.Decimal float System.Double image System.Byte[] money System.D...
分类:数据库   时间:2015-09-08 18:40:12    阅读次数:177
【LeetCode】110. Balanced Binary Tree
题目:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the de...
分类:其他好文   时间:2015-09-08 15:21:47    阅读次数:131
[LintCode] Invert Binary Tree 翻转二叉树
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.ExampleGiven 4 points:(1,2),(3,6),(0,0),(1,3).The max...
分类:其他好文   时间:2015-09-08 06:57:23    阅读次数:171
[LeetCode] First Bad Version
Just use binary search to find the first bad version.The code is as follows. 1 // Forward declaration of isBadVersion API. 2 bool isBadVersion(int ver...
分类:其他好文   时间:2015-09-07 22:30:00    阅读次数:212
(算法)格雷码
题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total num...
分类:编程语言   时间:2015-09-07 21:16:44    阅读次数:281
【LeetCode】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,...
分类:其他好文   时间:2015-09-06 21:29:22    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!