Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 305 Bytes

File metadata and controls

14 lines (9 loc) · 305 Bytes

Reverse Integer (Easy 7)

Given a 32-bit signed integer, reverse digits of an integer.

Solution:

Click here Iterate over digit with mod 10, add digits to result. O(log n) time. O(1) space.



Installation

Run make to run python and Swift files.