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 comment is hidden because it contains spoiler information about the solution
This entire Discourse section must be purged!
This comment is hidden because it contains spoiler information about the solution
Its not? There just arent big enough test cases to see a difference. Try
triangular 100000000 `shouldBe` 5000000050000000
for example.It has a performance tag already
No you don't. Don't overthink it, just write a solution which terminates as soon as possible no matter whether the first or second argument is smaller.
It seems to be all integers, at least in python
Specific-ations. At the very top, The "Specifications" bulleted list states that the "first input minus the second input...". Please read more carefully.
Please use spoiler flag next time.