摘要: 1.https://blog.csdn.net/qq_40197828/article/details/104075828?utm_source=app 2.https://blog.csdn.net/bat67/article/details/76095813?utm_source=app htt 阅读全文
posted @ 2021-01-08 13:40 ATKevin 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1. 字符数组 char parr[] = "zifuchuanshuzu"; char charr[] = { 'z','i','f','u','c','h','u','a','n','s','h','u','z','u' }; 数组 1. 直接给每个元素赋值int array[4] = {1,2 阅读全文
posted @ 2021-01-06 16:17 ATKevin 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://leetcode-cn.com/problems/add-binary/submissions/ 反思:1.用reverse()函数将string倒置后操作,不用进位时整体向后移动 2.t的巧妙用法 3.to_string函数的使用和理解 class Solution { 阅读全文
posted @ 2021-01-04 19:53 ATKevin 阅读(47) 评论(0) 推荐(0) 编辑
摘要: while((c = getchar()) != EOF) #include<stdio.h>int main() //把main函数定义成int类型{int a,b;while(scanf("%d %d",&a, &b) != EOF) // 输入结束时,scanf函数或getchar()返回值为 阅读全文
posted @ 2020-12-23 22:55 ATKevin 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 寄存器的理解 http://www.ruanyifeng.com/blog/2018/01/assembly-language-primer.html cpu的一级缓存,二级缓存和三级缓存 https://blog.csdn.net/qq_29229567/article/details/80561 阅读全文
posted @ 2020-12-22 22:55 ATKevin 阅读(60) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/baihualiaoluan/p/10661669.html 阅读全文
posted @ 2020-12-21 20:28 ATKevin 阅读(154) 评论(0) 推荐(0) 编辑
摘要: for循环 https://www.cnblogs.com/developing/articles/10890903.html 阅读全文
posted @ 2020-12-20 22:34 ATKevin 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.acwing.com/problem/content/802/ 双指针的妙用 先打暴力,在改成双指针。 正确解法 遍历l,确保不会漏 #include<iostream> using namespace std; const int maxn = 1e5 + 10; 阅读全文
posted @ 2020-12-04 23:42 ATKevin 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1.有问题代码 class Solution { public: void nextPermutation(vector<int>& nums) { int n = nums.size(); int i = n-1; while(i > 0) { if(nums[i] <= nums[i-1]) i 阅读全文
posted @ 2020-11-30 09:31 ATKevin 阅读(117) 评论(0) 推荐(0) 编辑
摘要: gdb 【文件名】 (进入文件) disass main 汇编出main函数 b + *(地址)/函数名 设置断点 阅读全文
posted @ 2020-11-26 16:47 ATKevin 阅读(66) 评论(0) 推荐(0) 编辑