Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e81eb77

Browse files
authored
Update README.md
1 parent 67920b4 commit e81eb77

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎algorithm/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Divide and conquer basically does three jobs, first divides the problem into sma
1212

1313
The pre-requisites of binary search is, the array needs to be sorted.
1414

15+
Time complexity: ``` O(log n) ```
16+
1517
Code Sample
1618
```
1719
func binaySearch(nums[]int, left int, right int, target int) int{
@@ -36,6 +38,13 @@ func binaySearch(nums[]int, left int, right int, target int) int{
3638
- Merge Sort
3739
- Quick Sort
3840

41+
Time complexity:
42+
```
43+
O(n log n) in avg. case
44+
O(n2) int the worst case.
45+
```
46+
Supports in-place.
47+
3948
Code Sample
4049

4150
```xml

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /