上一页 1 ··· 7 8 9 10 11 12 13 14 下一页

2015年5月10日

【leetcode】【92】Reverse Linked List II

摘要: #includeusing namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution {public: ListNode* reve... 阅读全文

posted @ 2015-05-10 10:22 ruan875417 阅读(153) 评论(0) 推荐(0) 编辑

【leetcode】【单链表】【206】Reverse Linked List

摘要: #include#includeusing namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution {public: /... 阅读全文

posted @ 2015-05-10 09:34 ruan875417 阅读(118) 评论(0) 推荐(0) 编辑

2015年5月9日

【leetcode】【189】Rotate Array

摘要: #include#includeusing namespace std;class Solution {public: void rotate(vector& nums, int k) { //可参考STL源码剖析rotate()算法 k = k%nums.size(); vector::it... 阅读全文

posted @ 2015-05-09 14:10 ruan875417 阅读(130) 评论(0) 推荐(0) 编辑

【leetcode】【190】Reverse Bits

摘要: #include#includeusing namespace std;class Solution {public: uint32_t reverseBits(uint32_t n) { uint32_t sum = 0; uint32_t mask = 1; int count = 32;... 阅读全文

posted @ 2015-05-09 11:16 ruan875417 阅读(115) 评论(0) 推荐(0) 编辑

【leetcode】【191】Number of 1 Bits

摘要: #include#includeusing namespace std;class Solution {public: int hammingWeight(uint32_t n) { int count = 0; while (n){ n &= (n - 1);//见http://blog.... 阅读全文

posted @ 2015-05-09 10:50 ruan875417 阅读(121) 评论(0) 推荐(0) 编辑

找工作总结

摘要: 找工作的高峰期已经结束了,不出意外下周就要签三方了,这次找工作感觉对自己还是挺重要的,也算是自己人生中的一件大事,毕竟是自己的地一份工作,因此记录下来,算是自己学生生活的一次总结,也希望给师弟师妹们一点启发。 首先,要感谢我的母校--华中科技大学,没有这个优秀的学校做后台,我想自己根本没有机会去... 阅读全文

posted @ 2015-05-09 09:59 ruan875417 阅读(151) 评论(0) 推荐(0) 编辑

2015年5月8日

【STL源码剖析读书笔记】【第4章】序列式容器之list和slist

摘要: 一、list1、list概述list是双向链表,对于任何位置的元素插入或元素移除,list永远是常数时间。2、list的节点list本身和list节点是不同的数据结构,需要分开设计。STL list的节点结构:template struct __list_node { typedef void* ... 阅读全文

posted @ 2015-05-08 10:58 ruan875417 阅读(230) 评论(0) 推荐(0) 编辑

2015年5月6日

【STL源码剖析读书笔记】【第4章】序列式容器之vector

摘要: 1、 vector概述vector是动态空间,随着元素的加入,它内部机制会自行扩充空间以容纳新元素。vector的实现技术,关键在于其对大小的控制及重新配置时的数据移动效率。2、 vector的迭代器vector的迭代器是普通指针,支持随机存取,提供的是Random Access Iterators... 阅读全文

posted @ 2015-05-06 18:37 ruan875417 阅读(190) 评论(0) 推荐(0) 编辑

2014年计算机求职总结--准备篇

摘要: 版权所有,转载请注明出处,谢谢!http://blog.csdn.net/walkinginthewind/article/details/13000431找工作是一个长期准备的过程,突击是没什么效果的。准备时间越长,准备就越充分,就越容易拿到好的offer。我基本上从研究生一入学就一直在准备找工作... 阅读全文

posted @ 2015-05-06 08:33 ruan875417 阅读(167) 评论(0) 推荐(0) 编辑

2015年5月5日

研究生阶段学习计划

摘要: 语言经典书:必看:c++ priemer->effective C++->深度探索C++对象模型->c++ templates中文版->stl源码分析选看:C和指针->C专家编程->C陷阱与缺陷->你必须知道的495个C语言问题->C++必知必会->MoreEffective C++->Effect... 阅读全文

posted @ 2015-05-05 16:05 ruan875417 阅读(194) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 下一页

导航