We are struggling with the following problem:
For example the following list, should be divided in m
lists with the same order.
Lets say [9,7,6,5,2,10,8,4,3,1]
with m=3
a few of the end results should be:
[[9],[7,6],[5,2,10,8,4,3,1]]
[[9,7],[6,5,2,10,8,4,3],[1]]
[[9,7,6,5],[2,10,8,4],[3,1]]
etc.
How can I achieve it?