Hello,
Can you please help me figure out where the problem in the logic is occuring of this question(see link for the question). See my code also.
Thanks
Basics of String Manipulation Tutorials & Notes
#include <iostream>#include<cstring>using namespace std;void decrease(int a[],int x);void arrange(string s,int n,int m){int a[m-n];for(int i=n;i<=m;i++){a[i-n]=s[i];}decrease(a,m-n);for(int i=0;i<n;i++){cout<<s[i];}for(int i=n;i<=m;i++){
Read more… (35 words)