Back to Questions

Edit Distance

143.6K viewsAsked 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.

Practice with This Question