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 don't understand how to round up the minutes. This command does not work:
Please tell me how to round up the minutes?
Thanks! I realized my mistake! I will have to solve using a different algorithm.
This comment is hidden because it contains spoiler information about the solution
Tell me, what's wrong with my code? The problem is only with the test: nonCharTest.
My code here:
RegEx is ok. Delete ^ and $.
It was very interesting and exciting!
Kruto!!! ๐
Yes, this was the first solution. I didn't like it either. Then I corrected it to the flag. Thanks for the comment! ๐
Yes, this was the first solution. I didn't like it either. Then I corrected it to the flag. Thanks for the detailed comment! ๐
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Description has very few test cases. That why I failed for a long time.
The test below helped me to see my mistakes and solve this kata:
assertArrayEquals(new int[] {26, 3, 3}, Kata.arrayDiff(new int [] {13, 2, 26, 13, 2, 3, 3}, new int[] {2, 13}));
Easy
I understood!
Error in the description: "NOTE: Extra spaces before or after the code have no meaning and should be ignored."
Actually, extra spaces before and after the code HAVE meaning. So, it is necessary to write the following line at the beginning of the code:
morseCode = morseCode.trim();
Expected: is "E", but: was "nullE"
Please show the character that needs to be recoded into the letter "E".
My characters in the dictionary are as follows:
morseCode.put(".", "E"); morseCode.put("ยท", "E")
Loading more items...