Hello and welcome to the challenge!
Write a code that returns all possible subarrays of the given array with distinct integers. Subarrays should obey the rule of order shown in the example.
solve([1,2,3]) -> [, , , [1, 2], , [1, 3], [2, 3], [1, 2, 3]]
- an array with integers
- the array with all found subarrays in the proper order
0 < length of the given array < 100
Have fun and good luck! :)