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.
Approved by someone.
good kata but there are problems random tests are weak in the left function there is no string type check string passes to i one character and not a string as in right in the description it does say about two programming languages it is better to replace this statement with “in your language”.
Hey, I'm trying to translate this kata but what we should return in case of
i
is a string and does not appear instr
is not stated. I think it is worth mentioning and I think that it would probably be easier to return an empty string.For example, if your size is
2
and you encounter a fish of size3
, you must wait to be of at least size3
to eat it (if you ever reach size3
). Your solution don't take size into consideration.Your solution re-eats the same fish for each level.
Lua translation !
.
merged :)
Lua translation !
Align columns in
err_msg
intester
Oops, overlooked that. Fixed here
forgot to check for tables, they're misaligned actually: image
looks fine, approved
js fork with more balanced random tests. Please review before approval, thanks
Edit: Got approved.
Made this fork in JS.
Below is a representation of the average number of duplicates on 7 runs (700 tests). The indexes (0-99) are the number of duplicates for the test and the values are the number of time this number of duplicates was the solution.
Let me know what I could improve !
Approved
Loading more items...