Build a target string from the fewest substrings of a source

0
Remix

Express a target string as a concatenation of substrings of a source string, each given by its index range, using as few pieces as possible. Follow-up: after one character of the source is deleted, find the new minimum.

DatabricksCodingHardLast asked May 2026
No answer yet. Write the first one; the best answer gets endorsed.