上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 39 下一页
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 class Base{ 8 public: 9 int data; 10 Base(int y):data(y){} 11 }; 12 Base *pt(int x){ 13... 阅读全文
posted @ 2017-07-29 10:19 PKICA 阅读(5582) 评论(2) 推荐(0) 编辑
摘要: 注意:基本数据类型的位数与系统有关,比如64-bit系统的int型为4B C/C++中以一定区域内的位(bit)为单位来表示的数据成为位域,位域必须指明具体的数目。 位域的作用主要是节省内存资源,使数据结构更紧凑。 1. 一个位域必须存储在同一个字节中,不能跨两个字节,故位域的长度不能大于一个字节的 阅读全文
posted @ 2017-07-26 15:32 PKICA 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 线程池包括:n个执行任务的线程,一个任务队列,一个管理线程 1). 预先启动一些线程,线程负责执行任务队列中的任务,当队列空时,线程挂起。 2). 调用的时候,直接往任务队列添加任务,并发信号通知线程队列非空。 3). 管理线程负责监控任务队列和系统中的线程状态,当任务队列为空,线程数目多且很多处于 阅读全文
posted @ 2017-07-19 10:50 PKICA 阅读(153) 评论(0) 推荐(0) 编辑
摘要: splint-3.1.2.src 阅读全文
posted @ 2017-07-19 09:35 PKICA 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho 阅读全文
posted @ 2017-07-18 21:42 PKICA 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 有一个梵塔,塔内有三个座A、B、C,A座上有诺干个盘子,盘子大小不等,大的在下,小的在上(如图)。 把这些个盘子从A座移到C座,中间可以借用B座但每次只能允许移动一个盘子,并且在移动过程中,3个座上的盘 子始终保持大盘在下,小盘在上。 描述简化:把A柱上的n个盘子移动到C柱,其中可以借用 阅读全文
posted @ 2017-06-25 15:45 PKICA 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 特别注意: 以下仅用于学习,不建议进行以下操作,以免出现包依赖关系问题,影响系统稳定性. askUbuntu github answer 附:卸载ppa的方法 $ sudo add-apt-repository --remove ppa:someppa/ppa 注意,上述命令不会同时删除任何已经安装 阅读全文
posted @ 2017-05-23 07:47 PKICA 阅读(4672) 评论(0) 推荐(1) 编辑
摘要: 78. Subsets 3ms 迭代,增量构造.没看懂 http://www.cnblogs.com/TenosDoIt/p/3451902.html 3ms 位向量法 6ms 6ms 解题思路 同类回溯算法问题归纳: by issac3 This structure might apply to 阅读全文
posted @ 2017-05-17 08:47 PKICA 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 24. Swap Nodes in Pairs Total Accepted: 156137 Total Submissions: 413794 Difficulty: Medium 3m 37.45% 25. Reverse Nodes in k-Group Total Accepted: 890 阅读全文
posted @ 2017-04-25 20:41 PKICA 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 61. Rotate List(M) Total Accepted: 102574 Total Submissions: 423333 Difficulty: Medium 16ms 19.35% 19. Remove Nth Node From End of List Total Accepted 阅读全文
posted @ 2017-04-24 21:26 PKICA 阅读(219) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 39 下一页