Round 1: Aptitude cum Technical Round
Online coding and aptitude test on hacker rank.
The first round had 20 Aptitude MCQs (20 min) and 15 Technical MCQs (15 min) with +1 and -0.25 marking schemes. The MCQs covered topics the included – DSA, Operating Systems, C, C++, Java basics.
After this, there were 2 coding questions (45 min). Minimum cut off was set for each section. One question was of the Game Theory and other was of Dynamic Programming.
Questions in the Coding Round:
- A and B play a game. They are given an array of positive numbers. Each player in his turn picks up 2 numbers from the array such that the difference of the numbers does not exist in the array. He then places the difference into the array too thus increase the array count by 1. Then the next player repeats the same process. The game continues till there are no 2 numbers such that difference does not exist in the array. The one who’s not able to choose numbers loses. If A starts the game and the game proceeds optimally, find who’ll win the game.
- Given a string containing only lowercase alphabets, you have to convert it into a string such that it contains only vowels by doing minimum number of operations. In one operation, you could select a substring always starting from index 0, and move that substring forward or backward. Example of rolling forward or backward are given: Rolling Forward Input- axzf Let index chosen be 0 to 3 and moving it forward Output- byag Rolling Backward Input – axze Let index chosen be 0 to 2 and moving it backwards Output- zwyd 124 people were shortlisted to give this test. Only 12 were shortlisted for round 2. Round 2: (Personal Interview) This round was purely based on questions from Data structures and OOPs concepts:
- Print the left view of binary tree. https://www.geeksforgeeks.org/dsa/print-left-view-binary-tree/
- Find the common ancestor of two nodes in binary tree. https://www.geeksforgeeks.org/dsa/lowest-common-ancestor-binary-tree-set-1/
- Detect Loop in linked list and print its length.
- I had to explain the logic to the interviewer and then write the code for above written questions.https://www.geeksforgeeks.org/dsa/detect-and-remove-loop-in-a-linked-list/ https://www.geeksforgeeks.org/dsa/find-length-of-loop-in-linked-list/
- What is polymorphism?
- Difference in function overloading and overriding.
- What is virtual function?
- If parent class is A with member function void calculate () and child class is B with member function void calculate(). B b; A *a= &b; a.calculate(); Tell calculate() function of which class will be called. If A has calculated() declared virtual. Then what will be the output?
- What is pure virtual function?
- What are abstract classes?
- Difference in malloc and calloc.
- Allot memory to single int variable using calloc.
- Tell me about yourself.
- Why Arcesium?
- How many matches are played in a knockout game with n teams? Show the calculation.
- SQL Query questions like: Write SQL query for displaying the name of student who scored highest marks. Two tables were there: Table1 (Roll_no, Student name) Table2 (Roll_no, Marks)
- Write pseudocode for insertion sort.
- Tell about yourself.
- Where do you see yourself after 2 years?
- What is your city's population? How many people would be using Facebook at this moment (1 pm) in your city?
- Difference between http and https.
- Tell about the certificates for https.
- Solve this puzzle in 30 seconds. There are 12 identical balls. One is heavier than the others. Find the heavier one.