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.
Haskell solution's type expectations are weird. There's a mix of Ints and Integers in the input, and it makes it nearly impossible to properly handle the data.
Needs random tests.
The
<
condition isn't tested: using<=
instead of<
still passes the tests.There are no mentions that we are required to validate the input against invalid track durations, e.g
asdfasdg
,0000
,964
.What if there are more than one track with the longest track? Which one should be moved to the other side?
Some test cases have user function called outside the
it
block, which messes the order of operation.Function signature is missing in Haskell (well, no, it's worse,
undefined
...). This 7kyu kata is addressed to beginners, it is not about guessing Haskell data types subtleties and leave them disconcerted after their code passed the sample tests, it's just summing integers in an array and say if the result is odd or even.