Interview Solution

If McDonalds were run like a software company, one out of every hundred Big Macs would give you food poisoning, and the response would be, ‘We’re sorry, here’s a coupon for two more.’ “ Mark Minasi

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.