随笔分类 - 奇奇怪怪的知识点
摘要:https://blog.csdn.net/qq_41598072/article/details/99973908 empty是用来测试变量是否已经配置。若变量已存在、非空字符串或者非零,则返回 false 值;反之返回 true值。所以,当字符串的值为0时,也返回true,就是执行empty内部
阅读全文
摘要:https://blog.csdn.net/m0_37890541/article/details/105104045 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int
阅读全文
摘要:https://zhuanlan.zhihu.com/p/93486020 给定一个长度为 n 的整数数组,你的任务是判断在最多改变 1 个元素的情况下,该数组能否变成一个非递减数列。 我们是这样定义一个非递减数列的: 对于数组中所有的 i (1 <= i < n),满足 array[i] <= a
阅读全文

浙公网安备 33010602011771号