Frage im Vorstellungsgespräch bei Morgan Stanley

Algorithm to reverse an integer

Antwort im Vorstellungsgespräch

Anonym

3. Nov. 2017

Depending on the language, there are different ways to do this... I would convert integer to string, perform a reverse property on the string, then convert back to an integer and output the value