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.
Approved.
This comment is hidden because it contains spoiler information about the solution
Approved.
If only one word fits on a line, it should be left-aligned and no trailing spaces have to be put after it.
The description somewhat assumes that you already have a rough idea how justify alignment works. Maybe I should try to reread it provided no prior knowledge.
Also the high number of issues comes from exceptionally bad assertion messages and the fact that the kata is old and was not fixed (and still is not in many languages) for 10 years.
In each line you should put as many words as possible. Only then you begin to fill and align the next line.
Have you ever seen how justify works in your favourite word processor (e.g. MS Word or LibreOffice Writer)? There are no leading spaces.
Lines with only one word fitting on it are covered by the rule
All non-lazy solutions are invalidated and no new have appeared in the meantime so issue seems sufficiently fixed.
You are creating the
Long
when the overflow already happened. Not a kata issue.its just function
It is specified in the sections Output and Note that you should return the lowest index in case there are multiple valid solutions.
See How to train on a Codewars kata.
Random.nextInt(lo, hi)
is end-exclusive. So if you want9
s on your cake you should puthi = 10
.From the description:
All your generated random tests consist of only one chain.
In the Discourse of the Kata doesn't take into consideration this problem if you could specify a bit more.
Random tests do not create test cases with separate words but only encoded spaces.
There are not 32 uppercase letters in the alphabet.
Loading more items...