码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Leetcode: Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:其他好文   时间:2014-09-09 10:44:48    阅读次数:132
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.难度70,与Convert Sorted Array to Binary Sear...
分类:其他好文   时间:2014-09-08 06:26:16    阅读次数:263
LeetCode--Binary Tree Maximum Path Sum
递归,dfs这里返回值是一个pair,first表示两个子树的不经过当前root的最大pathsum;second表示两个子树的,以root->left和root->right为路径起始节点的路径的最大值 1 /** 2 * Definition for binary tree 3 * stru.....
分类:其他好文   时间:2014-09-07 19:43:15    阅读次数:195
leetcode 之 Flatten Binary Tree to Linked List
剑指offer二叉树变双链表...
分类:其他好文   时间:2014-09-07 18:36:35    阅读次数:218
Mongodb存储读取Word文档
由于MongoDB的文档结构为BJSON格式(BJSON全称:Binary JSON),而BJSON格式本身就支持保存二进制格式的数据,因此可以把文件的二进制格式的数据直接保存到MongoDB的文档结构中。取的时候再以二进制格式取,这样文档就能实现无损保存。...
分类:数据库   时间:2014-09-07 14:49:05    阅读次数:359
Binary Tree Postorder Traversal <leetcode>
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:其他好文   时间:2014-09-07 14:44:25    阅读次数:208
PAT 1086 Tree Traversals Again
PAT 1086 Tree Traversals Again题目:An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that wh...
分类:其他好文   时间:2014-09-07 11:02:25    阅读次数:183
Leetcode: Unique Binary Search Trees II
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all ...
分类:其他好文   时间:2014-09-07 07:38:14    阅读次数:315
stale element reference: element is not attached to the page document
//should set firefox path //FirefoxBinary binary=new FirefoxBinary(new File("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe")); ...
分类:其他好文   时间:2014-09-07 02:12:24    阅读次数:220
LeetCode--Binary Tree Level Order Traversal
用两个队列实现,交叉使用,达到判断层的目的 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right...
分类:其他好文   时间:2014-09-06 23:47:44    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!