摘要:
Professional C++ 第六版学习记录 Github 基础知识 const使用 const 用来表示不可修改的值或者对象 常量 const int a = 10; // a不可被修改 a = 12 // error std::optional 类模板 std::optional 管理一个可 阅读全文
posted @ 2025-08-27 22:54
杰西卡若
阅读(25)
评论(0)
推荐(0)
摘要:
二分搜索 时间复杂度 O(logN):最坏的情况下 O(1):恰好要找的数在最中间 寻找一个数 要点:数组是有序 bool exist(vector<int>& arr, int num) { if (arr == null || arr.size() == 0) { return false; } 阅读全文
posted @ 2025-08-27 22:51
杰西卡若
阅读(7)
评论(0)
推荐(0)

浙公网安备 33010602011771号