Let's say that I have an input 2, 4, 8, 16, 32....
if we choose 16 then make an randomly array into chunk looking as following:
[[1,3],[5,7],[4,2],[8,11],[9,12],[16,6],[15,10],[14,13]]
What approach would be appropriate to chunk (split) the array into many smaller arrays in this format?
Aucun commentaire:
Enregistrer un commentaire