Skip to content

Commit 5475ccd

Browse files
authored
docs: supplement the idea of solving the problem (doocs#684)
剑指 Offer 04. 二维数组中的查找
1 parent 039bd09 commit 5475ccd

File tree

1 file changed

+3
-1
lines changed
  • lcof/面试题04. 二维数组中的查找

1 file changed

+3
-1
lines changed

lcof/面试题04. 二维数组中的查找/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030

3131
## 解法
3232

33-
从左下角(或右上角)开始查找即可。
33+
- 换一种观察角度,以右上角位置为基点,往左数值逐渐变小,往下数值逐渐变大。
34+
- 且该角度放在数组任意位置都成立,相当于模拟了一棵**二叉搜索树(Binary Search Tree)**
35+
- 根据二叉搜索树特点,从右上角(或左下角)开始查找即可。
3436

3537
<!-- tabs:start -->
3638

0 commit comments

Comments
 (0)