What about this case for "as evenly as possible"?

  • 0

    input: {speak, a, how, ok, why}, 7

    in this case, should be the output {"speak a", "how ok", "why "} or {"speak ", "a how ", "ok why "}?
    I just think the latter one is "more evenly distributed" in some sense......
    Any idea?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.