+ 2

I want divide an array into n equal parts

For example..I have a array like [12345678] and I want to dived into two equal halves like [1234] and [5678].can someone provide the code for it plss.

5th Jan 2021, 11:25 AM
Aman Rana
Aman Rana - avatar
3 Réponses
+ 2
we won't provide ready-made codes here
5th Jan 2021, 11:27 AM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 2
What if it had an odd number of elements?
5th Jan 2021, 11:29 AM
Sonic
Sonic - avatar