Google Interview Report
- 0of 0 votes
AnswersWrite function that takes two integers m and n respectively. The function should flip the nth bit of m, counting from the LSB and return the resulting value.\
- llmorex February 05, 2012 in United Kingdom
By flip, the interviewer meant change 0 to 1 and 1 to 0. For instance, if you were passed in 8 and 3.
Convert 8 to binary and you have 1000, now we flip the 3rd bit and we have 1100, then we convert this back to decimal(which would be 12)and return the answer.| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWhat is a process and what is a thread? What are their differences and similarities? Can you have processes in processes? How do you prevent deadlocks?
- llmorex February 05, 2012 in England
NB:: The questions weren't this direct!| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Computer Architecture & Low Level
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.