Découvre 14 façons différentes d'inverser une chaîne de caractères, en explorant des sujets variés comme les points de code Unicode, les graphèmes, les allocations sur la pile et sur le tas, et les pointeurs. Installe-toi confortablement et profite de 45 minutes d'apprentissage avec Jeremy et 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".Tu ne l'as encore terminé dans aucun langage.