Staff hardware engineer interview questions shared by candidates
If you have a 600 digit number with only 0's and 1's, and exactly 300 1's, can the number be a square?
I am trying to undersatnd why you say the answer is No. for a 6 bit binary number, of which 3 bits are exactly 1s. 25 and 49 are possible such numbers that happens to be a square... Why can't this possibility extend to a 600 bit binary number?
The answer should be YES: @gustion: your example with 49 (7 pwr2) is correct but with 25 (5 pwr2) is incorrect. 7 in binary is 111 (3 1-bits is half of 6 bits), but 5 in binary is 101 (2 1-bits does not equal half of 6 bits). In general, any binary number with n-bits, half of which are 0's and half are 1's is a square of a binary number with half the number of bits, all being 1-value bits. In addition, the number's magnitude will be n/2-1 1-bits followed by n/2 0-bits followed by the last 1-bit. For example, lets say we have a 16-bit number. The number which will have 8 1-bit and 8 0-bit binary digits and also be a square is: 1111 1110 0000 0001 (7 1-bits followed by 8 0-bits followed by 1-bit) and this number is a square of 1111 1111 Binary number with 600 bits and 300 1-bits will have a magnitude of 299 1-bits followed by 300 0-bits followed by 1-bit, and it will be a square of a 300-bit number with the magnitude of 300 1-bits.
Where do you see yourself in 5 years? Its a tough question to answer especially if you're changing roles to some degree entering a new company. Its hard to know the culture and how you'll fit in. Whether you will want to pursue a managerial role or individual contributor. How you will want to expand your skill set and advance.
I was asked several technical questions that I didn't quite understand. They were related to analog electrical signalling, semiconductor physics and very deep-level input conditioning.
See Interview Questions for Similar Jobs
- Hardware Engineer
- Senior Hardware Engineer
- Senior Software Engineer
- Software Engineer
- Staff Engineer
- Staff Software Engineer
- Senior Staff Engineer
- Principal Engineer
- Engineering Manager
- Senior Engineer
- Research Scientist
- Systems Engineer
- Senior Staff Software Engineer
- Senior Design Engineer
- Product Manager
- Electrical Engineer
- Senior Engineering Manager