Interview Solution

Don’t worry if it doesn’t work right. If everything did, you’d be out of a job. Mosher’s Law

Reverse Integer

Language Java | Level Intermediate | Category Interview Problems | July 24, 2015 4:52 pm

Comments


Interview Problem

Reverse Integer reverses the given integer digits to reverse order. Example x=123 and output y=321.
This algorithm takes the integer value and reverses the order of given integer value.
Example:-
X = 123. The program should return 321.


Output

   					 
Reverse the 1534 integer :4351
Reverse the 1534 integer using String functions:4351

				    

Comments



Please login to add comments.