ltx_zero

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页

2019年8月1日

摘要: 《算法笔记》3.2小节——入门模拟->查找元素 C题反复坑,注意在struct里面不能直接string,(正常输出但是返回 Process returned -1073741819 (0xC0000005) 使用字符数组,但是数组不能直接比较大小,自己写same函数,(直接等号会一直返回0.。奇怪的 阅读全文
posted @ 2019-08-01 23:12 ltx_zero 阅读(76) 评论(0) 推荐(0) 编辑

2019年7月29日

摘要: 《算法笔记》3.2小节——入门模拟->查找元素 B无难点 #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int main() { int n; int a[305]; int num; wh 阅读全文
posted @ 2019-07-29 20:27 ltx_zero 阅读(96) 评论(0) 推荐(0) 编辑

2019年7月24日

摘要: 《算法笔记》3.1小节——入门模拟->简单模拟 C简单,但是代码有点冗余,优化后省掉一般代码,保持优化习惯 #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int main() { int a 阅读全文
posted @ 2019-07-24 09:43 ltx_zero 阅读(128) 评论(0) 推荐(0) 编辑

2019年7月23日

摘要: PAT B1032 挖掘机技术哪家强 #include<stdio.h> #include<string.h> int main() { int n; int score[100005]; int a,b; scanf("%d",&n); memset(score,0,sizeof(score)); 阅读全文
posted @ 2019-07-23 12:30 ltx_zero 阅读(97) 评论(0) 推荐(0) 编辑

2019年7月21日

摘要: 绝对值在1e9范围内可定义成int,1e10-1e18是long long,注意,在大于2^31-1的时候,为long long赋初值要加LL char c=111//直接输出以后会发现出来的是对应111的ascii的字符 ascii范围0-127,小写字母比大写多32,大写A65 无论是对字符数组 阅读全文
posted @ 2019-07-21 18:17 ltx_zero 阅读(371) 评论(0) 推荐(0) 编辑

2019年7月20日

摘要: 拖延了以后还是来做题了qwq 哈希没补!补哈希!先做两道题补上今天和昨天的。 Num 237 删除链表中的节点 题非常简单,但是要注意两句话的顺序,一旦更新完next以后再访问真正的下一个的数值就访问不到了 /** * Definition for singly-linked list. * str 阅读全文
posted @ 2019-07-20 21:08 ltx_zero 阅读(126) 评论(0) 推荐(0) 编辑

2019年7月17日

摘要: 伪打卡,线性方法tle,先补哈希再做题。 Num 217 存在重复元素 需要补的内容:哈希表HashMap、堆排序+vector测试 阅读全文
posted @ 2019-07-17 00:14 ltx_zero 阅读(101) 评论(0) 推荐(0) 编辑

2019年7月16日

摘要: 今天还在肝大作业,仍然是选了简单题中的简单题,仅维持打卡 一遍过 Num 226 翻转二叉树 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *r 阅读全文
posted @ 2019-07-16 00:02 ltx_zero 阅读(117) 评论(0) 推荐(0) 编辑

2019年7月15日

摘要: Num 136 只出现一次的数字 先用最笨最占内存的方式。。n^2复杂度执行。。。内存10w。。。 注意里层是break!里层是退出是对外层continue class Solution { public: int singleNumber(vector<int>& nums) { vector<i 阅读全文
posted @ 2019-07-15 00:21 ltx_zero 阅读(132) 评论(0) 推荐(0) 编辑

2019年7月14日

摘要: 大作业是选课系统需要多线程。疯狂学习中。为了避免遗忘以blog记录一下~ 首先,并行是真正的同时执行,是多个处理器同时运行多个指令,但是并发只是指在一段时间同时进行,本质上还是有先后顺序的,同一时刻完成的是一个任务 java中使用Thread类来表示线程,所以所有的线程对象都是Thread或者是他的 阅读全文
posted @ 2019-07-14 15:12 ltx_zero 阅读(365) 评论(0) 推荐(0) 编辑

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