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.
approved
Incorrect large number calculation was my problem too. But when I found the solution, I was surprised how simple it was.
Approved
Rust translation
i'm still getting that issue...
Anyone came up with a working solution for this? I'm also puzzled as to why the formula works for smaller numbers, but doesn't work for the big ones.
Even when specifying int. I also found that the formula breaks at exactly 16th digit. I.E. the first 16 digits are always correct.
EDIT: I finally have an answer. The thing is, even when I specify int(), python still converts to float when dividing. Naturally, changing all divisions to floor divisions (//) solved the problem.
Approved
COBOL updated with new framework
Sorry, I dont really understand what you are talking about.
Thanks
If you solved the kata you can see the other's solution and comment them. On solution's page.
Hey, I have tried it for myself and it works. Just trying to know if there could be any improvement in algo :)
Please use a spoiler flag next time. The best to do to know if it's correct is to try it out. Why should others do the job for you?
This comment is hidden because it contains spoiler information about the solution
Loading more items...