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 is almost twice as slow than using a for of with a stack array that joins at the end, but it's clever.
This is true. I went through quite a bit of pain to make it work and make it neat and concise, and I was looking forward to seeing others' solutions—only to find many hadn't gone to the trouble!
🤭 NTS: I should've duplicated each sequence before sorting to not alter the input rows.. Totally forgot about that!
The Haskell version does not seem to test X'es as last character. My initial solution passed while I believe it should not:
https://www.codewars.com/kata/reviews/57cc5742a362c1629b000076/groups/608e8d49d8ca9c0001604622
Hmm. Reading the description again, this one shouldn't have passed, as it doesn't account for 'X'es as last character. Fixed with https://www.codewars.com/kata/reviews/57cc5742a362c1629b000076/groups/608e9912d8ca9c000160479b