Skip to content

Latest commit

 

History

History

reverse

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Reverse Int

Instructions

Given an integer n, return an integer that is the reverse ordering of digits.

Challenge | Solution

Examples

reverse_int(15) # 51

reverse_int(981) # 189

reverse_int(500) # 5

reverse_int(-15) # -51

reverse_int(-90) # -9