Given two strings word1 and word2, return the minimum number of deletion steps required to make word1 and word2 the same.
In each step, you can delete exactly one character from either string.
Constraints:
word1.length, word2.length
word1 and word2 consist of only lowercase English letters.
Given two strings word1 and word2, return the minimum number of deletion steps required to make word1 and word2 the same.
In each step, you can delete exactly one character from either string.
Constraints:
word1.length, word2.length
word1 and word2 consist of only lowercase English letters.