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.
This comment is hidden because it contains spoiler information about the solution
"aa", "aa", "a", "a", "" => 2, 2, 1, 1, 0
1 - 4 (2, 2, 1, 1) non-increasing and at most 1 in diff, you try to split into as many parts as you can
What is a correct split of 6char string?
"aa", "aa", "a", "a", "" or "aa", "aa", "aa", "", ""
both violate the description in the assignment.
What is correct split of 6 char string?
"aa", "aa", "a", "a", ""?
Why someone thinks this is a best practice? If you have milion strings to join, and k=1000, than this will skyrocket with inefficiency.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution