文字列の反転

文字列の反転

与えられた文字列を反転します。
文字列の反転を深掘りしましょう!

文字列を反転させる14通りの方法を紹介しながら、Unicodeコードポイント、書記素、スタックとヒープの割り当て、ポインターなど、さまざまな話題を探ります。JeremyとErikと一緒に、くつろぎながら45分間の学習を楽しみましょう。

説明

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:

  • Turn "stressed" into "desserts".
  • Turn "strops" into "sports".
  • Turn "racecar" into "racecar".