码迷,mamicode.com
首页 >  
搜索关键字:d. gukiz and binary    ( 11754个结果
Binary Tree Level Order Traversal java实现
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...
分类:编程语言   时间:2014-07-12 13:13:24    阅读次数:195
erlang自定义数据类型
Erlang系统自带的基础数据类型有:atom、tuple、list、binary、pid、float、number、port、reference、record。用户可以通过通过命令type来自定义数据类型,实现方法:-type device() :: atom() | pid().-type pr...
分类:其他好文   时间:2014-07-11 23:26:47    阅读次数:507
protobuf,json,xml,binary,Thrift之间的对比
http://blog.csdn.net/angus_17/article/details/8493448binary 二进制,数据流,也可以转化成 1100011类似的protobuf 是google的,二进制的数据传输协议,性能比 xml 和 json 号。 但 可读性 差Thrift 是 Fa...
分类:Web程序   时间:2014-07-11 21:30:15    阅读次数:295
leetcode题解:Construct Binary Tree from Preorder and Inorder Traversal (根据前序和中序遍历构造二叉树)
题目:Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.说明: 1)二叉树可.....
分类:其他好文   时间:2014-07-11 21:07:27    阅读次数:273
leetcode题解:Construct Binary Tree from Inorder and Postorder Traversal(根据中序和后序遍历构造二叉树)
题目:Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.说明: 1)实现与.....
分类:其他好文   时间:2014-07-11 20:40:38    阅读次数:198
Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100"class Solution {public: string addBinary(stri...
分类:其他好文   时间:2014-07-11 20:05:47    阅读次数:224
JAVA WEB实现前端加密后台解密
最近在研究登陆密码的加密,下边上具体代码,只是给出核心代码,具体的代码视业务而定吧,给位有什么问题或者意见请留言。加密方法用的是AES-128-CBC,BASE64用的是org.apache.commons.codec.binary.Base64JS代码:var password = "123456...
分类:编程语言   时间:2014-07-11 19:30:48    阅读次数:606
Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.思路:递归。主要是注意调用时起...
分类:其他好文   时间:2014-07-10 14:40:07    阅读次数:196
二叉排序树
二叉排序树(Binary Sort Tree):或者是一颗空树,或者是具有以下性质的树:(1)若它的左子树不空,则左子树上所以结点的值均小于它的根节点的值;(2)若它的右子树不空,则右子树上的所以结点的值均大于它的根节点的值;(3)它的左、右子树也分别是二叉排序树。 二叉排序树的基本操作均可以在O(h)时间内完成(算法导论p165)。 相关操作代码如下: int InsertBST(BiTr...
分类:其他好文   时间:2014-07-09 13:12:09    阅读次数:160
【LeetCode】Path Sum
题目 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. For example: Given the below binary tree ...
分类:其他好文   时间:2014-07-09 10:32:42    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!