Tip 1 : Practice DSA questions regularly to form logic building.
Tip 2 : Deep dive into system design for a better understanding of core concepts.
Tip 1 : Have good relevant projects on resume.
Tip 2 : Have a 1-page well-formatted resume and highlight keywords.
This round was taken by InterviewVector and was based on DSA questions and some core theoretical questions. It was a 60-minute round.



1)The amount of petrol that is available at this particular petrol pump.
2)The distance to reach the next petrol pump.
Step 1: I first came up with a brute force technique by checking each index as the starting index.
Step 2: Interviewer asked me to optimise the solution to linear time complexity.
Step 3: I gave a greedy approach to solve the problem and it passed all the cases.
Difference between SQL vs NoSQL.
Difference between vertical scaling vs horizontal scaling.
What is indexing?
This round was based on DSA questions and discussion on high-level design. The interviewer was friendly and was more focussed on my approach to designing the system.



A singly linked list is a type of linked list that is unidirectional, that is, it can be traversed in only one direction from head to the last node (tail).
If the number of nodes in the list or in the last group is less than 'K', just reverse the remaining nodes.
Linked list: 5 6 7 8 9 10 11 12
K: 3
Output: 7 6 5 8 9 10 12 11
We reverse the first 'K' (3) nodes and then skip the next 'K'(3) nodes. Now, since the number of nodes remaining in the list (2) is less than 'K', we just reverse the remaining nodes (11 and 12).
You need to reverse the first 'K' nodes and then skip the 'K' nodes and so on. 5 6 7 10 9 8 11 12 is not the correct answer for the given linked list.
Step 1: I first wrote the code to reverse a linked list.
Step 2: I utilized the code for reversing the linked list for reversing nodes in groups of k. I used a recursive function for implementing it.
Step 3: I dry ran the code on a few test cases and they worked fine, and the interviewer was happy with the approach.
Discussion on designing top K trending hashtags.
Tip 1 : Watch System design videos for better understanding.
This was the hiring manager round of 30 minutes. In which we had a discussion on my projects and some OOPS and DBMS concepts.
What are composite indexes?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?