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.
You're right. The returning type was incorrect.
Did you read the "Sample Tests"? Your return is incorrect.
I've implemented my solution in F#, but when I go ahead and test it, the following error appears:
/home/codewarrior/program.fsx(32,48): error FS0001: This expression was expected to have type
'int * int * int'
but here has type
''a list'
Simple kata, but you should emphasize more, that the input array will contain ONLY plural words ending ONLY on "s" and "es".
What about another plural forms?
https://www.grammarly.com/blog/plural-nouns/
Yup, it's time complexity is O(n^2). With a cache it's O(n). I wouldn't consider it clever as 343 people do... and oh, the readability of that solution...
Python translation kumited
Rejecting because rounding and no random tests.
okey thank you
Contract here does not refer to implementation detail. Contract is the protocol used by a caller and a callee agreeing on how they communicate and what behaviors they guarantee and expect. It's a combination of function interface, preconditions, invariants, and postconditions. For example,contract in this kata states that you operate on a provided mapping, which might not be initially empty.
Said that, i am not sure if this kata exercises (yes, it's a word) this aspect in a good way. Contracts are usually used in context of higher level system components, services, etc. I am not sure whether a kata and a low-level function represents it sufficiently, but it depends on how hard you squint your eyes.
Since this kata is a duplicate and you've already provided a translation to original kata, please remember to unpublish this one. Thank you.
Translation complete.
This comment is hidden because it contains spoiler information about the solution
Duplicate of The Captain's distance request".
This kata should be a translation on that kata.
Loading more items...