← MakeMyTrip questions

Edit Distance with Insert and Delete Only

Filed under MakeMyTrip

Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2, where only insert and delete operations are permitted.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related MakeMyTrip questions

Collected from public candidate posts and coding forums. Updated Nov 2026.