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.
I'm glad you enjoyed :)
Approved
Approved
OCaml translation
C Translation
Approved
JavaScript translation
this translation makes the description language-agnostic
There are already ( more than ) enough examples in the description.
Great Kata! I loved solving it 😁
What do you mean by minimum values for colours and pairs? The description says they're both positive integers if thats what you mean.
Thanks for the suggestions :)
Hey, nice kata! I’d suggest adding more example cases in the description for clarity.
Also, maybe add a note about minimum values for colours and pairs, and consider tagging it with "pigeonhole principle" — that’s a cool bit of math that fits the problem perfectly.
Thanks for the examples and done.
Generally the idea is that tests should be easily debuggable, and to be such, they should present inputs of test cases which failed. This can be done in a couple of ways, and one possibility is assertion messages which are presented on failure. You can check authoring examples for some ideas, but one possibility is to use
"socks({colours}, {pairs})"
as an assertion message.Sample tests have been fixed. What assertion messages would you expect?
Done
Loading more items...