static int findMissingNumber(int start, int end, List<Integer> list) { for (; start <= end; start++) { if (list.contains(start)) { continue; } else { return start; } } return 0; }
Sign in to make a reply
追风少年