Microsoft interview question

Reverse an integer

Interview Answer

Anonymous

Mar 31, 2019

1- use modulo 10 to get the least significant digit 2- multiply result with 10 and add the least significant digit 3- keep doing it until done with all numbers (coefficient is zero )