Attended an interview with National Instruments(NI) recently.
Gave 3 coding rounds
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
It was an online interview in which the interviewer gave 2 questions which t=were to be explained and solved
question are as below:
I got stuck with one question and could not proceed much
The question was based on preferential voting algorithm
Since I could not solve this question completely I was not taken for further rounds
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.