Surya Software Interview Question

Write a program for the below input and output: Input: aaaabbcccd Output: a4b2c3d1

Interview Answer

Anonymous

Oct 4, 2022

int main() { string s;cin>>s; int n=s.size(); char ch=s[0]; int cnt=1; for(int i=1;i

5