当前位置:网站首页>Leetcode 1328. 破坏回文串(可以,已解决)
Leetcode 1328. 破坏回文串(可以,已解决)
2022-07-17 14:27:00 【我不是萧海哇~~~~】

给你一个由小写英文字母组成的回文字符串 palindrome ,请你将其中 一个 字符用任意小写英文字母替换,使得结果字符串的 字典序最小 ,且 不是 回文串。
请你返回结果字符串。如果无法做到,则返回一个 空串 。
如果两个字符串长度相同,那么字符串 a 字典序比字符串 b 小可以这样定义:在 a 和 b 出现不同的第一个位置上,字符串 a 中的字符严格小于 b 中的对应字符。例如,"abcc” 字典序比 “abcd” 小,因为不同的第一个位置是在第四个字符,显然 ‘c’ 比 ‘d’ 小。
示例 1:
输入:palindrome = "abccba"
输出:"aaccba"
解释:存在多种方法可以使 "abccba" 不是回文,例如 "zbccba", "aaccba", 和 "abacba"边栏推荐
- 火箭大机动运动欧拉角解算的探讨
- Resources for physics based simulation in computer graphics
- Powercli script performance optimization
- Microservice online specification
- LeetCode 2319. Judge whether the matrix is an X matrix
- 剑指 Offer II 041. 滑动窗口的平均值
- Rotation in unity3d
- A fastandrobust convolutionalneuralnetwork-based defect detection model inproductqualitycontrol-阅读笔记
- Pytoch realizes multi-layer perceptron manually
- Tire Defect Detection Using Fully Convolutional Network-论文阅读笔记
猜你喜欢

A fastandrobust volutionalneuralnetwork based defect detection model inproductqualitycontrol reading notes

A fastandrobust convolutionalneuralnetwork-based defect detection model inproductqualitycontrol-閱讀筆記

Unity3d 读取mpu9250 例子原代码

LeetCode 558. Intersection of quadtree

Un modèle de détection par défaut basé sur le réseau neuronal évolutif rapide dans le contrôle de la qualité des produits - lire les notes

今日睡眠质量记录79分

E-commerce sales data analysis and prediction (date data statistics, daily statistics, monthly statistics)

web安全入门-部署Snort开源IDS/IPS系统

Avi Deployment Guide (2): overview of AVI architecture

每日刷题记录 (二十六)
随机推荐
委派双亲之类加载器
A curated list of awesome Qt and QML
Deep learning for generic object detection: a survey
委派雙親之類加載器
Unity3d 模型中心点的转换(源代码)
pjudge#21652-[PR #4]到底有没有九【数位dp】
LeetCode 2319. Judge whether the matrix is an X matrix
Detailed explanation of Euler angle, axis angle, quaternion and rotation matrix
To build agile teams, these methods are indispensable
Mysql索引的类型(单列索引、组合索引 btree索引 聚簇索引等)
Definable 6G security architecture
8.固定收益投资
The type of MySQL index (single column index, combined index, BTREE index, clustered index, etc.)
每日刷题记录 (二十六)
Scala's dosing in idea
Ppde Q2 welcome | welcome 22 AI developers to join the propeller developer technical expert program!
Loj#2324-「清华集训 2017」小 Y 和二叉树
火箭大机动运动欧拉角解算的探讨
设置cmd命令提示符窗口的界面语言为英文
Sword finger offer II 041 Average value of sliding window