WLLJQXAFPU5F56E4QDYBJVPWX656Y6LSKJW7YNA3AM2WNKVAANZAC
75XRYEFPRLVR66ADWUUJ4FYDPJZCSMM2JXANOUKQVJMJLFXS2OGQC
count := 0 for i, ch := range input { if prev == ch { count++ if i != len(input)-1 {
count := 0
for i, ch := range input {
if prev == ch {
count++
if i != len(input)-1 {
counter := 0 for i, current := range input { if prev == current { counter++ if i != len(input)-1 { // run the writing part for the last char
counter := 0
for i, current := range input {
if prev == current {
counter++
if i != len(input)-1 { // run the writing part for the last char
if count > 1 { ret.WriteString(strconv.Itoa(count)) count = 1
if count > 1 {
ret.WriteString(strconv.Itoa(count))
count = 1
if counter > 1 { ret.WriteString(strconv.Itoa(counter)) counter = 1
if counter > 1 {
ret.WriteString(strconv.Itoa(counter))
counter = 1
if i == len(input)-1 && prev != ch { ret.WriteRune(ch)
if i == len(input)-1 && prev != ch {
ret.WriteRune(ch)
if i == len(input)-1 && prev != current { // if last char != the previous ret.WriteRune(current)
if i == len(input)-1 && prev != current { // if last char != the previous
ret.WriteRune(current)
prev = ch
prev = current