Open In App

National Instruments Interview Experience | Set 1 (Written Test)

Last Updated : 11 Apr, 2023
Like Article

Hi, Recently i have taken written test from “National Instruments”, Please check the following questions.  Question 1) Brand, Coop and Murph are scientists and are conducting n distinct experiments of various difficulties. All three want to do the experiments in the order of the difficulty of the experiment but there’s a catch. They are currently in different time dimensions but are connected by one thing – gravity! If at least two of them end up doing the experiment in the same order then due to gravitational anomaly all the experiment will fail. Now given the number n and a list of difficulties di for each experiment, is there a way to order the experiments such that:      All 3 do the experiments in the order of difficulty from least difficult (denote by a lesser difficulty value) to most difficult.      The order of these experiments should be unique i.e no two scientists can do the experiments in the same order.

 Input: 1 <= n <=2000, 1 <= di <=2000 

Output: YES or NO

 Question 2) Skynet has grown to become the dominant force on earth and has almost completely wiped out the human race. Skynet has been building robots ever since it’s inception and has been updating it’s models every year while making them better. Skynet wants to annihilate humanity completely. It plans to remove one last band of humans lead by John Connor. Skynet thinks it can destroy these humans using only two of it’s robots. But Skynet doesn’t want to send two robots with the same model number lest John Connor finds out a weakness in that model and easily destroy both of them. Skynet has at its disposal N robots and to save space Skynet has stored information about pairs of robots belonging to the same model. If it doesn’t have any info stored for a particular robot then it is implied that the robot is the only one in that model. Given these constraints, in how many ways can Skynet pick two robots to destroy John Connor and his rag tag group of humans. Inputs N – Total number of robots. Each robot is assigned a number from 0 to N-1 P – Number of pairs for which Skynet has information This is followed by P pairs. Each pair has two numbers P1 and P2 each where 0<=P1<=N-1 and 0<=P2<=N-1 and P1 != P2 Output Number of ways in which Skynet can select 2 robots such that both the robots are different models. Example Input: 4 2 0 1 2 3 Example Output: 4 Explanation: Here robots 0 and 1 are of one model, say model A. And 2 and 3 are of another model, say B. Therefore the total number of possibilities of picking 2 robots such that no two robots are of the same model are – (0, 2), (0, 3), (1, 2) and (1, 3) = 4

Previous Article
Next Article

Similar Reads

National Instruments Interview Experience | Set 3 (Programming Test)
There were two questions. Q 1. Given N and N elements Find the number of distinct sums. For example: 3 1, 2, 3 Possible sums of all subarrays: 1, 2, 3, 3, 5, 6. Return Value: 5 (Distinct sums are: 1, 2, 3, 5, 6) Q 2. Given a string S, and a matrix M of characters. find if S exist in M or not. Test case: abc 3 3 a v f g b e c b e Answer: (0, 0) (1,
1 min read
National Instruments Interview Experience | Set 2
Interplanetary trade: Hober Mallow wants to setup an inter-galactic trade which would allow trade between different planets. Each planet has its own set of currencies in which they trade. As there are too many currencies, Hober decided to declare a set of M currencies (numbered from 1 to M) as the official currencies that can be used to trade betwe
4 min read
National Instruments Interview Experience | Set 4 (On-Campus)
Round 1: Written Test Duration: 75 minutes Around 250 students attended the written test. There were 9 descriptive questions; we have to write the answer on sheet. No negative marking. 3 C language questions: All are finding the output of given code; 1 array based question, 1 linked list and 1 recurrence function. 1 Network question: Finding the nu
4 min read
National Instruments Interview Experience (On-Campus)
ProfilePost Grad Tier-I College Round - 1 (OA Round)It is an Online Assessment Round. I received an Email about this round and the round was taken place in a proctored manner. This Round generally consists of 2 coding questions and the difficulty of this round is medium - hard.. level.Question 1 -&gt; Given a string and a set of (m * 2) matrix wher
5 min read
National Instruments Interview Experience (Off-campus)
Hiring was for Internship. The first round was a coding test on HackerEarth. There were two questions. Both carried 100 marks each. 1.Min-Max Weighted Edge Given a tree with N nodes and N- 1 bidirectional edges, and given an integer S. Now, you have to assign the weights to the edges of this tree such that: 1. the sum of the weights of all the edge
7 min read
National Instruments(NI) Interview Experience for Staff Software Engineer
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
1 min read
National Instruments Interview Experience (On-Campus)
Content has been removed on Author's request.
1 min read
National Instruments Interview Experience for SDE Internship
This internship is from January to June. It consists of 3 rounds. It was an on-campus placement. 1st roundIt was an online assessment test. In this round, 20 fundamental MCQ questions.20 Quantitative Aptitude questions.1 fundamental DSA question. 2nd round It was a face-to-face technical interview on campus. In this, he asked me some questions like
1 min read
National Instruments Interview Experience For SDE Internship
This internship is for July-Dec. It consists of 3 rounds. 1st round It was an online assessment test. In this round, there were two DSA questions The first question was Snake and Ladder ProblemThe second question was a medium-level map problem.2nd round It was a virtual interview. In this round, the interviewer has two DSA questions. The first ques
1 min read
National Instruments [NI Systems] Interview Experience For Software Technician Internship
I am currently pursuing an MCA from CMR University. I will share my first interview experience during my undergraduate course BCA. Everyone has two types of interview fears. One is getting rejected, which is obvious and common among everyone, and the other is how to face the interviewer and his questions. We think we don't know much, we are not kno
4 min read