← 返回 pinterest 的题目列表Minimum Copies of a String
类型:online_judge
Given a string a, return the minimum number of copies needed to build string b. You are allowed to 1) either copy the whole string a, or 2) delete a single letter. Implement the optimal solution in terms of time and space.
Example
Input
abc abc