Skip to content · ⁨Bỏ qua nội dung⁩

Palindrome check · ⁨Kiểm tra palindrome⁩

English

Palindrome check

A palindrome reads the same forwards and backwards. Return true if s does, ignoring case and spaces, so Race car counts. Clean the string first (toLowerCase, remove spaces), then compare characters moving inward from both ends.

Tiếng Việt

Kiểm tra palindrome

Một palindrome đọc giống nhau theo cả chiều thuận và ngược. Trả về true nếu s làm điều đó, bỏ qua chữ hoa/thường và khoảng trắng, vì vậy Race car được tính. Làm sạch chuỗi trước (toLowerCase, xóa khoảng trắng), sau đó so sánh các ký tự tiến vào từ cả hai đầu.

Log in or create account · ⁨Đăng nhập hoặc tạo tài khoản⁩

IGCSE, A-Level & AP