← Morgan Stanley questions

Minimum Cost to Make Two Strings Identical

Filed under Morgan Stanley

Given two strings `str1` and `str2`, and given costs to delete characters from each string, find the minimum cost to make the two strings identical. This is equivalent to finding the minimum weight…

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 Morgan Stanley questions

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