Suppose I have 2 arrays, A and B.
I want to divide array A into multiple arrays based on the number of elements in array B.
suppose A has 100 elements and B has 8, I would like to divide A into 8 different arrays with the first 7 having 13 elements each and the last array having 9 elements.
Suppose A has 5 elements and B has more number of elements, then I want A to be divided onto 5 different strings.
Any pointers on that?