+ 2

Any better to do it with mono-dimensional array?

Guys I tried to list all possible combinations of any number with one dimensional array and made it work, but does anyone have better solutions with one dimensional array? https://code.sololearn.com/cwcCMfwFHp9T/?ref=app

16th Apr 2018, 6:03 AM
Jadenutt
Jadenutt - avatar
4 Respuestas
+ 1
It's never worth reinventing the wheel :-) Unless we want a bumpy ride.
18th Apr 2018, 2:48 PM
Emma
17th Apr 2018, 12:46 AM
Emma
+ 1
Thank you! Wow, that is so much simpler than my code!
18th Apr 2018, 2:40 PM
Jadenutt
Jadenutt - avatar
+ 1
It’s good for practice tho, u have to admit that.
18th Apr 2018, 2:50 PM
Jadenutt
Jadenutt - avatar