当前位置:网站首页>HJ85 longest palindrome substring
HJ85 longest palindrome substring
2022-07-30 20:31:00 【fK0pS】
Given a string containing only lowercase letters, find the length of its longest palindrome substring.
The so-called palindrome refers to a left-right symmetrical string.
The so-called substring refers to a string that deletes part of its prefix and suffix (or not)
Data range: string length 1\le s\le 350\1≤s≤350
Advanced:Time complexity: O(n)\O(n) , Space complexity: O(n)\O(n)
The palindrome is
a = a[::-1]
边栏推荐
猜你喜欢
随机推荐
【Codeforces思维题】20220728
Recommendation system: evaluation index [offline evaluation index: RMSE (root mean square error), AUC, precision, recall, F1] [online evaluation: A/B test] [generally required response time <0.5s]
Face-based Common Expression Recognition (2) - Data Acquisition and Arrangement
TensorFlow2:概述
一文2500字手把手教你配置Jenkins自动化邮件通知
MVC模式和三层架构
MySQL ODBC驱动简介
英文字母间隔突然增大(全角与半角转换)
时间复杂度与空间复杂度
MySQL——几种常见的嵌套查询
基于Apache Doris的湖仓分析
Redisson 的分布式锁找不到?
mysql 递归函数with recursive的用法
KEIL问题:【keil Error: failed to execute ‘C:\Keil\ARM\ARMCC‘】
MySQL 删除表数据,重置自增 id 为 0 的两个方式
无法正常访问服务器
【元胞自动机】基于元胞自动机模拟生命演化、病毒感染等实例附matlab代码
Multi-threaded mutex application RAII mechanism
并发与并行的区别
湖仓一体电商项目(四):项目数据种类与采集









