Skip to content

Commit

Permalink
Merge pull request #130 from jesee030/fix_spell
Browse files Browse the repository at this point in the history
Update 0004-median-of-two-sorted-arrays.md
  • Loading branch information
MisterBooo authored Jun 24, 2021
2 parents 5734003 + 691a4e5 commit 06076de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ nums2 = [3, 4]
![](../Animation/image2.PNG)
如图我们要找到一组AB满足上面3条规则
对于规则1我们在数组1中找任意A然后根据规则1就能推算出对应的B的位置
对于规则2由于数组1和2都是有序数组即X1<A<Y1;X2<B<Y2我们实际上只需要判断A是否小于Y2以及B是否小于Y2
对于规则2由于数组1和2都是有序数组即X1<A<Y1;X2<B<Y2我们实际上只需要判断A是否小于Y2以及B是否小于Y1
对于规则3由于数组1和2都是有序数组因此中位数为A,B中较大的那一项

那么具体该如何操作呢?
Expand Down

0 comments on commit 06076de

Please sign in to comment.