Back to Question

Delete Operation for Two Strings

Question Explain

Given two strings `word1` and `word2`, find the minimum number of steps required to make `word1` and `word2` the same. A step is deleting exactly one character. This relates to LCS.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.