网站首页
编程语言
数据库
系统相关
其他分享
编程问答
2730
2024-12-16
[LeetCode] 2730. Find the Longest Semi-Repetitive Substring
Youaregivenadigitstringsthatconsistsofdigitsfrom0to9.Astringiscalledsemi-repetitiveifthereisatmostoneadjacentpairofthesamedigit.Forexample,"0010","002020","0123","2002",and&quo