0
Can someone pls review this code and help me to reduce the code?
2 odpowiedzi
+ 1
I would say it is an unnecessarily difficult solution. It will be quicker through the strings (maximum 4 lines of code).
1. Translate the number into a string and you get the power.
2. Split it in to array
3. Use the "list comprehensive" to summarise all the items.
0
Thank you