This commit is contained in:
yqq
2021-06-14 16:34:46 +08:00
parent 0fbaef4b4e
commit be40b09991
2 changed files with 4 additions and 3 deletions

View File

@ -76,7 +76,7 @@ public:
``` ```
时间复杂度O(n) 时间复杂度O(n)
间复杂度O(1) 间复杂度O(1)
效率如下: 效率如下:
@ -158,7 +158,7 @@ public:
**大家要仔细看注释思考为什么要写while (left < right) 为什么要写right = middle** **大家要仔细看注释思考为什么要写while (left < right) 为什么要写right = middle**
``` ```cpp
class Solution { class Solution {
public: public:
int searchInsert(vector<int>& nums, int target) { int searchInsert(vector<int>& nums, int target) {

View File

@ -88,7 +88,8 @@
以上分析完毕C++代码如下: 以上分析完毕C++代码如下:
```
```cpp
class Solution { class Solution {
public: public:
int climbStairs(int n) { int climbStairs(int n) {