摘要:
原创链接 觉得讲解的很牛逼,让他待在原有的地方觉得浪费了,希望以后每次打开都能学习到他精巧的思维。 以下为作者正文: 因为是第一次接触到这样的题目,毫无思绪,对官方题解也是“不知道为什么要这么做”。看过一些题解之后才逐渐明白,现在让我自己来写题解,我打算先从简单的开始讲起。 Part 1 假设已知r 阅读全文
posted @ 2021-09-06 19:03
fashow
阅读(368)
评论(0)
推荐(0)
摘要:
将输入参数直接输入到vector ,建议随时参考cpp参考网址 基本上多少都会忘记一些,多看几遍就记住了 #include<iostream> #include<vector> #include<iterator> using namespace std; int binary(vector<int 阅读全文
posted @ 2021-09-06 18:28
fashow
阅读(138)
评论(0)
推荐(0)
摘要:
学习到一篇很好的博客 二分法的细节加细节 你真的应该搞懂!!! 详细的讲清了二分的边界问题,左右边界问题。 #include<bits/stdc++.h> using namespace std; int Left(vector<int>& nums, int target) { int left 阅读全文
posted @ 2021-09-06 18:22
fashow
阅读(80)
评论(0)
推荐(0)
浙公网安备 33010602011771号