Comments

MikeMirzayanov Please look into this matter.

True

I have seen people recommending rating+200 rated problems but x+400. Salute to your determination.

On tagberli → Your Book Recommendation, 4 years ago
+14

Try Reading Manga.

For Number Theory, You can Visit CodeNCode YouTube Channel.

I guess this is one of the best free resource out there.

Ig In your Code it will overflow because of arr[i+2]. Try to traverse from i=n to i>=0 and check if arr[i-2] equal to 0 or not. Then compute sum of other two.

Your code here...
int n; cin>>n;
        string s;  cin>>s;
        string alpha= "0abcdefghijklmnopqrstuvwxyz";
        string ans="";
        for(int i=n-1;i>=0;i--){
            int k= s[i]-'0';
            if(k!=0){
                char a=alpha[k];
                ans+=a;
            }
            else{
                int q=s[i-1]-'0';
                int w= s[i-2]-'0';
                q= (10*w)+q;
                char a=alpha[q];
                ans+=a;
                i=i-2;
            }

            

        }
        // char d=alpha[3];
        reverse(ans.begin(),ans.end());
        cout<<ans<<"\n";
0

YES, we are also facing same problem. Have u got any solution Plz tell.