Search⌘ K
AI Features

Find the Lexicographically Largest String From Box II

Find the Lexicographically Largest String From Box II gives a string and the number of friends. Divide it into that many non-empty parts in every unique way, then return the lexicographically largest one.

Statement

You are given a string, word, and an integer numFriends, representing the number of friends participating in a game organized ...