Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 368 Bytes

File metadata and controls

21 lines (12 loc) · 368 Bytes

Reverse string

Instructions

Given a string implement a function which returns a reversed copy of that string.

Challenge | Solution

Limitations:

Don't use Ruby String.reverse function

Examples

reverse_int('apple') == 'leppa'

reverse_int('hello') == 'olleh'

reverse_int('Greetings!') == '!sgniteerG'