Esplora 14 modi diversi di invertire una stringa, toccando vari argomenti tra cui i code point Unicode, i grafemi, le allocazioni sullo stack e sullo heap e i puntatori. Rilassati e goditi 45 minuti di apprendimento con Jeremy e 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".Non l'hai ancora completato in nessun linguaggio.