Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Palindrome Detector | Text Analysis & Simple Ciphers
C# Strings & Text Processing

bookChallenge: Palindrome Detector

Завдання

Swipe to start coding

Write a function that determines if a sentence is a palindrome, ignoring spaces, punctuation, and case.

  • Remove all characters from the input string that are not letters or digits.
  • Convert all remaining characters to lower case.
  • Check if the resulting string reads the same forward and backward.

The function must return true if the cleaned string is a palindrome, and false otherwise.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 2
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Palindrome Detector

Свайпніть щоб показати меню

Завдання

Swipe to start coding

Write a function that determines if a sentence is a palindrome, ignoring spaces, punctuation, and case.

  • Remove all characters from the input string that are not letters or digits.
  • Convert all remaining characters to lower case.
  • Check if the resulting string reads the same forward and backward.

The function must return true if the cleaned string is a palindrome, and false otherwise.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 2
single

single

some-alt