Uses Reverse

स्ट्रिंग को उलटिए
स्ट्रिंग को उलटिए Crystal में
module ReverseString
  def self.reverse(input : String) : String
    input.reverse
  end
end

This is the simplest and most exemplary solution, using the built-in String#reverse method. Internally, it uses a very optimized implementation, using a buffer and working directly on the string's bytes. If curious, check the source code.

30 सितंबर 2026 · क्या यह आपके काम आया?