Make it easssy
Intuition\nSo Use Hash Map.\n# Approach\nFirst make the array of a to z now for each transformation change the value of the characters and at end sum up the val
# Intuition\nSo Use Hash Map.\n# Approach\nFirst make the array of a to z now for each transformation change the value of the characters and at end sum up the values which will be your length.\n# Code\n```cpp []\nclass Solution {\npublic:\n    long long mod=1e9 + 7;\n    int lengthAfterTransformations(string s, int t) {\n        vector<long long> freq(26,0);\n        for(auto c:s )\n        {\n            freq[c-\'a\']++;\n        }\n        while(t--)\n        {\n            long long z=freq[25];\n            for(int i=24;i>=0;i--)\n            {\n                freq[i+1]=freq[i];\n                freq[i]=0;\n            }\n            freq[0]+=z;\n            freq[0]%=mod;\n            freq[1]+=z;\n            freq[1]%mod;\n        }\n        long long ans=0;\n        for(auto f : freq)\n        {\n            ans+=f;\n            ans%=mod;\n        }\n    return ans;\n    }\n};\n```
['C++']