码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
[Leetcode] 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...
分类:其他好文   时间:2014-10-16 06:33:22    阅读次数:238
leetcode:Maximum Depth of Binary Tree
# Definition for a binary tree node# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right ...
分类:其他好文   时间:2014-10-16 03:27:21    阅读次数:162
[leetcode] Unique Binary Search Trees @ Python
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:编程语言   时间:2014-10-16 00:30:31    阅读次数:210
[LeetCode]Binary Tree Preorder Traversal
【题目】 Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. Note: Recu...
分类:其他好文   时间:2014-10-15 23:57:11    阅读次数:229
BLOB
BLOB (binary large object),二进制大对象,是一个可以存储二进制文件的容器。在计算机中,BLOB常常是数据库中用来存储二进制文件的字段类型。BLOB是一个大文件,典型的BLOB是一张图片或一个声音文件,由于它们的尺寸,必须使用特殊的方式来处理(例如:上传、下载或者存放到一个数...
分类:其他好文   时间:2014-10-15 21:33:01    阅读次数:176
leetcode - Add Binary
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". class Solution { public: std::string addBinary(std::string a, std::string b)...
分类:其他好文   时间:2014-10-15 13:17:30    阅读次数:174
C# 6.0 (C# vNext) 新功能之:Numeric Literal Formats
Numeric Literal Formats = Binary literals and separators 个人解释为 「2 位元(2 进位)实字以及分隔符」 以前可以用的,主要就十进位以及十位进位如下: var num1 = 1234; // 10 进位 var num2 = 0x1234; // 16 进位 2 进位实字怎麽宣告? var num3 = 0b1010; //...
分类:Windows程序   时间:2014-10-15 10:11:40    阅读次数:229
Maximal Rectangle
[leetcode]Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area....
分类:其他好文   时间:2014-10-14 13:49:48    阅读次数:148
Unique Binary Search Trees II
这题首先要明白的是,二叉搜索树的左子树和右子树都自成二叉搜索树。这种递归定义决定了,如果我知道从1到n - 1时,所有的二叉搜索树结构,那结点数为n的二叉搜索树也可以得到了。转换关系是这样的:对于一个含有n个结点的二叉搜索树,首先树根可以从i = 1~n变化,然后左右子树的结点数目分别是i - 1和...
分类:其他好文   时间:2014-10-13 23:02:57    阅读次数:176
目录与文件的权限意义
权限对文件的重要性 文件是实际包含数据的地方,包括一般文本文件、数据库内容文件、二进制可执行文件(binary program)等。因此权限对于文件来说,它的意义如下: 1.r(read):可读取此文件的实际内容,如读取文本文件的文字内容等; 2.w(write):可以编辑、新增或者是修改...
分类:其他好文   时间:2014-10-13 20:09:27    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!