摘要:
code 1: 1. 没有考虑x == null的情况 2. for循环应该遍历到i>= 0的时候才退出 test1: x = [2, 3, 5]; y = 5 expected = 2 actual = 2 test2: x = [2, 3, 5]; y = 1 expected = -1 act 阅读全文
摘要:
code 1: 1. 没有考虑x == null的情况 2. for循环应该遍历到i>= 0的时候才退出 test1: x = [2, 3, 5]; y = 5 expected = 2 actual = 2 test2: x = [2, 3, 5]; y = 1 expected = -1 act 阅读全文
|