update 0704.二分查找: 添加复杂度分析

This commit is contained in:
Yuhao Ju
2023-03-09 00:13:05 +08:00
committed by GitHub
parent 2e216c1bd7
commit 77eeed96bc

View File

@ -86,6 +86,9 @@ public:
};
```
* 时间复杂度O(log n)
* 空间复杂度O(1)
### 二分法第二种写法
@ -124,6 +127,9 @@ public:
}
};
```
* 时间复杂度O(log n)
* 空间复杂度O(1)
## 总结