A strange printer can only print a sequence of the same character each turn. At each turn, the printer can print new characters starting from and ending at any place and will cover the original existing characters. Given a string s, return the minimum number of turns the printer needs to print it.
Java
Strange Printer
A strange printer can only print a sequence of the same character each turn. At each turn, the printer can print new characters starting from and ending at any place and will cover the original existing characters. Given a string s, return the minimum number of turns the printer needs to print it.