This comment is hidden because it contains spoiler information about the solution
Very clever. I never thought about using split this way. That's gone straight in the toolbox of tricks, thanks.
drop huge numbers for python i am getting timeout error despite using generator object and or arrays
Why can't the length be shorter than the width??? As long as they're all positive, their relative values shouldn't matter. The terms width/length/height are just arbitrary labels for orthogonal scalars. I ran my solution against the inputs (5, 3, 6) and had no error. What's there to fix?
throw "" will suffice.
clever idea mate!!!
When I do the test cases my code works but when I click "ATTEMPT" I have no result because my code takes a long time to execute, I have tried both with "while" and with "for" and the same thing happens to me, it is my fault or there is some error?
doesnt even check sh*t
Haskell : https://www.codewars.com/kumite/5b62ff449756803a4a00019c?sel=5b62ff449756803a4a00019c
I submitted this via the 'constructive feedback' interface above which talks about a suggestion, but this was flagged an issue.
I agree with others that this is too simple and duplicates a number of other katas. It would be more interesting if the range spanned positive and negative integers, i.e. (m,n) ∈ ℤ, not just (1,n) ∈ ℕ, and do both m < n and m > n. It could still be tackled as both O(1) and O(n), as the coder wishes.
In my opinion waaaay to easy, I think we already have tons of similar katas here. It could be made better tho: