Interview Solution

Its hard enough to find an error in your code when you are looking for it; its even harder when you ve assumed your code is error-free. Steve McConnell

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.