Tip 1 : Make Sure Your data structures concepts are crystal clear
Tip 2 : Don't fake anything in your resume
Tip 1 : Resume must be atleast ATS friendly
Tip 2 : Your Linkedin is your resume , make sure you had a great profile there , I was reached out by a recruiter
It was an online test of 90 minutes and was conducted on Hackerearth. It consisted of 10 MCQ’s and 3 coding questions. MCQ’s consisted of general aptitude questions, questions related to networking, programming , dbms.



I applied simple DFS here and passed all the test cases



Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.



Tip 1 : Floyd’s Cycle-Finding Algorithm
Traverse linked list using two pointers.
Move one pointer(slow_p) by one and another pointer(fast_p) by two.
If these pointers meet at the same node then there is a loop. If pointers do not meet then linked list doesn’t have a loop.
The round started from introduction of both , he introduced himself , he was senior software engineer having 4 years of experience . He asked me 2 dsa question out of which one was leetcode easy and other was medium level



You must sell the stock before you buy it again.
I started with a brute force approach with a n2 approach and optimise to a o(n) approach and he was quite satisfied with the approach



For the given binary search tree and k = 3

The 3rd smallest node is highlighted in yellow colour.
Tip 1 : we can build an inorder traversal of BST which is an array sorted in the ascending order. Now the
answer is the k - 1th element of this array.
He started asking DBMS questions like joins , Relational models , and many more
Tip 1 : Revise dbms , os concepts throughly
He was a senior software having 7 years of experience and this was a mangerial round
There are two gates, one to hell and the other to heaven. Two gatekeepers, one for each gate. One of them always speaks the truth and the other always lies but you don’t know which one guards which gate. You are allowed only one question and you need to find out the gate to heaven.
What is the question?



1. Delete a character
2. Replace a character with another one
3. Insert a character
Strings don't contain spaces in between.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?