码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
Binary Tree Inorder Traversal leetcode java
题目:Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3...
分类:编程语言   时间:2014-07-30 09:54:33    阅读次数:195
Binary Tree Preorder Traversal leetcode java
题目:Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,...
分类:编程语言   时间:2014-07-30 09:49:43    阅读次数:177
jira 6.0.7 linux安装
安装jira的前提条件需要安装了java,mysql   1:下载jira Java代码   wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-6.0.7.tar.gz    2:在mysql数据库创建jira用户 Java代码   mysql>...
分类:系统相关   时间:2014-07-29 22:00:22    阅读次数:573
leetcode__Convert Sorted List to Binary Search Tree
Convert Sorted List to Binary Search TreeTotal Accepted:12283Total Submissions:45910My SubmissionsGiven a singly linked list where elements are sorted...
分类:其他好文   时间:2014-07-29 17:29:32    阅读次数:216
poj 2418 -- Hardwood Species
Hardwood SpeciesTime Limit: 10000MSMemory Limit: 65536KTotal Submissions: 18174Accepted: 7206DescriptionHardwoods are the botanical group of trees tha...
分类:其他好文   时间:2014-07-29 17:19:42    阅读次数:215
#Leet Code# Convert Sorted Array to Binary Search Tree
描述:递归代码: 1 class Solution: 2 # @param num, a list of integers 3 # @return a tree node 4 def sortedArrayToBST(self, num): 5 if len(...
分类:其他好文   时间:2014-07-29 16:41:11    阅读次数:210
[LeetCode]Binary Tree Level Order Traversal II
[LeetCode]Binary Tree Level Order Traversal II...
分类:其他好文   时间:2014-07-29 14:42:48    阅读次数:145
[LeetCode 题解]: Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:其他好文   时间:2014-07-29 14:07:58    阅读次数:163
二叉堆
实现:#ifndef BINARY_HEAP_H#define BINARY_HEAP_H#include "dsexceptions.h"#include using namespace std;// BinaryHeap class//// CONSTRUCTION: with an optio...
分类:其他好文   时间:2014-07-29 14:04:18    阅读次数:230
LeetCode "Divide Two Integers"
A very interesting numeric problem. It involves a lot tricks.Linear search (by +\-) is not feasible - too slow. So binary search is a good idea. Also ...
分类:其他好文   时间:2014-07-29 14:02:08    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!