刚做了一道题挺有意思# JobHunting - 待字闺中
p*2
1 楼
有两个字符串s 和 u, 问最少的步数从s转换倒u。
转换的方法,
从s任意取一个substring,然后可以执行以下三种操作
Insert one letter to any end of the string.
Delete one letter from any end of the string.
Change one letter into any other one.
也就是说从s找一个substring,使得以上三种操作的步数最小,转换倒u。
转换的方法,
从s任意取一个substring,然后可以执行以下三种操作
Insert one letter to any end of the string.
Delete one letter from any end of the string.
Change one letter into any other one.
也就是说从s找一个substring,使得以上三种操作的步数最小,转换倒u。