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.
My solution just passed whilst not taking into account litres less than 5...
https://www.codewars.com/kata/reviews/57b5f4c88a36ac1d46000fae/groups/5f675903e6d0d80001aaef17
That means you probably passed with incomplete / inaccurate solution. Do you remember inputs of a test which you failed before? It might be worth adding some extra tests.
It's a funny thing, I pressed 'Attempt' button and my errors were different each time.
The first time there were legitimate errors. The second time I could not understand the reason and so I pressed 'Attempt' button again and
Voila! It passed...
It looks like I'm submitting my solution but it's not showing in the solutions.
'If we use the empty string as the separator, we'll get an array of strings containing each character..." I see this in description for Python and it causes ValueError: empty separator.
Very elegant.
The basic test does not work.....
Error:
./src/main/java/YourSolution.java:2: error: ',', ')', or '[' expected
public static int findOccurrence(String subStr, String str, int occurrence = 1) {
^
1 error
Hello russia
Java - change the class name and method name ffs
I don't get the 11, 49, 65. Where did we get those numbers from?
but it's already there in the description
Yes exactly, the order is always a, b, c. Not c,b,a b,c,a etc.
You mean, like this?
The exercise should clearly state that the reordering is not allowed.