码迷,mamicode.com
首页 >  
搜索关键字:binary index tree    ( 56466个结果)
java实现二叉树遍历
package com.tree.demo;public class BinaryTree { int data; // 根节点数据 BinaryTree left; // 左子树BinaryTree right; // 右子树 public BinaryTree(int data) // 实例化....
分类:编程语言   时间:2014-07-19 19:06:23    阅读次数:196
OpenSource.SerializationLibrary
1. Cap'n Protoprotocol buffer的主要作者之一创建的新项目。其主页描述Cap'n Proto的性能比PB快很多。http://kentonv.github.io/capnproto/index.html2. FlatBufferFlatBuffers is a serial...
分类:其他好文   时间:2014-07-19 00:28:17    阅读次数:291
【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-19 00:24:36    阅读次数:170
CodeIgnitor 创建admin和其他目录,前后端分离,很巧妙的方式,网上查找其他的都不是使用这种方式实现的。
在index.php的第97和98行的注释, // The directory name, relative to the "controllers" folder. Leave blank // if your controller is not in a sub-folder within t....
分类:其他好文   时间:2014-07-19 00:18:35    阅读次数:212
【leetcode刷题笔记】Sum Root to Leaf Numbers
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:其他好文   时间:2014-07-18 20:09:38    阅读次数:433
LeetCode "Search Insert Position"
A simple 1D searching problem. Binary search of course.But.. STL has already done it for you:class Solution {public: int searchInsert(int A[], int ...
分类:其他好文   时间:2014-07-18 18:35:41    阅读次数:205
Collection类学习笔记
binarySearch原理: public static index halfSearch(List list, String key) { int max,min,mid; max = list.size()-1; min = 0; while(min>1; String str = list....
分类:其他好文   时间:2014-07-18 18:32:20    阅读次数:238
【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.Fo...
分类:其他好文   时间:2014-07-18 18:28:44    阅读次数:231
递归实现二进制转十进制
题目:应用递归,将输入的二进制数转换为十进制。#include #include void binary_to_decimal(char *s, long dec){ if( *s == '\0' ) printf("Decimal: %ld\n",dec); else ...
分类:其他好文   时间:2014-07-18 18:23:50    阅读次数:217
LeetCode "Unique Binary Search Trees"
Another recursion-style problem.1. Each count of sub-solution with a certain root should contribute to final count2. With a certain root, the num of l...
分类:其他好文   时间:2014-07-18 18:18:01    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!