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.
Good
I love your answer instead of my ugly code :-(
It should be the best practice.
You can just return num[-1] and python will returm the last element of a list.
Banned characters not tested.
Banned characters not tested.
Surprisingly, I could approve this fork.
Merge conflict.
(
sol n
needs aDouble
)done https://www.codewars.com/kumite/5d9f24b05ec4c4000ddb842d?sel=5daba8a54c4a1900268f1912
(That was really smart of QuickCheck to know that I needed a float. )
How did I miss no random tests !?
Approved. Thanks.
cleaned up & added random tests https://www.codewars.com/kumite/5da175538b0f6ca6fe688266?sel=5dab94c44c4a19000e8c7232
Again, please clean up the example tests. Solvers will be trying to find actual test cases in this mess. ( You can take out the
describe
header as well. Haskell tests don't need those. ) ( The:: Double
is also unnecessary. )Should use camelCase instead of snake_case. It's Loch Ness, not Lock Ness. And could you clean up the example tests? All those comments don't help solvers, and all those parentheses are unnecessary.