Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • Random tests sometimes expect results with a trailing space at the very end.

  • will make parts as long as possible (API calls can be expensive)

    As long as possible is vague. e.g

    splitText("4444 1 333 1 4444", 7)

    A globally "as long as possible" solution would split it as "4444", "1 333 1", "4444" but a greedy solution would split it as "4444 1", "333 1", "4444". What is the expected answer?