Fork me on GitHub

10 2015 档案
Binary Tree Postorder Traversal--leetcode难题讲解系列
摘要:https://leetcode.com/problems/binary-tree-postorder-traversal/Given a binary tree, return the postorder traversal of its nodes' values.For example:Giv... 阅读全文
posted @ 2015-10-21 15:25 huashiyiqike 阅读(873) 评论(0) 推荐(0)
Populating Next Right Pointers in Each Node II--leetcode难题讲解系列
摘要:Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe... 阅读全文
posted @ 2015-10-21 11:16 huashiyiqike 阅读(364) 评论(0) 推荐(0)
Recover Binary Search Tree--leetcode难题讲解
摘要:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ... 阅读全文
posted @ 2015-10-20 21:33 huashiyiqike 阅读(290) 评论(0) 推荐(0)
bash + script
摘要:shell"" 保留$,`,\, 换行含义,‘’保留字面值$(), ``用于命令替换算术扩展如 $[1+1]for循环:for Host in host1, host2, host3; do echo $Host; donefor Host in host{1,2,3}; do echo $Host... 阅读全文
posted @ 2015-10-11 17:41 huashiyiqike 阅读(426) 评论(0) 推荐(0)