Code Generator

Disha has a string $S$. In one second, Disha can choose a subsequence from $S$ that make the word “code” and remove it from the string. The process will be continued until she can’t choose a subsequence that make the word.


This is a companion discussion topic for the original entry at https://toph.co/p/code-generator