Senior Software Engineer Interview Questions in San Jose, CA | Glassdoor

Find jobs for Senior Software Engineer

Senior Software Engineer Interview Questions in San Jose, CA

"Senior software engineers are the most experienced member of a software team and usually carry the most responsibility and authority of that team. Because of this, interviews will be designed to find candidates who have expert knowledge of the field and years of experience as a software engineer. Expect to be asked tough technical questions and to give examples of previous projects that you have worked on."

Top Interview Questions

Sort: RelevancePopular Date

Write a probability formula to tell how many bits will be changed when 1 is added to a 32 bit binary number.

11 Answers

The probability of N bits being changed is (1/2)^N. The reason: the number of bits that will change depends on the position of the first zero that appears in the number. If the first zero is at the LSB, only one bit changes; if it is in the third position, the three bits upto the first zero change. Now, it boils down to the probability of finding the first zero. Assuming that the zeros and ones appear with equal probability in a given number, the probability of finding the first 0 in the Nth position is (1/2)^N. For more, look up the Geometric Random Variable.

I think that you need to take into account that if you want to toggle 2 bits, you can only do if you flip bits from position 0..30. Toggling bit 31 is only going to toggle this bit no matter what. Therefore, you need to multiply (33-N)/32 to your proposed result, to keep this into account.

@Mythreya's analysis is correct but incomplete. To get the expected value, you have to multiply the number of bits by their probability. Answer is Sigma{k/(2^k)} for k = 1 to 32.

Define a macro for byte offset of a given field in a structure.

3 Answers

Implement int value bit counting.

2 Answers

what is the best way to sort millions of records

2 Answers

find the median of million rows in each of the 1000 servers.

2 Answers

Show a data structure for LRU cache.

2 Answers

Find the sqrt of a number

3 Answers

Find the words used in some text and report by word length and how often each word appears.

1 Answer

How would I design a "data-pump" queueing structure for handling the producer-consumer problem?

1 Answer

What common ASM instructions can you think of, and can you generate the assembly output for a simple C for-loop, ex: for(int i = 0; i < 10; i++); Asked by the hiring mgr

1 Answer