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.
Everything looks good to me. I think the kata can be approved now (but I'm not able to do it myself).
Feedback after completing the kata below.
Overall, nice job. This was a bit different than anything I've seen so far (but I am still relatively new here). The test cases seemed thorough.
Possible improvements:
I think there is a typo later on the same line then: "where aaabbbbbbccccccdddddd" has 3 a's in it.
Lua translation added.
https://www.codewars.com/kumite/62e35a5d8852220069cbfde4?sel=62e35a5d8852220069cbfde4
I didn't. I modified it to use fill to discover the holes.
With Python moving to JIT, counting bytecode instructions probably isn't sustainable. I was thinking of HW perf counters, like the ones accessible by running 'perf stat' on Linux.
If codewars had a feature to run with perf counters and count the number of instructions executed, that might be a better way to restrict the solutions to something more efficient O() wise.
Yes the array insert promotes it to O(n^2), but switching from a python list to array('q') made it fast enough to pass the testcases at least.