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.
Your solution is not a correct way to solv this challenge
n1 ^ n2
does not do what you think it does, and even if it did, the numbers here are too large to make it work. You need to find a better approach. It is not a kata issue.if you're going to raise an
issue
,please give a clear example of this
"BigInteger" is messing with the math
Thanks DrIvanKO! That did the trick for me.
Storing a large number will not help for this task. Numbers here get so big that they will not fit into memory. You need to figure out how to solve this without large numbers.
it's been 2 kata now that seemingly easy but i was stopped because my dumass couldn't figure how to store very large number in c++
I've had the same issue. Fixed it by changing node.jsversion to 18.x
The solution for this example should be 9. The number in question ends with digits
...2573646449
.The solution has a mistake. For example, it yields this error:
'Testing last_digit(10088986397463155518674926935007128287092795598171379587207, 82249490759468694934922134868661852028930188590920879674): 1 should equal 9'
The solution should indeed be 1
This is not optimized for Haskell
I'm having some issues with JavaScript random tests that appear to have BigInt inputs and expect BigInt results because returning a Number yields:
lastDigit(5143600, 0: expected 1 to equal {}
If I convert the results to BigInt when the inputs are BigInt, this error is thrown:
TypeError: Do not know how to serialize a BigInt at JSON.stringify
Seems to be related to this issue with JSON.stringify and BigInt https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/BigInt_not_serializable, so maybe a test issue rather than a problem with my solution?
Please look at the last example in description, and try to apply some common sense. Does it look like you can calculate such result, possibly 100 of times, in under 12 seconds? Very unlikely. You need a different approach altogether. (Ask yourself, why would this be 5kyu if your code worked?)
It's too simple.
why i get Execution Timed Out
for this code in python:
return (n1**n2)%10
i think there is no Simpler code than i wrote?
Issue is with your skill, not the kata.
Loading more items...