mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-03 10:53:25 +08:00
update 0704.二分查找: 添加复杂度分析
This commit is contained in:
@@ -86,6 +86,9 @@ public:
|
||||
};
|
||||
|
||||
```
|
||||
* 时间复杂度:O(log n)
|
||||
* 空间复杂度:O(1)
|
||||
|
||||
|
||||
### 二分法第二种写法
|
||||
|
||||
@@ -124,6 +127,9 @@ public:
|
||||
}
|
||||
};
|
||||
```
|
||||
* 时间复杂度:O(log n)
|
||||
* 空间复杂度:O(1)
|
||||
|
||||
|
||||
## 总结
|
||||
|
||||
|
||||
Reference in New Issue
Block a user