Question: In c++ recursion only this code works for goodbye and yyuu but it doesnt work for aaaa. Can You fix the problem with substr? NormalNo
NormalNo Spaci... Headi Il Retuns a string where the same characters next each other in /l string n are separated by "" Il Il Pseudocode Example: llpairMinus('goodbye")->"go-odbye // pairMinus(yyuu")y yu-u // pair Minus("aaaa") => "a-a-a-a" sting pairMinus(string n) if(n.length0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
