Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Palindrome Detector | Text Analysis & Simple Ciphers
C# Strings & Text Processing

bookChallenge: Palindrome Detector

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 2
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Palindrome Detector

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 2
single

single

some-alt