Tip 1 : Starting learning the data structures from Karumanchi Book, once you have grip over the concept, then move to geeks for geeks, then solve around 450+ questions, picking must do coding questions, and then switch to leetcode contests to test your learning.
Tip 2 : Before, every interview, give mock interviews over pramp. This gives confidence, and a way to address the interview in best way possible.
Tip 3 : Never brag and lie in the interview, nobody is smart enough to fool the manager having 10+ years of experience.
Tip 4 : Never cram, during your preparation, instead build up concepts and understanding.
Tip 1 : Whatever experience you have gained, feel free to mention it on the resume, without thinking that it is worthy or not. Because you cannot objectify what catches the interest of the interviewer, but make sure it is truthful.
Tip 2 : Always keep the resume in a simple and sobber way, so that your skills are enough to speak about you.
Tip 3 : For resume building, you may refer, to this video
I received, the test link, on 5th may, 2021, which mentioned completing the test in the next 3 working days. I gave the test on 8th May, on the hackerrank platform, in the C++ language. there were 3 coding questions, divided into 2 categories, in the first one 2 coding questions were present, and in the third one, 1 coding question was present. the difficulty level was medium for 1 and 2 and hard for the 3rd question. I started at 10 pm and ended at 11.30 pm.



You can’t sell without buying first.
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.






For a given string “BaaB”
3 possible palindrome partitioning of the given string are:
{“B”, “a”, “a”, “B”}
{“B”, “aa”, “B”}
{“BaaB”}
Every substring of all the above partitions of “BaaB” is a palindrome.
This round was with the SDE-3. The interviewer in this particular round was very friendly, the interview started with the introduction in the beginning for about 3-4 minutes, it was just to be comfortable.
after that, direclty, 2 coding question were put up, on the screen shared. Firstly, i was asked the approach, then the code, after that was asked, to optimize it and modify the code again.
Once the coding was done, the discussion was held, regarding every step taken. there was a shared screen to code.
Moreover, I had to implement the function provided with arguments.
After, this, the interviewer asked if I had any question for him. I asked, regarding his work experience till now. He shared insights regarding the corporate world, and his journey.
What are HTML Entities? What are the different data types present in javascript?



Let the input be [1,0,2,1] and [0,1,1,2].
So, the coordinates of the four points be [ {1, 0}, {0, 1}, {2, 1}, {1, 2} ]

From the above image, we can see that it is a square. Thus, the output will be ‘Yes’.



Let’s say we have an array 'ARR' {10, 12, 20, 30, 25, 40, 32, 31, 35, 50, 60}. Then we have to find the subarray {30 , 25 , 40 , 32 , 31 , 35} and print its length = 5 as our output. Because, when we sort this subarray the whole array will be sorted.
This round was taken by the SDE-1, who was calm and composed and focussed, on asking the question and the optimized approach of the question. Interview, started with 10 minutes, discussion on the project. There was some questioning but not a lot, and the interviewer directly jumped to the coding questions.
the procedure, was that he asked, me the question, I was required to tell the approach, if it is optmized only, then the interviewer asked, to code, otherwise told, to think more, and reach an optmized approach.
I knew, the first question, and as I gave the optimized approach in first try, he decided to move to another question, without coding that.
Some SQL questions - What is a UNIQUE constraint? What is a Primary Key?
Ended up on thank you and all the best, without asking to ask a question to him.



As the product of elements can be very large you need to return the answer in mod (10^9+7).
Try to do this without using the division operator ‘/’, in constant space. The output array does not count as extra space for the purpose of space complexity analysis.



Two nodes may have the same value associated with them.
The root node will be fixed and will be provided in the function.



Input array [5,5,6,4,6],If we look at the frequency of different elements in this array.We can see,4 appears an odd number of times, so our answer will be 4.
After, the two technical rounds, within 15 minutes, received the call, for an HR round to be held in 30 minutes. The interview started with the introduction, followed by the discussion over the project and the internship experience. in this round, questions, were asked, related to the project, to the depth. I had made the projects myself, but a long time ago, so I was not able to give an answer to every question, completely, but whatever I remembered I told. I was not speaking a lie, but actually forgot, 1 implementation which was asked by Manager. But he was satisfied, with little information I provided.
Then the questions were asked like:
Difference between inheritance and polymorphism. I answered thoroughly with practical examples.
Describe the complete SDLC cycle. (Answered perfectly from start till end)
How is Java a platform-independent language? (answered with thorough explanation)
What is abstraction ? (Provided with explanation and example)
The time when I had met the deadlines. (I gave the instance of completing freelancing projects, using the STAR methodology)
Difference between MongoDb and Mysql. (Gave to the point answer because i was having less knowledge regarding MongoDB)
What is Virtual Memory? (Gave the context completely)
Then, he asked, me to ask any question from the interviewer. I asked regarding the corporate journey till now. He explained happily.

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?