首页 > 其他
2015-基础(3)
C - C Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.  The warehouse has N rooms. The i-t...
分类:其他   时间:2015-02-04 14:46:35    收藏:0  评论:0  赞:0  阅读:304
2015-基础(4)
D - D Description These days, I am thinking about a question, how can I get a problem as easy as A+B? It is fairly difficulty to do such a thing. Of course, I got it after many waking ni...
分类:其他   时间:2015-02-04 14:46:15    收藏:0  评论:0  赞:0  阅读:250
2015-基础(5)
E - E Description Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him to survive, he decided to crea...
分类:其他   时间:2015-02-04 14:46:05    收藏:0  评论:0  赞:0  阅读:300
2015-基础(6)
G - G Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then output them.    ...
分类:其他   时间:2015-02-04 14:45:55    收藏:0  评论:0  赞:0  阅读:308
2015-基础(7)
I - I Description “Point, point, life of student!”  This is a ballad(歌谣)well known in colleges, and you must care about your score in this exam too. How many points can you get? Now, I ...
分类:其他   时间:2015-02-04 14:45:45    收藏:0  评论:0  赞:0  阅读:277
2015-数学(1)
Description 七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!"  人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下:  数字N的因子就是所有比N小又能被N整除的所有正整数,如12的因子有1,2,3,4,6.  你想知道你的另一半吗?    ...
分类:其他   时间:2015-02-04 14:45:35    收藏:0  评论:0  赞:0  阅读:276
Dynamic Programming 动态规划
Dynamic Programming 问题一:Fibonacci 数列求解问题。 一般的会采用递归实现。 /**************************************************** code file : Fibonacci.c code date : 2014.11.25 e-mail : jasonleaster@gmail.com code...
分类:其他   时间:2015-02-04 14:44:45    收藏:0  评论:0  赞:0  阅读:350
devstack安装出现rabbitmq-server安装错误
devstack 安装openstack出现rabbitmq-server安装错误,因为修改过hostsname后,重新安装才导致这个错误,下面是解决办法. 问题: Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err   rabbitmq-server.   invoke-rc.d: in...
分类:其他   时间:2015-02-04 14:43:55    收藏:0  评论:0  赞:0  阅读:1225
3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a triplet (a,b,c...
分类:其他   时间:2015-02-04 14:43:45    收藏:0  评论:0  赞:0  阅读:295
Ceph文件系统入门学习
开源技术专家章宇(@一棹凌烟)在C3沙龙分享过Ceph之后,最近来了劲头,一口气写了一系列《Ceph浅析》的博文,共8篇: “Ceph浅析”系列之一——前言 “Ceph浅析”系列之二——Ceph概况 “Ceph浅析”系列之三——Ceph的设计思想 “Ceph浅析”系列之四——Ceph的结构 “Ceph浅析”系列之五——Ceph的工作原理及流程 “Ceph浅析”系列之六——Cep...
分类:其他   时间:2015-02-04 14:43:05    收藏:0  评论:0  赞:0  阅读:365
leetcode——Next Permutation
题目: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest...
分类:其他   时间:2015-02-04 14:42:45    收藏:0  评论:0  赞:0  阅读:266
应用程序无法启动的解决办法!
1、应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件日志,或使用命令行 sxstrace.exe 工具。 出现该问题的原因是:      工程项目默认值:MFC的使用[在共享DLL中使用MFC];      A lib库: 设置的是 [使用标准Windows库];      B lib库: 设置的是[使用标准Windows库];      C lib库: ...
分类:其他   时间:2015-02-04 14:42:37    收藏:0  评论:0  赞:0  阅读:359
leetcode——Gas Station
题目: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from statio...
分类:其他   时间:2015-02-04 14:42:09    收藏:0  评论:0  赞:0  阅读:239
Docker实践2:用Docker搭建hg-server
如果有人已经将hg server的image做好了,那么我还要自己作吗?答案是拿来用吧。一、安装用hg为关键词搜索,得出以下结果:$ docker search hg NAME DESCRIPTION STARS OFFICIAL AUTOMATED hgo...
分类:其他   时间:2015-02-04 14:41:55    收藏:0  评论:0  赞:0  阅读:328
OpenFire源码学习之二十八:与其他系统的用户整合
与三方系统整合。Openfire提供了一套不错的解决方案。其实openfire的用户插件也做http方式的用户数据同步。关于openfire的用户整合,本人也不是十分赞同(这仅仅只是在我们自己的项目下)。我们的办法是做数据共享池。这个解决方案可以用到redis。 下面是opnfire的 解决方案 openfire可以非常方便的整合现有系统用户。 进入openfire管理控制台-服务器-服务管理...
分类:其他   时间:2015-02-04 14:41:25    收藏:0  评论:0  赞:0  阅读:713
Gas Station
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to ...
分类:其他   时间:2015-02-04 14:41:05    收藏:0  评论:0  赞:0  阅读:355
stl reverse 函数
功能:翻转字符串 ,翻转数组, 用于STL的翻转。 头文件: 例子: #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; char s[100];...
分类:其他   时间:2015-02-04 14:40:54    收藏:0  评论:0  赞:0  阅读:272
OpenFire源码学习之二十九:集群
集群 Openfire的给集群提供了多种方案。一种是基于Hazelcast插件,还有基于Oracle的coherence插件。 Linux集群配置 一、修改配置文件 /etc/hosts文件 openfire1 192.168.2.104 openfire2192.168.2.240  每台主机都需要配置 二、添加jar包 将coherence.jar、coherence-wor...
分类:其他   时间:2015-02-04 14:39:47    收藏:0  评论:0  赞:0  阅读:1098
最近看的书籍
目前,毕业可能要做一些andriod的开发,看的一些java书籍列表如下: 基础篇: Java语言程序设计Java编程思想 进阶: think in c++think in java深入理解java虚拟机 andriod的基础入门 andriod疯狂讲义 ps:若读者有好的书籍推荐,欢迎指教!...
分类:其他   时间:2015-02-04 14:39:27    收藏:0  评论:0  赞:0  阅读:276
【二叉树】求二叉树中节点的最大距离
题目:《编程之美》P241 提示:利用动态规划的思想,保存每次循环所计算出来的数据,可以避免重复计算 class treenode { public: int data; shared_ptr left,right; treenode(int d,const shared_ptr &l,const shared_ptr &r):data(d),left(l),right(r){}...
分类:其他   时间:2015-02-04 14:39:16    收藏:0  评论:0  赞:0  阅读:347
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!