Tip 1: Always strive to offer the best answers to any coding challenges presented during interviews.
Tip 2: Work on your soft skills.
Tip 3: Good projects should be mentioned on your resume, and you should have questions well-prepared for them.
Tip 4: Practice at least 250–300 DSA coding questions, including dynamic programming and all other data structures.
Tip 1: Mention good projects with in-depth knowledge on your resume.
Tip 2: Do not include false information on your resume.
This round was held in the evening, with approximately 100 candidates attending it. Audio and webcam were enabled. All the core CS subjects-related MCQs were asked, covering DSA, operating systems, databases, computer networks, and aptitude. There were a total of 4 sections with sectional cutoffs and time limits. The sections were Aptitude, CS subjects, Programming-based questions, and Digital Logic-based questions.



Input: 'a' = [7, 12, 1, 20]
Output: NGE = [12, 20, 20, -1]
Explanation: For the given array,
- The next greater element for 7 is 12.
- The next greater element for 12 is 20.
- The next greater element for 1 is 20.
- There is no greater element for 20 on the right side. So we consider NGE as -1.
This problem can be solved easily and efficiently by using the stack data structure, as it is based on the Last In First Out (LIFO) principle.
Steps Followed:




The left view of the above binary tree is {5, 7, 14, 25}.
Steps Followed:
This round lasted about 45 minutes in the morning. They wanted me to share my screen and open any coding platform to solve my coding questions. They also asked me to elaborate on my project, after which they asked about my previous experiences. Following that, they asked questions specifically about linked lists and trees.



Input : 1 -> 2 -> 3 -> 4 -> 'NULL' and 'K' = 2
Output: 1 -> 2 -> 4 -> 'NULL'
Explanation:
After removing the second node from the end, the linked list become 1 -> 2 -> 4 -> 'NULL'.




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




• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
For the given binary tree :

The BST will be:

Note: Each node is associated with a unique integer value.
This round was a bit more difficult than the previous one because here the interviewer focuses on DSA concepts in depth, with some topics like recursion and binary trees as well. They try to gather all your knowledge of how you approach a problem.



1. You can only move one disk in one move.
2. You can not place a larger disk on top of a smaller disk.
3. You can only move the disk at the top of any rod.
You may assume that initially, the size of the ‘i’th disk from the top of the stack is equal to ‘i’, i.e. the disk at the bottom has size ‘N’, the disk above that has size ‘N - 1’, and so on. The disk at the top has size 1.

Steps to be followed:



• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
For the given level order traversal: 5 3 6 2 4 7
The BST will be:

The Inorder Traversal of this BST is 2 3 4 5 6 7.
The idea was to keep track of the number of child nodes in the left and right subtrees, and then make the decision based on these counts.
Approach:
a. If the left subtree is a perfect binary tree, the node must be inserted into the right subtree.
b. If the left subtree is not a perfect binary tree, the node must be inserted into the left subtree.

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