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.
@AlejandorLazaro if you imply using a hash that's not O(n) algorithm; it's O(n.log(n))
First thing I would do is to analyze your code loops and make absolutely sure that you're running a O(n) algorithm. Walk through your code with an example on pen and paper and see if your solution really does only visit each element once. If you want to test your code somewhere else, I suggest using https://ideone.com as a good sandbox playground for your code.
Also, remember that Codewars is still growing and sometimes experiences submission problems. While rare, it may be an issue on their side. Just hang in there and try again! :)
You are supposed to provide correct output for empty plugboard (i. e.
plugboard = Plugboard()
, no arguments provided).