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.
This comment is hidden because it contains spoiler information about the solution
use markdown like
i.e. put code in between ```.
There are a few syntax errors in your code as I read it. Try and paste the code properly which got the exit code.
Well, don't use one for loop in another. That's O(n^2) time because of them which will be too slow. You have to change your approach completely due to the upper limit of
n
being 10^6.Not a kata issue.
Hi, it's not a kata issue, you just need to return the value, not print.