Easy cpp
\nclass Solution {\npublic:\nstring getSmallestString(string s, int k) {\nint n=s.size();\nfor(int j=0;j<n;j++){\n char p=s[j];\n for(char c=\'a\';c<=\'z\';c++)
```\nclass Solution {\npublic:\nstring getSmallestString(string s, int k) {\nint n=s.size();\nfor(int j=0;j<n;j++){\n char p=s[j];\n for(char c=\'a\';c<=\'z\';c++){\n int x=s[j]-c;\n int yes=min(x,26-x);\n if(k>=yes) \n {s[j]=min(s[j],c),k-=yes; break;}\n}}\nreturn s; }\n};\n```
[]