SapientNitro Interview Experience | Set 3 (On-Campus)
First Round : Online Round
Second Round : Tech + HR interview
First Round :
Online test of basic aptitude questions and technical questions
There were puzzles and programs
1. Given 10 coins, create as maximum number of lines consisting of 4 coins each. (Answer : make a star figure )
2. Two trains are on the same track a distance 100 km apart heading towards one another, each at a speed of 50 km/h. A fly starting out at the front of one train, flies towards the other at a speed of 75 km/h. Upon reaching the other train, the fly turns around and continues towards the first train. How many kilometers does the fly travel before getting squashed in the collision of the two trains? (easy but tricky) for solution check here : http://mathworld.wolfram.com/TwoTrainsPuzzle.html and some more puzzles Practice them.
3. write a program to pairwise swap nodes in a linked list (not their data)(check boundary condition properly).
4. program to find height of a binary tree.
2. Project and my role.
I Hope my experience will help you, and Best of Luck from my side. 🙂
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Login to comment...