@ TOC
Define a pointer k, and the global pointer is traversed from the beginning.
Exit the loop when it encounters the first one that is different from str[k], and then recurse
char_count(aabb) = ‘2a’ + char_count(bb)
@ TOC
Define a pointer k, and the global pointer is traversed from the beginning.
Exit the loop when it encounters the first one that is different from str[k], and then recurse
char_count(aabb) = ‘2a’ + char_count(bb)