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

bookChallenge: Palindrome Detector

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 2
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

Can you explain this in simpler terms?

What are the next steps I should take?

Can you provide an example?

close

bookChallenge: Palindrome Detector

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 2
single

single

some-alt