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.
Thank you. I have now solved it in one pass, without changing the input.
??
This solution is O(nlogn)
There is a solution in O(n)
This solution is in O(nlogn)
There is a solution in O(n)
It is a nice solution,
but you are changing the input and that can be a dangerous assumption
No, you're reading the logs wrong. The test with that input expects
True
, the previous and next one expectFalse
. The log appears above the test result: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#print-inputSome tests are not working
For example the password 4fdg5Fj3 is a valid password but the test expect False.
The deep copy is not necesary here.