Ad
  • Custom User Avatar

    I think 6 would be [2,1,1,1,1] and 7 would be [2,2,1,1,1] and 11 would be [3,2,2,2,2] mainly driven by the restriction that the fifth portion be as long as possible but less than or equal to the other 4.

  • Custom User Avatar

    I encountered the same issue as @deadwater. Some of the JavaScript random test cases use input values that exceed the n < 4000 condition. Iterative solutions are not affected by these cases -- "M" is just repeated -- but digit-based solutions are. Marking this as an issue.

  • Custom User Avatar

    When testing the javascript version, it will sometimes pass randoms numbers that actually exceed the parameter condition indicated (n < 4000). That is, I get "expected" answers that look like MMMMMMMMM when they pass something like 8000.