You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Given two strings s and t. Find the minimum number of operations that need to be performed on str1 to convert it to str2. The possible operations are:
#Insert a character at any position of the string.
#Remove any character from the string.
#Replace any character from the string with any other character.
def edit(s,t,m,n):
dp = [[0 for x in range(n + 1)] for x in range(m + 1)]