I just came back from a MS interview and I was asked to reverse integer numbers. Needless to say I completely bombed the question. You can't use toString () methods and use the reverse string function call ( I tried to do that). So how do you reverse integer numbers mathematically?! Say I have an integer 123, how do I mathematically manipulate it so it comes out to be 321?
What criteria are you looking at to claim YouTube and Steam are monopolies? I don't follow the logic. Something being the de facto standard in an industry does not make it a monopoly.
Question
NtOrZor
I just came back from a MS interview and I was asked to reverse integer numbers. Needless to say I completely bombed the question. You can't use toString () methods and use the reverse string function call ( I tried to do that). So how do you reverse integer numbers mathematically?! Say I have an integer 123, how do I mathematically manipulate it so it comes out to be 321?
Link to comment
https://www.neowin.net/forum/topic/287002-reversing-integer-numbers/Share on other sites
9 answers to this question
Recommended Posts