Google interview question

Given the decode function, to implement the encode function: abckkkkkde->abc5xkde For some case: abc3kkkkkde, both encode 3 and kkkkk-> abc1x35xkde

Interview Answer

Anonymous

11 Mar 2015

Not difficult, just take care with the string.

2