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 can print the input with e.g.
System.out.printf()
to see which cases you are failing. Your code is incorrect because it does not handle e.g."2 glasses of wine and 1 shot"
(you split on commas, but there is no comma there).the description states:
expected:<[3] glasses of water> but was:<[2] glasses of water> for drinkinTest2
Very unclear, what the input would be. There is no specific example.
I tried for 2 beers and 1 shot. It outputs 3 glasses of water
simple clever
Omg, why I didn't think of that solution !
done
thats clever!
This has already been raised an issue :-)
Note that the digits can appear anywhere in the string (i.e. not necessarily in this format
2 water, 3 beer, 4 coffee
)This kata was decided to stay
Approved by someone
You just have to think more logical. I interpreted the kata as in one has to be even and the other odd and viceversa... but is as simple as they have to be different.
I Love that one i know i can put all in the Return but failed. So THX for that one rly awsome.
I just forked it, and it passed all tests.
i tried to run it and its returning false;
it can never be responsible
Loading more items...