码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Leetcode 100 Same Tree python
题目: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identic ...
分类:编程语言   时间:2016-04-16 15:16:17    阅读次数:195
MongoDB入门教程三[数据类型]
MongoDB的文档使用BSON(Binary JSON)来组织数据,BSON类似于JSON,JSON只是一种简单的表示数据的方式,只包含了6种数据类型(null、布尔、数字、字符串、数组及对象),不能完全满足复杂业务的需要,因此,BSON还提供日期、32位数字、64位数字等类型。以下对mongoD ...
分类:数据库   时间:2016-04-16 07:06:04    阅读次数:641
Leetcode 226 Invert Binary Tree python
题目: Invert a binary tree. 翻转二叉树。 递归,每次对节点的左右节点调用invertTree函数,直到叶节点。 python中也没有swap函数,当然你可以写一个,不过python中可以通过:a, b = b, a交换两个变量的值 ...
分类:编程语言   时间:2016-04-16 00:43:42    阅读次数:174
LeetCode——Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 原题链接:https://oj.leetcode.com/problems/co ...
分类:其他好文   时间:2016-04-15 21:41:22    阅读次数:174
190. Reverse Bits Java Solutin
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), retur ...
分类:编程语言   时间:2016-04-15 21:35:57    阅读次数:196
112. Path Sum Java Solutin
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F ...
分类:编程语言   时间:2016-04-15 21:30:49    阅读次数:215
LintCode Count 1 in Binary
知识点 1. 整数的二进制表示法 2. 十进制和二进制的转换 http://baike.baidu.com/view/1426817.htm 3. 负整数的表示(原码,补码,反码) http://www.cnblogs.com/zhangziqiu/archive/2011/03/30/Comput ...
分类:其他好文   时间:2016-04-15 15:33:03    阅读次数:155
LeetCode 338. Counting Bits
题目: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation a ...
分类:其他好文   时间:2016-04-14 20:57:58    阅读次数:154
logstash问题:Could not find any executable java binary.
exportJAVACMD=`whichjava`
分类:编程语言   时间:2016-04-14 19:34:59    阅读次数:857
Leetcode 199 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 exa ...
分类:其他好文   时间:2016-04-14 16:03:45    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!