algo/di-er-zhan-a01c6/tan-xin-le-9bedf/sao-miao-x-2e810/ #1528
Replies: 1 comment
-
while (i < n && j < n) 可改成 while (i < n),二者等价,因为当 begin[i] < end[j] 时 i++,当 begin[i] >= end[j] 时 j++,又 begin[n - 1] < end[n - 1],所以当 i < n 时,必有 j < n |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
algo/di-er-zhan-a01c6/tan-xin-le-9bedf/sao-miao-x-2e810/
Info 数据结构精品课 (https://aep.h5.xeknow.com/s/1XJHEO) 和 递归算法专题课 (https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员,全新纸质书《labuladong 的算法笔记》 (https://labuladong.gitee.io/algo/images/book/book_i...
https://labuladong.gitee.io/algo/di-er-zhan-a01c6/tan-xin-le-9bedf/sao-miao-x-2e810/
Beta Was this translation helpful? Give feedback.
All reactions