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?
For quite a while now I've been using my own hosted nextcloud server for both mobiles and PCs/laptops. Also all my personal systems run windows 11 pro for workstation or windows 11 ltsc. All using local accounts. What annoys me is that MS keeps trying to force you to "use this (MSA) account system wide". Everything at home is on my own DC/AD. Why is this even a question? Why is MS forcing this onto people? Sure for windows home versions do whatever you want. But for pro/ pro for workstation or ltsc no. Just don't.
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