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
Sorry I have fixed the issue
Alright I have changed it to -1, thanks for your time and help.
Unfortunately I don't know how to do that and have some -6969's at the same time, this works better for me.
Also it doesn't matter, it can be any negative number
I have changed the code and description to -6969 since you yourself said that 6969 could be a valid solution.
Okay I have made it to 100 random tests and reduced the bounds so that there is about a 50% chance of -6969
I added 500 so that people wont just get lucky by just returning -6969
Maybe 200 will be fine?
Okay I have reduced the time complexity to O(n)
The solution still works.
I have added them for the fixed tests
How do I add those?
This does not work anymore
My bad I am used to working in Java
I have added random tests and sample tests, sorry that there were only 5 fixed tests before