Eagle233-Blog

Eagle233-Blog


[Algorithms] KamaCoder 58. 区间和(第九期模拟笔试)


Categories Algorithms Array | Tags

来源:代码随想录 KamaCoder 58. 区间和(第九期模拟笔试) 前缀和的思想。 #include <bits/stdc++.h> using namespace std; ...


[Algorithms] LeetCode 59. 螺旋矩阵 II


Categories Algorithms Array | Tags

来源:代码随想录 LeetCode 59. 螺旋矩阵 II 考察基本功啊,区间统一左闭右开,最后记得处理n为奇数的情况。 class Solution { public: ...


[Algorithms] LeetCode 209. 长度最小的子数组


Categories Algorithms Array | Tags

来源:代码随想录 LeetCode 209. 长度最小的子数组 滑动窗口,注意指针什么时候要++。指针最好不要定义在for循环里面,有时候要回去–,很乱,不如直接手动++。 三刷发现忘记左边...


[Algorithms] LeetCode 977. 有序数组的平方


Categories Algorithms Array | Tags

来源:代码随想录 LeetCode 977. 有序数组的平方 双指针法,倒序写进结果数组。 四刷:指针可以取等,为什么? class Solution { public: ...


[Algorithms] LeetCode 27. 移除元素


Categories Algorithms Array | Tags

来源:代码随想录 LeetCode 27. 移除元素 暴力解法这边先要初始化一个size变量,原因是我们需要一直变动size的大小,不希望更改实际size之外的数组部分。 class Sol...


[Algorithms] LeetCode 704. 二分查找


Categories Algorithms Array | Tags

来源:代码随想录 LeetCode 704. 二分查找 注意区间的写法,我这里是左闭右开。CPP中很多STL容器都是左闭右开的,统一一下写法。 class Solution { p...


[CSAPP] Tests


Categories 课内 CSAPP | Tags

Week 1问题 1在 C 语言编译过程中,汇编程序是由哪个工具产生? A. 预处理器 B. 编译器 C. 汇编器 D. 链接器 问题 2在 C 程序的编译过程中,以下哪一个...


Programming Ability Training - All Codes


Categories 课内 In Class Practices | Tags

Weel 1A Problem A+B (Big Integer)#include <iostream> #include <string> #include <algorit...


Data Structure and Algorithms - All Codes


Categories 课内 In Class Practices | Tags

Week 1 20250221A 两个整数a,b之和// 这题用C,CPP会超时 // https://blog.csdn.net/OOFFrankDura/article/details/7...


USTC Computer Networking - Summaries


Categories USTC Computer Networking | Tags

采用每节课后总结要点的方式呈现知识体系。 1.1 什么是 Internet? Internet 从构成的角度来看,包括 节点 (Node) 、 边 (Edge) 、 协议 (Protoco...



Page views: Loading...  ·  Visitors: Loading...
Except where otherwise noted, original content on this site is dedicated to the public domain under CC0 1.0.
Powered by Hexo & Theme mdsuper
沪ICP备2026040813号
Search