1
deepreader 2015-05-19 15:58:33 +08:00
|
2
phx13ye OP @deepreader
if A[m/2]>B[n/2] and k>m/2+n/2, then disregard B_left and B[n/2] if A[m/2]>B[n/2] and k<=m/2+n/2, then disregard A_right and A[m/2] if A[m/2]<=B[n/2] and k>m/2+n/2, then disregard A_left and A[m/2] if A[m/2]<=B[n/2] and k<=m/2+n/2, then disregard B_right and B[n/2] 这里怎么理解 |
3
deepreader 2015-05-19 17:04:07 +08:00
@phx13ye 两个数组被分成四段,case 1的话,你要找的target则不可能在四段中值最小的那一段,其他的类推。
|