码迷,mamicode.com
首页 >  
搜索关键字:note    ( 7358个结果
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-08-17 16:54:02    阅读次数:160
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.思路:利用后序遍历提供的根节...
分类:其他好文   时间:2014-08-17 16:52:12    阅读次数:228
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 class Solut...
分类:其他好文   时间:2014-08-17 01:03:21    阅读次数:199
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-08-16 23:48:31    阅读次数:333
树莓派学习笔记 1 -- 硬件的需求以及raspbian系统的安装
树莓派(Raspberry Pi) -- 基于Linux系统的大小只有信用卡大小的卡片式机器。 按照发明者的想法,他是想降低学习程序开发的成本而设计制作的这款产品。你可以理解为一个简陋版的电脑。树莓派这是一个卡片,你需要买各种外设,然后自己DIY任何你想的,你可以的作品。 Note:我使用的是...
分类:Web程序   时间:2014-08-16 16:16:30    阅读次数:1130
Programming In Scala Reading Note 8
AJAXXMLHttpRequest,是AJAX得以实现的基础他是一个对象,有几个需要记住的方法和属性:XMLHttpRequest方法open(method, url, async, username, password)method: post或geturl: 请求地址async: boolea...
分类:其他好文   时间:2014-08-16 16:15:30    阅读次数:208
LeetCode——Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2]. Note: Recursive solutio...
分类:其他好文   时间:2014-08-16 11:15:00    阅读次数:227
Linux中如何清空文件
经常会碰到查看日志文件,如果日志文件太大,用less,more,vi,tail命令查看起来会比较麻烦,也挺难定位到具体错误,而定期备份,定期清空应该是好主意,当然清空之前必须备份。要是日志文件本身不存在,用mkdir可以建个空文件,但系统程序已经在调用,那么要如何清空其中文件,其实挺简单: 方法一: # cat /dev/null > error.log 方法二: # echo "" | tee error.log 方法三: # truncate -s error.log NOTE: # echo /de...
分类:系统相关   时间:2014-08-16 11:14:00    阅读次数:341
LeetCode——Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements fro...
分类:其他好文   时间:2014-08-16 11:12:43    阅读次数:317
Subsets II
Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descending order....
分类:其他好文   时间:2014-08-15 21:08:29    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!