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) (2, 0)
All 8 neighbors considered.
Solved 1st with 100% success, and in 2nd 14/16 cases were passing.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Recommended Posts:
- National Instruments Interview Experience | Set 1 (Written Test)
- National Instruments Interview Experience | Set 2
- National Instruments Interview Experience | Set 4 (On-Campus)
- National Instruments Interview Experience (Off-campus)
- National Instruments Interview Experience | Set 5 (On-Campus - Internship)
- TCS Ninja National Qualifier Test 2020 Interview Experience ECE
- TCS Ninja Interview Experience from National Qualifier Test 2018 Delhi Region
- National Instruments (NI Tech) Software Engineer (For 1.5 years experienced)
- TCS National Qualifier Test Kolkata 2018 Interview
- Wipro National Elite Talent Hunt 2019 Interview Experience
- Wipro National Elite Talent Hunt 2019 Interview Experience
- Interview Experience with Sandisk for SD Card team (C Programming)
- Libsys interview Experience (On Campus Programming Trainee)-2018
- InfyTQ Interview Experience (Upgradation Test)
- Citrix Interview | Set 2 (Written Test Experience)



