0

"Conditonal" output

I assume that my code is right but help me make a conditional output (where i can use only one of the printf's) Ex:abababA O: A = 1 Ex:abababAB O: A = 1 B = 1 https://code.sololearn.com/cqPiYQ70bvp6/?ref=app

25th Apr 2020, 7:25 AM
Kool
Kool - avatar
2 odpowiedzi
+ 2
What is A and B? I viewed your code and it searches for least and second least frequent character. So I don't understand what you mean A and B here.
26th Apr 2020, 5:48 AM
Ipang
0
Ipang A B the minimum occurring character. I just want to know how to make it an conditional statement where I can use Either of the two printf's
27th Apr 2020, 3:08 AM
Kool
Kool - avatar