Tip 1 : Practice Atleast 250 Questions on GFG/Leetcode
Tip 2 : For DSA questions in interviews, start explaining from the brute force approach and then move to the optimal one. Convey your thought process to the interviewers, so that they can help you out if you get stuck.
Tip 3 : Do not write anything that you are not confident of in resume
Tip 4 : Do atleast 2 projects
Tip 1 : Try to include at least one development project in your resume.
Tip 2 : Interviewer will ask anything from your resume so be prepared for it.
Tip 3 : Don't mention some random projects which you are not sure about or copied from Google or somewhere else.
MCQs were based upon DS Algo, Code output, OOPS, DS Fundamentals and 3 Coding Problems
In climbing a round pole of n meters height, a monkey climbs 5 meters in a minute and slips 2 meters in the alternate minute. How much time would the monkey take to get to the top of the pole?
(Up) 5 meter — 1 minute
(Down) 2 meter — (another) 1 minute
Overall total 3 meter — 2 minutes
(n-5) meter = ((n-5)*2)/3 minuntes
n meter = ((n-5)*2)/3 + 1 min
Ans : ((n-5)*2)/3 + 1 min



If 'N' is 5 and 'K' is 3 and the array is 7, 2, 6, 1, 9
Sorting the array we get 1, 2, 6, 7, 9
Hence the 3rd smallest number is 6.
Follow the given steps to solve the problem:
1. Sort the input array in the increasing order.
2. Return the element at the K-1 index (0 – Based indexing) in the sorted array



Input: Let the binary tree be:

Output: [10, 4, 2, 1, 3, 6]
Explanation: Consider the vertical lines in the figure. The top view contains the topmost node from each vertical line.
The idea is to do something similar to vertical Order Traversal. Like vertical Order Traversal, we need to put nodes of the same horizontal distance together. We do a level order traversal so that the topmost node at a horizontal node is visited before any other node of the same horizontal distance below it. Hashing is used to check if a node at a given horizontal distance is seen or not.
Started with the introduction than he jumped in to the dsa problems.



In the given linked list, there is a cycle, hence we return true.

I explained to him the brute force approach as well as the optimal approach, after which he asked me to write the code for the optimal approach. He asked me to write the code from scratch, so first I wrote the code to insert the nodes in the linked list and then the code to detect a loop in the linked list.



Consider following matrix:
1 2 -1 -4 -20
-8 -3 4 2 1
3 8 10 1 3
-4 -1 1 7 -6
The rectangle (1,1) to (3,3) is the rectangle with the maximum sum, i.e. 29.
1 2 -1 -4 -20
-8 |-3 4 2 | 1
3 | 8 10 1 | 3
-4 |-1 1 7 | -6
wasn't able to solve this problem.

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