📜  c#代码示例中的字符串缩减

📅  最后修改于: 2022-03-11 14:49:08.053000             🧑  作者: Mango

代码示例1
Input: str = "aaabccddd"
Output: 3
Following are sequence of operations:
aaabccddd -> abccddd -> abddd -> abd

Input: str = "aa"
Output: 1