static int findMissingNumber(int start, int end, List<Integer> list) { List<Integer> list1= List.of(10,11,12,13,14,15,16,17,18,19,20); for(Integer n:list1) { int j=0; for(Integer m:list) { if (n==m) { break; } else { j++; } if (j==list.size()) { return n; } } } return 0; }
Sign in to make a reply
大西瓜绿油油圆滚滚