Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 309 Bytes

File metadata and controls

21 lines (12 loc) · 309 Bytes

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