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.
Make sure you use
u64
Bash translation
Approved
Ohhh thx~
This comment is hidden because it contains spoiler information about the solution
you're printing too much to console, just remove the print statements and it will pass
This comment is hidden because it contains spoiler information about the solution
Lua translation!
Groovy Translation
I have used the type __int 128 which allows you to work whit 128bit integers. In fact without it, the randomtest2failed everytime
Got it, thanks a lot!
Your solution is buggy, because
math.pow
loses precision for large numbers. It is not a kata issue.Attempted this with Python and it doesn't seem to work with very large numbers. The basic tests all turn out correct, as do most of the random ones. Could this be a problem with the input range?
Rust user here. I have a rust solution that works on the basic test cases but gives this error on the complex ones "attempt to multiply with overflow". I have tried using both u64 and i64 types in case some tests were very demanding but i got the same error. Any ideas?
Loading more items...