上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 46 下一页
摘要: class Solution {private: int getDirection(int A[], int idx, int target, bool isDefaultBack) { int r = A[idx] - target; if (r == 0) { ... 阅读全文
posted @ 2014-06-12 19:23 卖程序的小歪 阅读(216) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: vector grayCode(int n) { vector res; res.push_back(0); long pow2 = 1; for (int i=1; i grayCode... 阅读全文
posted @ 2014-06-12 14:42 卖程序的小歪 阅读(138) 评论(0) 推荐(0) 编辑
摘要: class Solution {private: const static char* pattern[]; const static char* roman_digit[];public: string intToRoman(int num) { if (num ... 阅读全文
posted @ 2014-06-12 14:01 卖程序的小歪 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Neutron网络服务(网络节点)目录[隐藏]1参考2前置工作2.1调整内核参数3安装4配置4.1keystone对接4.2rabbitmq对接4.3metadata服务对接4.4ML2插件配置4.5L3-agent4.6DHCP-agent5接口配置6服务更新7服务验证8附加配置8.1共享上网8.... 阅读全文
posted @ 2014-06-12 11:10 卖程序的小歪 阅读(1815) 评论(3) 推荐(0) 编辑
摘要: Nova计算服务(计算节点)参考本页内容依照官方安装文档进行,具体参见Configure a compute node(nova service)前置工作数据库由于我们在Nova(计算管理)部署配置中使用了mysql数据库,所以移除本地sqlite数据库sudo rm /var/lib/nova/n... 阅读全文
posted @ 2014-06-12 11:06 卖程序的小歪 阅读(931) 评论(0) 推荐(0) 编辑
摘要: Mysql部署配置安装安装mysql,mysql的python绑定apt-get install mysql-server安装过程中会要求设定mysql的root账户的密码,这里假定设为mysql_root配置mysql的配置文件在/etc/mysql/my.cnf设定绑定地址打开/etc/mys... 阅读全文
posted @ 2014-06-12 10:56 卖程序的小歪 阅读(924) 评论(0) 推荐(0) 编辑
摘要: OpenStack应用:节点软硬件环境配置节点硬件与IP分配实验室网关10.14.39.1各个节点节点名称硬件(Linux硬盘分区,RAM,CPU)ip地址(接口)作用与运行的服务位置controller286GB, 2GB, E750010.14.39.202(eth0)neutron、nova、... 阅读全文
posted @ 2014-06-12 10:49 卖程序的小歪 阅读(532) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: char *strStr(char *haystack, char *needle) { if (haystack == NULL || needle == NULL) return NULL; int wpos[25... 阅读全文
posted @ 2014-06-06 20:06 卖程序的小歪 阅读(174) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: ListNode *swapPairs(ListNode *head) { ListNode *a = NULL; ListNode *b = NULL; ListNode *tail = NULL; ... 阅读全文
posted @ 2014-06-03 21:48 卖程序的小歪 阅读(145) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: void merge(int A[], int m, int B[], int n) { int mi = m + n - 1; int ai = m - 1; int bi = n - 1; ... 阅读全文
posted @ 2014-05-29 19:55 卖程序的小歪 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 46 下一页