Solve 30 questions in 30 minutes. Multiple choice questions. Questions were based on exceptions, inheritance, recursion, bitwise operators, sorting, searching, time complexities, C and Java input/output questions, OS and around 5 aptitude questions.
Most of the questions were basic and can be solved in one minute. If you don’t waste time on lengthy problems, it is easy to score around 25.
Technical round 1
– Questions based on resume and projects.
– Sudoku problem approach (Backtracking). Partially solved.
– Print maximum of k-set of numbers in an array of size n.
10 7 8 5 11 12 3 2
Output: 10 8 11 12 12 12
I told the brute force approach with time complexity O((n-k)*k).
Then I optimized it using max heap of size k which reduced time complexity to O((n-k)*logk).
– Which is the best algorithm for sorting given array : 0 1 2 2 2 1 0 0 1 2
Since all the values are in the range 0-2 use counting sort. I wrote the code and explained time and space complexity.
– Questions based on user interface: HTML, CSS.
– B-trees and its applications.
– When we enter a URL, how is the website opened? Explain DNS lookup.
– Mirror image of a given tree without creating a new tree. Wrote the code using recursion.
– What is a primary key, composite key, foreign key?
Technical round 2
– Explain the database schema for any favorite project.
– Given an array with distinct elements increasing and then decreasing, search for an element and output its index.
E.g.: Input: 2 5 7 11 10 9 8 4 3 1 search for 9.
Used binary search for finding the peak element. Apply binary search on two subarrays (0, peak_index) and (peak_index+1, last_index). As we don’t know which subarray has the element, binary search on both sorted parts separated by peak element. I wrote the code and explained time complexity.
– How is FIFO implemented in OS? I explained about different states of process and queue to implement FIFO.
– What is thrashing?
– If n dice are thrown, print all possible outcomes. I used recursion and wrote the code.
Technical round 3
– Pick your favorite project and draw the ER diagram with associations for that.
– Explain all tables and relations between them. (Primary and foreign keys)
– Given a change in some feature, how would you reflect it in the database? (In chosen project)
– I was asked to write an SQL query based on those tables to find top 5 with the max count.
– Rotate an array (of size n) k times left.
I specified two approaches
Then I was asked to write code for the second approach. After checking my code, he asked what would happen if k>n. I added k%=n.
– If a group of people have some transactions, how many minimum further transactions are required to settle all of them. I used a graph to represent this situation. I wrote code to calculate the profit of each person at the end of all transactions (if loss, negative). Then I told a strategy to settle all of them. He said that I was close to the answer.
– Then I was asked to rate my performance in the interview.
– Tell me about yourself.
– What is your weakness?
– How do you manage both work and life? (I was given a situation)
– What about higher studies and career?
– What are the challenges faced in this particular workshop you attended?
– About internship- What you liked and disliked there?
– Draw a picture about whatever is in your mind (Since I told that I’m good at drawing)
– Write a line about yourself, a line about ServiceNow.
- ServiceNow Interview Experience | Set 5 (On-Campus)
- ServiceNow Interview Experience | Set 3 (On-Campus)
- ServiceNow Interview Experience (On-Campus)
- ServiceNow Interview Experience | Set 4 (On-Campus)
- Goldman Sachs Interview Experience | Set 23 (2+ years Experience for Java Developer Role)
- Microsoft Interview Experience (Full Time 2018 Washington DC - with 2.5 years of experience)
- Oyo Rooms Interview Experience | Set 3 (For Backend Engineer, Experience <=1yrs)
- Arcesium Interview Experience | Set 5 (3+ years experience - Developer profile)
- Brocade Interview Experience | Set 2 (For Software Engineer 0-2.5 Years Experience)
- Walmart Interview Experience for SDE2 | Set 19 (3.8 years experience)
- Goldman Sachs Interview Experience | Set 39 (1.5 years experience)
- Amazon Interview Experience | Set 167 (SDE I for 1 year 6 months experience)
- Walmart Lab Interview Experience | Set 8 (Off-Campus 3 Years Experience)
- 7 Innovation Labs Interview Experience (6 Months Experience)
- Oyo Rooms Interview Experience | Set 12 (4+ experience Backend Developer)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.