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.
On top of the below, the tests are pathetically weak: see this and this. It doesn't even check if
GivesTo
is a person.The actual test consists of one fixed test case.
This isn't really a kata, this is a puzzle question. It requires the user to find the solution of the given question. It isn't suitable as a kata unless the input is generalized.
This comment is hidden because it contains spoiler information about the solution
like :)
Fun small-scoped kata. It's really is one of those challenges that you run across in practice.
Very tiny improvement: fix the typo in
test_it_wont_assign_people_to_who_they_gifts_to_last_year
totest_it_wont_assign_people_to_who_they_gave_to_last_year
.Also, there are extra parentheses around the explode.
That's above and beyond :) I think monsters will suffer more damage knowing the codebase behind it :D
Use spoiler flag.
This comment is hidden because it contains spoiler information about the solution
My OOP attempt.
consecutive spaces should be removed previously
No. This is solution doesn't waiting for input consecutive space.
Please excuse me, English isn't my native language.
does it work for consecutive space?
The output could be random... but I will give an example. Thanks!
Hi and welcome;-), what about the output? The description contains some rules, but no word about the expected output (-format)... Perhaps it's visible inside the testcases, but the place for explanation is the description...
Loading more items...