llmorex
BAN USER
Questions (2)
Comments (5)
Reputation 30
- 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 in England
NB:: The questions weren't this direct!| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Computer Architecture & Low Level - 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 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
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
I would be lying if i said i really did understand that.. What resources can i use to learn bit manipulation in full? I mean books or online tuts
- llmorex February 09, 2012