Movatterモバイル変換


[0]ホーム

URL:


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

Commitdd8c1d1

Browse files
authored
clarify log for 2d search (neetcode-gh#3755)
1 parentc4ff1cc commitdd8c1d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎articles/search-2d-matrix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ class Solution {
550550

551551
###Time & Space Complexity
552552

553-
* Time complexity: $O(\log m + \log n)$
553+
* Time complexity: $O(\log m + \log n)$ (which reduces to $O(\log(m * n))$)
554554
* Space complexity: $O(1)$
555555

556556
> Where $m$ is the number of rowsand $n$ is the number of columns of matrix.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp