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
This is common in a lot of languages.
This comment is hidden because it contains spoiler information about the solution
JavaScript engines, when parsing the code will do semi-colon insertion. So while semicolons can be omitted in most cases, the JS engine is still adding them back in before the code is executed. This can really jack up your program if you are not aware of the insertion rules. http://inimino.org/~inimino/blog/javascript_semicolons.
JS does not enforce semicolons except in very specific cases.
Hi! Thanks for the reply and feedback. You're absolutely right.
The details says : "If possible the message will be evenly split; if not possible, parts 1, 2, 3, 4 will be a bit longer and part 5 a bit shorter."
44440 seems good since parts 1, 2, 3, 4 are evenly split, part 5 being shorter. The fifth runner will stay home:-)
In 43333 the parts 1, 2, 3, 4 are not evenly split.
Write a small function to do the job.