jzoffer

package
v0.0.0-...-6c0d317 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

* @lc app=leetcode.cn id=125 lang=golang * * [125] 验证回文串 * * https://leetcode.cn/problems/valid-palindrome/description/ * * algorithms * Easy (46.90%) * Likes: 557 * Dislikes: 0 * Total Accepted: 391K * Total Submissions: 833.9K * Testcase Example: '"A man, a plan, a canal: Panama"' * * 给定一个字符串,验证它是否是回文串,只考虑字母和数字字符,可以忽略字母的大小写。 * * 说明:本题中,我们将空字符串定义为有效的回文串。 * * * * 示例 1: * * * 输入: "A man, a plan, a canal: Panama" * 输出: true * 解释:"amanaplanacanalpanama" 是回文串 * * * 示例 2: * * * 输入: "race a car" * 输出: false * 解释:"raceacar" 不是回文串 * * * * * 提示: * * * 1 * 字符串 s 由 ASCII 字符组成 * *

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL