Please give me the solution i am not able to solve this question or give me some hint.
I am not able to do this
let temp be a temporary string created, and str is input string then:
for(i=0 to length) {
// pushing ith char of str in temp
temp.push_back(str[i]);if(last letter) print temp; else if(str[i+1] is a capital letter){ print temp; temp.clear(); } }
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.