1 round: ● Given an unordered integer array, Check whether the array is having consecutive sequence of numbers or not. Display the largest possible sequence. Example: array {1, 5, 2, 4, 3} Output: Yes 1, 2, 3, 4, 5 Example: array {2, 5, 12, 3, 4, 11, 9, 10, 13} Output: No 9, 10, 11, 12, 13
Anonimo
I Wrote the program. :)