Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
修正区间范围
  • Loading branch information
cnzbq authored Nov 13, 2020
1 parent 8401264 commit 595d4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leetcode/0633.Sum-of-Square-Numbers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ Given a non-negative integer `c`, your task is to decide whether there're two i
## 解题思路

- 给出一个数,要求判断这个数能否由由 2 个完全平方数组成。能则输出 true,不能则输出 false。
- 可以用二分搜索来解答这道题。判断题意,依次计算 `low * low + high * high` 和 c 是否相等。从 [1, sqrt(n)] 区间内进行二分,若能找到则返回 true,找不到就返回 false 。
- 可以用二分搜索来解答这道题。判断题意,依次计算 `low * low + high * high` 和 c 是否相等。从 [0, sqrt(n)] 区间内进行二分,若能找到则返回 true,找不到就返回 false 。

0 comments on commit 595d4cd

Please sign in to comment.