返回顶部
摘要: T1 5956. 找出数组中的第一个回文字符串 题目描述:给你一个字符串数组,找出第一个是回文的字符串。 思路:遍历即可 时间复杂度:\(O(\sum|s|)\) 参考代码: class Solution { public: string firstPalindrome(vector<string> 阅读全文
posted @ 2021-12-19 13:30 cherish-lgb 阅读(23) 评论(0) 推荐(0) 编辑