News for hackers. Stuff that matters.
Re:'Clean your desk': My Amazon interview experience by leeter on Thursday December 08, 2016 @12:39PM (#13132191)
I don't recall the exact question, but I recall they were only looking for the answer that used bit manipulation. Which was not necessarily intuitive in the context.
Re:'Clean your desk': My Amazon interview experience by SilasX on Thursday December 08, 2016 @04:09PM (#13134336)
I know a common one is how to switch the values of two variables without using a temporary third variable. One way (method 2 here [1]) is to use repeated bitwise XORs.

Does that sound like it could be the one?

[1] http://www.geeksforgeeks.org/swap-two-numbers-without-using-...

Re:'Clean your desk': My Amazon interview experience by ekoontz on Thursday December 08, 2016 @03:41PM (#13134091)
Hm, perhaps counting number of bits set to 1 in a multi-byte array?
Re:'Clean your desk': My Amazon interview experience by leeter on Thursday December 08, 2016 @03:56PM (#13134213)
no, bit wise is logical there. I'm thinking it was duplicates or primes or some such.