They conducted written test in HackerRank and an hour duration. They asked me to implement the functions for the following two problems.
1) Maximum product Sum of an Array.
2) Building bridges problem.
Technical Interview 1:
He is very friendly and given hints to me while solving problems.
1) First he asked me about an overview of my current project then most challenging thing faced in the project. After my response, he asked me what you learnt from that challenging thing.
2) Given an array of integers of the size of n, it contains zeros in random positions, we need to move all zeros to end of the array in a single scan without extra space.
3) Merging point of two linked lists.
4) questions related to programming languages
a) about inheritance
b) about classes and interfaces
c) abstract classes and virtual functions, …
5) He given a situation and asked me to design required classes and functions which are useful to program that situation.
6) The last question is given a number we need to find the next nearest number in 2^n.
input: 127 output: 128
input: 129 output: 256
Technical Interview 2:
He asked me very simple questions, but he wants to cover each and every corner case.
1) Reverse group of elements in a linked list
2) perform push,pop and min operations of stack in O(1) time.
1) Practice on paper, don’t practice on the computer.
2) While practicing, we should try do the question our own then see the answer, don’t go directly to the answer.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
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.