Construct the Lexicographically Largest Valid Sequence

mediumSolve on LeetCodeLast edited: August 2, 2025