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
Please use appropriate markdown formatting when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Your code does not meet the following requirement:
For example, for the input
"man i need a taxi up to ubud"
, your code incorrectly outputs{"a", "need", "ubud", "taxi", "i", "man", "to", "up"}
instead of{"a", "need", "ubud", "i", "taxi", "man", "to", "up"}
.This comment is hidden because it contains spoiler information about the solution
Your code does pass both basic and random tests. However, this is not the proper way to raise an issue, and there is actually no issue unless you demonstrate it clearly. Please read carefully the documentation: https://docs.codewars.com/training/troubleshooting/
This comment is hidden because it contains spoiler information about the solution