Skip to content

Commit 59e44a6

Browse files
authored
Update 069. Sqrt(x).java
1 parent f713da4 commit 59e44a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

069. Sqrt(x).java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ public int mySqrt(int x) {
1010
}
1111
}
1212
}
13+
// Note: for any x, sqrt(N) is between [min(x, N/x), max(x, N/x)]
14+
// if x = sqrt(N), then N/x = sqrt(N)
15+
// if x < sqrt(N), then N/x > sqrt(N)
16+
// if x > sqrt(N), then N/x < sqrt(N)

0 commit comments

Comments
 (0)