Entdecke 14 verschiedene Wege, einen String umzukehren, und tauche in Themen wie Unicode-Codepoints, Grapheme, Stack- vs. Heap-Allokationen und Pointer ein. Lehne dich zurück und genieße 45 Minuten Lernen mit Jeremy und Erik.
Reversing strings (reading them from right to left, rather than from left to right) is a surprisingly common task in programming.
For example, in bioinformatics, reversing the sequence of DNA or RNA strings is often important for various analyses, such as finding complementary strands or identifying palindromic sequences that have biological significance.
Your task is to reverse a given string.
Some examples:
"stressed" into "desserts"."strops" into "sports"."racecar" into "racecar".Du hast sie bisher in keiner Sprache gelöst.