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.
Updated JS to Node v18.
Try again, I've already enabled Node v18.
Yeah I can see that, I just have to adjust the code for it, but it make it more large than the expected
That's because Node v8 doesn't support it.
The code is not validating the function replaceAll, it should be because this is a netive method of Javascript, when I tried to run the code I got that error message, because of that the function is quite large for me
I'd have to say that this one has been an interesting exercises, to be honest I'm gonna try it later because is over my knowledge but is interesting what I can learn from it
Forget about "Big" numbers and work with strings instead.
@rowcased this is a good Kata it makes me think a lot about how to work with Big numbers, any advice for it?
Because that would make the kata too easy in that language. Instead, you are expected to implement the algorithm more thoroughly by yourself using strings.
This comment is hidden because it contains spoiler information about the solution
You should think about the big numbers, search about BigInt maybe it could give you an idea
This comment is hidden because it contains spoiler information about the solution
Read this: https://docs.codewars.com/training/troubleshooting#works-but-no you're using a global var.
I left my solution but don't know why the test has an error I test the code on VScode and works really great even with huge numbers