nova-scheduler start/running, process 4820root@ruiy-controller-a:/var/log/nova# nova service-list+ + + + + + + + +| Id | Binary | Host | Zone | Status
分类:
其他好文 时间:
2016-03-21 01:35:44
阅读次数:
142
Build Busybox as a static binary(no shared libs),如果选择上,则busybox将以静态形式进行编译,否则将以动态方式编译。此外,还需要对交叉编译环境进行配置,选择其中的Cross Compiler Perfix,输入交叉编译器的前缀,我们的嵌入式平台上
分类:
Web程序 时间:
2016-03-21 00:00:11
阅读次数:
473
在第二章里,作者提出了三个问题,然后慢慢引出对应的算法实现。 1 Binary search 二分查找 Given a sequential file that contain at most 4x109 32-bit integers in random order, find a 32-bit
分类:
编程语言 时间:
2016-03-20 07:05:41
阅读次数:
232
最近复习数据结构,又回去再看塞神的课件,看到PriorityQueue的实现。自己也根据塞神的代码写一写。 下面使用Binary Heap实现了一个简单的 Max-oriented PriorityQueue。 http://algs4.cs.princeton.edu/24pq/
push为前序遍历序列,pop为中序遍历序列。将题目转化为已知前序、中序,求后序。 前序GLR 中序LGR 前序第一个为G,在中序中找到G,左边为左子树L,右边为右子树R。 将左右子树看成新的树,同理。 An inorder binary tree traversal can be implemen
分类:
其他好文 时间:
2016-03-20 01:58:54
阅读次数:
429
翻译给定一个二叉树,返回其后续遍历的节点的值。例如:
给定二叉树为 {1, #, 2, 3}
1
2
/
3
返回 [3, 2, 1]备注:用递归是微不足道的,你可以用迭代来完成它吗?原文Given a binary tree, return the postorder traversal of its nodes' values.For example:...
分类:
其他好文 时间:
2016-03-19 23:09:11
阅读次数:
463
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r
分类:
编程语言 时间:
2016-03-19 23:00:17
阅读次数:
275
翻译给定一个二叉树,返回其前序遍历的节点的值。例如:
给定二叉树为 {1,#, 2, 3}
1
2
/
3
返回 [1, 2, 3]备注:用递归是微不足道的,你可以用迭代来完成它吗?原文Given a binary tree, return the preorder traversal of its nodes' values.For example:
Gi...
分类:
其他好文 时间:
2016-03-19 18:10:54
阅读次数:
207
翻译给定一个二叉树,返回其中序遍历的节点的值。例如:
给定二叉树为 {1, #, 2, 3}
1
2
/
3
返回 [1, 3, 2]备注:用递归是微不足道的,你可以用迭代来完成它吗?原文Given a binary tree, return the inorder traversal of its nodes' values.For example:
Gi...
分类:
其他好文 时间:
2016-03-19 16:30:08
阅读次数:
198
题目信息1086. Tree Traversals Again (25)时间限制200 ms
内存限制65536 kB
代码长度限制16000 B
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-...
分类:
其他好文 时间:
2016-03-19 06:18:13
阅读次数:
183