Samsung | OA | Internship
Anonymous User
1197

We are given 2 strings: str1 and str2
We need to make str1 equal to equal2 in minimum number of steps and return it
We can do a step by picking a character from str1 and put it in front.
Example:
`
Input: str1=hlole
str2=hello
Output: 3

str1: eamn
str2: name
Output: 3`

Comments (6)