Stack Bash - Master data structures and algorithms

Reverse a string

Let's say you're given a string. Write a function that returns the reversed version of the string.
For example, passing bitcoin in to your function should return nioctib.

Try it first


6 Essential Strings Coding Interview Problems

Master Strings by trying the coding challenges below.
  1. 1.Reverse StringEasy
  2. 2.AnagramEasy
  3. 3.Reverse wordsMedium
  4. 4.String matchMedium
  5. 5.CompressionMedium
  6. 6.One edit awayHard

Want to confidently pass your next coding interview?

Stack Bash helps new and veteran software engineers master data structures and algorithms for technical interviews.