Hi,
The problem that I wish to solve is to divide a (sored) list of integers into sublists such that each sublist contains numbers in consecutive sequence.
For example,
Input: [1,2,3,7,8,10,11,12]
Output: [[1,2,3],[7,8],[10,11,12]]
I have written the following code and it does the trick.