02 2023 档案
摘要:Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6,
阅读全文
摘要:Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given
阅读全文
摘要:Given a stack which can keep M numbers at most. Push Nnumbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given se
阅读全文
摘要:A registration card number of PAT consists of 4 parts: the 1st letter represents the test level, namely, T for the top level, A for advance and B for
阅读全文
摘要:题目 When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves i
阅读全文
摘要:C++中给出了各个变量范围的最大值和最小值 (若要使用提供的最大最小值,注意需要引入头文件) #include<climits> 或 #include<limits.h> 各变量最大取值和最小取值列表 例子 判断两个long long 类型的变量相加是否溢出 bool check(long long
阅读全文
摘要:https://blog.csdn.net/a617976080/article/details/89676670 https://www.cnblogs.com/fisherss/p/12004044.html https://blog.csdn.net/xzy5210123/article/de
阅读全文
摘要:参考: https://www.cnblogs.com/vincent_shi/archive/2009/12/16/1625387.html
阅读全文
摘要:想要存储整个数组中的元素,只需要将内存中一段连续地址的元素读入即可,而链表中的元素是分散在内存中的,需要将更大范围的(整个内存)读入,显然是不太合理的,因为CPU缓存的空间十分有限。 因此可以说数组对于缓存cache更加友好 参考:https://blog.csdn.net/weixin_40413
阅读全文