C++ || EASY CLEAN || SHORT CODE
\n\n# Code\n\nclass Solution {\npublic:\n    string getSmallestString(string s, int k) {\n        int n=s.size(),c=0;\n        string f=s;\n        for(int i=0;
\n\n# Code\n```\nclass Solution {\npublic:\n    string getSmallestString(string s, int k) {\n        int n=s.size(),c=0;\n        string f=s;\n        for(int i=0;i<n;i++)\n        {\n            for(char g=\'a\';g<=\'z\';g++)\n            {\n                int m=min(abs(g-s[i]),26-abs(g-s[i]));\n                if(m+c<=k)\n                {\n                    c+=m;\n                    f[i]=g;\n                    break;\n                }\n            }\n        }\n        return f;\n    }\n};\n```
['C++']