664. Strange Printer
LeetCode 664. Strange Printer
Description
Input: "aaabbb"
Output: 2
Explanation: Print "aaa" first and then print "bbb".Input: "aba"
Output: 2
Explanation: Print "aaa" first and then print "b" from the second place of the string, which will cover the existing character 'a'.Tags
Solution

Complexity
Code
Reference
Last updated