🎨
CMMobileBook
  • CMoney Mobile Book
  • Git主題
    • Git 基本知識
    • Git 使用方法
    • Git Flow 開發方式
    • Commit Message 規則
    • GitLab + SSH key
    • 相關學習網站
    • 延伸 Bitbucket 操作
  • Scrum主題
    • Scrum 基本知識
  • 程式練習題
    • 前言
    • 物件導向練習
      • StopWatch
    • Foundation 程式練習
      • 合法回文-1 Valid Palindrome
      • Reformat Date
      • Day of the Year
      • Peak Index in a Mountain Array
      • Number of Days Between Two Dates
      • To lower case
      • Two Sum
      • Best Time to Buy and Sell Stock
      • Best Time to Buy and Sell Stock II
    • 條件邏輯練習
      • FizzBuzz
      • Single Number
      • Self Dividing Number
Powered by GitBook
On this page

Was this helpful?

  1. 程式練習題
  2. Foundation 程式練習

合法回文-1 Valid Palindrome

Easy

PreviousFoundation 程式練習NextReformat Date

Last updated 4 years ago

Was this helpful?

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

Note: For the purpose of this problem, we define empty string as valid palindrome.

Example 1:

Input: "A man, a plan, a canal: Panama"
Output: true

Example 2:

Input: "race a car"
Output: false
回文題目
Loading...LeetCode
Logo