Tip 1 : Practice atleast 300-400 DSA questions of medium to hard difficulty. You can practice some easy problems in the start phase but after solving some easy problems you should focus more on solving medium-hard difficulty problems as mostly these type of questions are asked in coding and technical rounds.
Tip 2 : Give 1-2 DSA contests in a week that have a time limit so that it would help in increasing your speed of problem solving and it will give an idea on what are you weak topics and which topics you should focus more.
Tip 3 : Before any coding/interview rounds of a company, go through the previous year questions/experiences that were asked in the coding/interview rounds of the company, which would give an idea on what topics are more important for that company.
Tip 1 : Always keep your resume of 1 page and keep the points that you have mentioned in each heading to be precised
Tip 2 : Be confident on each point that you have mentioned in your resume. Never mention any wrong information in resume as if would get into notice then it will have a negative impact in the interview.
The coding round was in the evening and the platform used for taking the coding round was very good.


For the given graph:

Node 1 is connected to all other nodes. Hence node 1 is the centre of this star graph.
Step 1 : I represented the graph as adjaceny list
Step 2 : Then i iterated through all the nodes, and calculated the maximum k-star value that can be achieved if i keep the current node as the center.
Step 3 : For calculating a k-star value from a node, i added the values of the neighbours of the current node in a vector and sorted them in descending order. Then i took the first k values, which would be the maximum value that can be achieved if i take the current node as center.
Step 4 : Then i calculated the maximum of all the K-star values from the nodes and returned the answer.



If “nums” = {2, 1, 3}.
The valid non-empty subsequences of the array are {2}, {1}, {3}, {2, 1}, {1, 3}, {2, 3} and {2, 1, 3}. So, the longest subsequence satisfying the given conditions are {2, 1} and {2, 3}. The length of the longest subsequence is 2. So, the answer is 2.
Any subsequence of length = 1 is also a valid subsequence.
Step 1 : First, I sorted the array and kept a variable to store the maximum answer and a variable idx to store the current index.
Step 2 : Then, I iterated the array and checked how many numbers can be included in the current iteration and incremented the value of idx at each step and check till idx is less than the size of array.
Step 3 : Then, I calculated the answer at each iteration and returned the maximum answer.
The interview was in the morning and it was taken on Microsoft Teams.



1. get(key) - Return the value of the key if the key exists in the cache, otherwise return -1.
2. put(key, value), Insert the value in the cache if the key is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least recently used item before inserting the new item.
Type 0: for get(key) operation.
Type 1: for put(key, value) operation.
1. The cache is initialized with a capacity (the maximum number of unique keys it can hold at a time).
2. Access to an item or key is defined as a get or a put operation on the key. The least recently used key is the one with the oldest access time.
We had a detailed discussion on the project that i mentioned in my resume like what technologies I used, why I choose these technologies, what difficulties i faced etc. I was also asked to present my project and they some questions regarding the platforms on which i have deployed my website and the other options on which I can deploy it.
Tip 1 : Have a deep insights of the projects that you are mentioning in resume.
Tip 2 : Try to practice some commonly asked questions before the interview so that you don't get nervous in interview.
What are 4 pillars of OOPS and explain them?
What are different types of inheritance?
What is the role of access specifiers in encapsulation?
Tip 1 : Properly go through the different concepts of OOPS, OS and DBMS.
Tip 2 : Do practice some common questions on OOPS before appearing in the interview.
Tip 3 : Make your own notes and revise them from time to time.
It was in the afternoon and the interviewer was very friendly and cooperative.
Give a introduction of yourself.
Tell about some of the achievements in college?
Have you worked in a team project and if yes, please share the experience.
What are you strengths and weakness?
Do you have any questions for us?
Tip 1 : Always be confident while answering these questions.
Tip 2 : Always ask questions from the interviewer if they ask do you have any questions for us, as it shows that you are really interested in joining the company
Tip 3 : Do practice some commonly asked questions in HR round before appearing in this round.

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?