is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
Basically, we have a number:
- Chris September 07, 2012xxxxxxxx
And we try to check whether each bit is set or not. So we start off with the extreme right (least significant) bit, 0x01, which will be 00000001 (in case of an eight bit number). Remember: regardless of the number of bits of the number, the LSB will always be 1 for 0x01.
Now we bitwise AND it.
xx x xx xxx
&00000001
If the last bit is 1 then we should get this same 0x01 number back.
The logic is the same for the rest of the bits. To get them, we simply left shift the mask every time by 1.
And once the mask is 10000000, and then it is shifted again, it becomes 00000000.
Thus mask is not non-zero any longer, and quits the while loop.