摘要: Problem 1: 1) 循环里的i>0应该改为i>=0 2) x为空数组时 3) x = [2,3,5], y = 5 4) x = [2,3,5], y = 6 Problem2: 1) 循环遍历的顺序反了,循环体应该改成: for (int i = x.length – 1; i >= 0; 阅读全文
posted @ 2017-03-02 23:11 LuoChenGang 阅读(124) 评论(0) 推荐(0)