Back to QuestionsPractice with This Question
Edit Distance
143.6K views•Asked at LinkedIn•
Hard
Question Explain
Given two strings `word1` and `word2`, find the minimum number of operations required to convert `word1` to `word2`. Operations include insert, delete, or replace. Use DP.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.