码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
菜鸟的mongoDB学习---(三)MongoDB 的增、删、改、查(insert、remove、update、find)
插入 insert MongoDB中文档的数据结构和JSON基本一样。所有存储在集合中的数据都是BSON格式。BSON是一种类json的一种二进制形式的存储格式,简称Binary JSON。 首先我们先选择数据库 > use NewsDB switched to db NewsDB > 下面我们先定义一个文档 > document = ({"name":"jingdong","a...
分类:数据库   时间:2015-06-23 13:43:12    阅读次数:376
leetCode(24):Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the next smallest number in the BST. Note: next()...
分类:其他好文   时间:2015-06-23 13:38:01    阅读次数:103
poj 1147 Binary codes
Binary codesTime Limit:1000MSMemory Limit:65536KTotal Submissions:5647Accepted:2201DescriptionConsider a binary string (b1…bN) withNbinary digits. Giv...
分类:其他好文   时间:2015-06-23 09:51:26    阅读次数:89
【LeetCode 221】Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:其他好文   时间:2015-06-22 20:40:25    阅读次数:128
第十五周阅读程序1:二进制读写
问题及代码: 阅读并运行下面的两个程序,分别用记事本和二进制文件阅读器(请自行下载Binary Viewer等程序,或者用DOS中的Debug程序,并百度其用法)。查看其内容,并理解文件存储的原理。 (1) #include #include #include using namespace std; int main( ) { int a; ofstream ou...
分类:其他好文   时间:2015-06-22 17:57:49    阅读次数:170
LeetCode Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as00111001011110...
分类:其他好文   时间:2015-06-22 16:29:49    阅读次数:167
leetCode(22):Binary Tree Level Order Traversal II
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For example: Given binary tree {3,9,20,#,#,15,7}, ...
分类:其他好文   时间:2015-06-22 11:14:13    阅读次数:94
leetCode(21):Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example: Given the following binary tree, 1...
分类:其他好文   时间:2015-06-22 11:13:01    阅读次数:127
leetCode(23):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: Given binary ...
分类:其他好文   时间:2015-06-22 11:11:22    阅读次数:99
leetcode_89_Gray Code
Gray Code   欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 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 to...
分类:其他好文   时间:2015-06-22 11:11:12    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!