Search
⌘K

Leetcode 3403. Find the Lexicographically Largest String From the Box I

Given a string and integer k, consider every way to split the string into k non‑empty contiguous parts; among all parts across all splits, return the lexicographically largest string. Equivalently, this is the lexicographically largest substring of length at most n−k+1.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.