Staff Engineer Interview Questions

5,857 staff engineer interview questions shared by candidates

Attended an interview with National Instruments(NI) recently. Gave 3 coding rounds Round 1: Online coding test where 2 questions were asked and the duration was 2 Hrs. question 1: Given an archer. He would not stop shooting arrows until and unless his average is more that 9. Score for few shots were given and we had to calculate the minimum number of shots he would have to play to get an average of 9.5 or more. question 2: an array is given in which only 2 numbers can be swapped at a time. how many distinct arrays can be formed by this wat ex: array[2,3,2,3,3] result: 7 Rpund 2: It was an online interview in which the interviewer gave 2 questions which t=were to be explained and solved question are as below: https://www.geeksforgeeks.org/minimum-number-platforms-required-railwaybus-station-set-2-map-based-approach/ https://www.geeksforgeeks.org/search-an-element-in-a-sorted-and-pivoted-array/ Round 3: I got stuck with one question and could not proceed much The question was based on preferential voting algorithm http://numerical.recipes/whp/ky/kemenyyoung.html Since I could not solve this question completely I was not taken for further rounds
avatar

Staff Software Engineer

Interviewed at National Instruments

3.7
Aug 4, 2020

Attended an interview with National Instruments(NI) recently. Gave 3 coding rounds Round 1: Online coding test where 2 questions were asked and the duration was 2 Hrs. question 1: Given an archer. He would not stop shooting arrows until and unless his average is more that 9. Score for few shots were given and we had to calculate the minimum number of shots he would have to play to get an average of 9.5 or more. question 2: an array is given in which only 2 numbers can be swapped at a time. how many distinct arrays can be formed by this wat ex: array[2,3,2,3,3] result: 7 Rpund 2: It was an online interview in which the interviewer gave 2 questions which t=were to be explained and solved question are as below: https://www.geeksforgeeks.org/minimum-number-platforms-required-railwaybus-station-set-2-map-based-approach/ https://www.geeksforgeeks.org/search-an-element-in-a-sorted-and-pivoted-array/ Round 3: I got stuck with one question and could not proceed much The question was based on preferential voting algorithm http://numerical.recipes/whp/ky/kemenyyoung.html Since I could not solve this question completely I was not taken for further rounds

Question on allocating memory pointers inside a function. A pointer variable is passed as a parameter to a function. Memory allocation is done inside the function for the pointer using malloc. After coming out of the function, will the pointer still retain this address in the main program?
avatar

Staff Engineer

Interviewed at Broadcom

3.3
Jun 28, 2012

Question on allocating memory pointers inside a function. A pointer variable is passed as a parameter to a function. Memory allocation is done inside the function for the pointer using malloc. After coming out of the function, will the pointer still retain this address in the main program?

Viewing 51 - 60 interview questions

Glassdoor has 5,857 interview questions and reports from Staff engineer interviews. Prepare for your interview. Get hired. Love your job.