Leetcode 1754. Largest Merge Of Two Strings
Given two strings, build the lexicographically largest merge by repeatedly taking the first character of either string; the core challenge is a greedy decision at each step, breaking ties by comparing the remaining suffixes lexicographically (efficiently handling lengths up to ~3000).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.