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.
//reaplcebits: takes bits between pos1 and pos2 of input a and put it input b between the
- VathsalaNagaraju February 17, 2016//same positions.
void replacebits(unsigned int a , unsigned int* b,unsigned int pos1, unsigned int pos2)
{
int unsigned tmp , mask , bm;
printf("a==%x b===%x pos1==%x pos2===%x",a,(*b),pos1,pos2);
//swap pos1 and pos2 if pos1 < pos2
if(pos1<pos2){
tmp=pos2;
pos2=pos1;
pos1=tmp;
}
//number of bits in a mask
bm=pos1-pos2-1;
//prepared mask
mask= ((1<<bm) -1) << (pos1-bm);
printf("mask==%x",mask);
*b = ((a&mask)|(*b&~mask));
}