摘要: 刷了两道题目就刷不动了,编程和理解能力太差了,还是先拿起我数据结构的书慢慢啃,这次借鉴别人的程序,写了个链表,先贴出来,后面会写出自己的链表代码。好像内存没有释放掉。。。。 #include <iostream> using namespace std; class slistNode{public 阅读全文
posted @ 2016-08-04 10:51 追风筝的恐龙 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 柿子专挑软的捏,从最简单的题目开始练,现在上题目: 223. Rectangle Area 柿子专挑软的捏,从最简单的题目开始练,现在上题目: 223. Rectangle Area Total Accepted: 42894 Total Submissions: 139528 Difficulty 阅读全文
posted @ 2016-07-27 14:28 追风筝的恐龙 阅读(131) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: vector<int> twoSum(vector<int>& nums, int target) { vector<int>a; int flag = 0; for(int i=0;i<nums.size()-1;i++) { for(int j=i 阅读全文
posted @ 2016-07-26 17:40 追风筝的恐龙 阅读(2527) 评论(0) 推荐(0) 编辑