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.
Definitely a great balance between readability and performance - I saw another example of this using single character variable / function names and it was very difficult to grok at a glance.
How it works?
I'm a beginner and trying to learn multiple solutions to different problems.
When I run this code with a negative number, it doesn't return 0 so there must be something about it I don't understand.
Can someone explain how this meets the requirements of the prompt if it doesn't return 0 for a negative number? Or is there something about this code that doesn't work when I run it in an environment like OneCompiler?
best solution.
yea
literally no one cares
You can say that, but programming can involve math too.
In the description it says N is always greater than 2. So not an issue ~~
It would really help if you mentioned which language you're having this problem with.
If this problem persists, please raise a new issue. Closing.
It's a multiple field, have semantics, and syntax, linguistic too.
Because Santa already has this methods, and this objects inherited this methods
I saw it too. What should i do?
( my emphasis )
Test cases even have methods throw errors to make it clear you shouldn't be looking into them, just checking for their existence as methods.
Closing.
JS testcases rely on floating point correctness, meaning you gotta be real precise with the code used or you'll get a rounding error.
Either use more testcases to force performance requirements, or upgrade this kata to use precise integer types like BigInt in JS.
Loading more items...