Back to QuestionsPractice with This Question
Delete Operation for Two Strings
72K views•Asked at Microsoft•
Medium
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
Practice answering orally or with text to get instant AI feedback.