上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each va 阅读全文
posted @ 2018-01-17 18:26 gaoren 阅读(169) 评论(0) 推荐(0) 编辑
摘要: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文
posted @ 2018-01-15 16:35 gaoren 阅读(138) 评论(0) 推荐(0) 编辑
摘要: GDB调试qemu-kvm 前面几篇博文都是记录一些kvm相关包编译安装及使用,但都没深入去代码看看。看源码在配合上相关原理才能更好的理解kvm。但qemu-kvm的代码量很多,对我来讲直接看源码收获甚少,所以找了个调试工具——GDB来配合阅读代码。接下来记录下GDB的使用。 1、qemu-kvm添 阅读全文
posted @ 2017-12-21 15:15 gaoren 阅读(3132) 评论(0) 推荐(0) 编辑
摘要: 基于python调用libvirt API 1、程序代码 2、运行,结果如图1所示 图 1 3、中间过程错误说明 执行运行命令时出现如图2所示的错误 图 2 本文实验环境是利用编译安装的qemu和libvirt,没有安装libvirt-python的依赖包,所以需要python官网上下载相应的包,下 阅读全文
posted @ 2017-12-19 10:16 gaoren 阅读(7637) 评论(0) 推荐(0) 编辑
摘要: libvirt API简单小程序 1、程序代码如下 2、程序编译并运行,运行结果如图1所示 -lvirt指定程序链接时的共享库,在本文实验环境中依赖的共享库文件路径为/usr/lib/libvirt.so 图 1 将运行结果和virsh的运行的结果相比较,virsh的结果如图2所示 图 2 阅读全文
posted @ 2017-12-18 20:01 gaoren 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: speedtest_cli的安装与使用 1、下载 图 1 2、授权 3、运行 图 2 阅读全文
posted @ 2017-12-18 15:20 gaoren 阅读(7007) 评论(0) 推荐(0) 编辑
摘要: qemu与libvirt编译与安装 一 、qemu编译前准备 以下链接为的本次编译环境为前提继续进行。 1、安装必要依赖包 二、下载qemu源码 1、qemu可以在官网链接中直接下载最新版本 2、从git上下载 两种方式都可以下载qemu源码。本文利用git来下载。 三、编译安装qemu 1、qem 阅读全文
posted @ 2017-12-18 13:55 gaoren 阅读(5757) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M <= m * p where M and m are 阅读全文
posted @ 2017-12-16 18:36 gaoren 阅读(389) 评论(0) 推荐(0) 编辑
摘要: An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the 阅读全文
posted @ 2017-12-15 16:09 gaoren 阅读(127) 评论(0) 推荐(0) 编辑
摘要: A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find t 阅读全文
posted @ 2017-12-07 21:18 gaoren 阅读(201) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页