Editorial for RGPC '17 P5 - Scrabble Nuts
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
This problem is simply minimum edit distance, but requires you to calculate the edit distance to all of the prefixes of a word. Given two strings
Using dynamic programming, the time complexity of minimum edit distance is
Time complexity:
Comments