当前位置:网站首页>Leetcode 1328. Destroy palindrome string (yes, solved)
Leetcode 1328. Destroy palindrome string (yes, solved)
2022-07-19 11:30:00 【I'm not Xiao Haiwa~~~~】

Give you a palindrome string composed of lowercase English letters palindrome , Please put the One The character is replaced by any lowercase English letter , Make the result string Dictionary order is the smallest , And No Palindrome string .
Please return the result string . If you can't do it , Returns a Empty string .
If two strings are the same length , So the string a Dictionary order ratio string b Small can be defined as : stay a and b Appear in a different first position , character string a Characters less than strictly b The corresponding character in . for example ,"abcc” Dictionary order ratio “abcd” Small , Because the different first position is in the fourth character , obviously ‘c’ Than ‘d’ Small .
Example 1:
Input :palindrome = "abccba"
Output :"aaccba"
explain : There are many ways to make "abccba" Not a palindrome , for example "zbccba", "aaccba", and "abacba"边栏推荐
- Unity3d read mpu9250 example source code
- Codeforces - 587e (linear basis + segment tree + difference)
- Chapter 1 of creating virtual machine (vmvare virtual machine)
- LeetCode 558. Intersection of quadtree
- TCP拥塞控制详解 | 7. 超越TCP
- Tire Defect Detection Using Fully Convolutional Network-论文阅读笔记
- Sword finger offer II 041 Average value of sliding window
- 夢想CMS 前臺搜索SQL注入
- How to change and reset forgotten root password in RHEL 9
- Leetcode 1252. 奇数值单元格的数目
猜你喜欢
随机推荐
Conversion of unity3d model center point (source code)
A curated list of awesome Qt and QML
A fastandrobust convolutionalneuralnetwork-based defect detection model inproductqualitycontrol-閱讀筆記
QT two overloaded qlistwidget control objects implement selectitem drag drag
LeetCode 745. 前缀和后缀搜索
Data Guard Broker的概念和Data Guard Broker的配置过程
Learning outline of the column "MySQL DBA's magic road"
Category imbalance in classification tasks
TCP拥塞控制详解 | 7. 超越TCP
每日刷题记录 (二十六)
565. 数组嵌套 : 常规模拟题
Mpu9250 ky9250 attitude, angle module and mpu9250 MPL DMA comparison
公网连接MySQL实例的解决方案
Dream CMS Front Office Search SQL Injection
The concept of data guard broker and the configuration process of data guard broker
An error, uncaught typeerror: modalfactory is not a constructor
Dynamic memory allocation problem
XSS. haozi. Me brush questions
Powercli script performance optimization
动态内存分配问题








![Some methods of early MCU encryption [get data in the comment area]](/img/14/8e1dcb799d8a3c0aefcac09be9dc51.png)
