Solving Reverse Integer in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

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

Example 1:

Input: 123
Output: 321

Example 2:

Input: -123
Output: -321

Example 3:

Input: 120
Output: 21

See the full details of the problem Reverse Integer at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go