Given a list of integers, find out the biggest interval that has all its members in the given list. e.g. given list 1, 7, 4, 6, 3, 10, 2 then answer would be [1, 4]. Develop algorithm and write code for this
What is biggest interval It means the longest consecutive integers. Take the above example, 1, 2, 3, 4 are members of the list.
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include