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

    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.