Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You just have to say its an memory optimized solution and not a time optimized :)
What a effizient way to solve this problem
You could ask for help on the Code Wars discord chanel. Or you could msg me on discord and I will help you Yanni#6959
nice solution
Thats because there will be more numbers after the zeros like 565181118393.1542000000...1. It only has zeros at the end because there will be other numbers and with calculate the first 10 digts I also mean calculating if it is a zero but only if there will be other digts after this
I fixed it now
I could change it that you have to write "..." Like
16S894HJ1.PPAF000000...
after the result if there are more digts or I could remove the zeros what do you think should I do?fixed
It does 0 in the solution beacause after the 0 will be a other number like 16S894HJ1.PPAF000000...1
okay thx
okay done
It was a rounding error and I fixed it now. Also I also changed the decimal places from 20 to 10.
pls add random tests
Which title would you then suggest for the katar?
Why should it have nothing to do with narcissistic numbers? Narcissistic numbers also include numbers where the exponent is changed.
Loading more items...