0
Can someone please help me to get all possible the sub arrays of a given array
7 Answers
+ 2
Post your attempted code, got your answer ready
+ 1
nice, heres what i got, may have to change the numbers to strings, is this what you were looking for?
https://code.sololearn.com/c3g8IdDvv6zJ/?ref=app
+ 1
Can you please tell me where my code went wrong.
+ 1
look at this
https://code.sololearn.com/cjj6omNtdbLp/?ref=app
+ 1
I assumed a sub arrays would be all arrays that could be possibly made with the current order. [2,0,2] can't be made like that. If its every permutation of the list refer to the first code i posted here
0
But here in both codes [2,0,2] can also be a possible subarray and there are many more which I am not getting.