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

bookChallenge: Palindrome Detector

Aufgabe

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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Palindrome Detector

Swipe um das Menü anzuzeigen

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 2
single

single

some-alt