Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 308 Bytes

File metadata and controls

22 lines (12 loc) · 308 Bytes

Reverse Int

Instructions

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

challenge | solution

Examples

reverseInt(15) // 51

reverseInt(981) // 189

reverseInt(500) // 5

reverseInt(-15) // -51

reverseInt(-90) // -9