Легчайшая
Code
# Code
```cpp []
class Solution {
public:
    string makeSmallestPalindrome(string s) {
        int n = s.length();
        for(int i=0;i<n/2;++i){
            char* left = &s[i];
            char* right = &s[n - i - 1];
            char diff = *right - *left;
            if(diff == 0) continue;
            if(diff > 0) *right = *left;
            else *left = *right;
        }
        return s;
    }
};
```
['C++']