Tip 1 : DS should be strong practice coding on online portals.
Tip 2 : Clean and optimized code writing skills which can be achieved by daily code practice on Leetcode, CodeStudio etc
Tip 3 : Practical Knowledge which we can get from real project implementation
Tip 1 : Data should be true and aligned to the role you are applying
Tip 2 : Have some projects
The Test Link was shared by HR and it had an expiry of 2 days so we had to complete the test any time within 2 days. 2 questions were there in that test one was easy and one was a bit on the harder side. However, we had enough time to complete those questions.



If ‘N’ = 7,
Then we start with the integer 7 and replace it with (7 * 7) = 49.
The new number is 49, we replace it with (4 * 4) + (9 * 9) = 97.
We replace this new number 97 with (9 * 9) + (7 * 7) = 130.
We replace this new number 130 with (1 * 1) + (3 * 3) + (0 * 0) = 10.
We replace this new number 10 with (1 * 1) + (0 * 0) = 1.
Therefore, the original number 7 is a good number.
With of help of recursion and replacement of number to squares of its number. Some of the test cases I was able to pass.



Solved using Priority Queue
DS Algo Coding Questions - First we need to discuss our optimized approach and write code for the same.
2 questions were asked,



• 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.
1. All the elements of the Binary Search Tree are unique.
2. You can’t use the same node value/element of BST twice.
tree: 8 5 10 2 6 -1 -1 -1 -1 -1 7 -1 -1
'K' = 13,

The nodes with values 8 and 5 as shown in the above figure gives sum equal to the given target 13.
Therefore, the output will be “true” i.e it is possible to find a pair in the given BST having sum equal to ‘K’.
With the help of HashMap or with Set I was able to solve this question.
Put the targetSum-nodeValue in the Set and check on every iteration of that node if it is present in the Set or Map. Then yes target sum is present.
Space and Time Complexity - O(n)
It was a combination of System Design and Problem Solving.



For 'arr' = [ 1, 2, 3, 1, 2]. you need to return 1.
With the help of HashMap and iteration, we can solve this question.
Design Library Management System
Tip 1 : Listen to the requirements of the interviewer (features)
Tip 2 : Design a Database with proper primary and foreign keys
Tip 3 : Design APIs with proper request and response. What all queries will be triggered in that API and it should represent proper explanation for monitoring of microservices( if opting for it what all services were made and use of it) and which DB are we going to use and why.
This was a Technical Cum HR round where I was first asked some basic OOPS related concepts and then we discussed about my expectations from the company, learnings and growth in the forthcoming years. I would suggest be honest and try to communicate your thoughts properly in these types of rounds to maximise your chances of getting selected.
Why should we hire you?
Tip 1 : The cross-questioning can go intense sometimes, think before you speak.
Tip 2 : Be open-minded and answer whatever you are thinking, in these rounds, I feel it is important to have an opinion.
Tip 3 : The context of questions can be switched, pay attention to the details. It is okay to ask questions in these rounds, like what are the projects currently the company is investing in, which team you are mentoring, how is the work environment etc.

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?