Tip 1: Having good Projects or Internships is a must for fresher
Tip 2: Maintain a strong grip over medium-level problems in coding websites across all topics
Tip 3: Practice communicating your thoughts and solutions in technical terms
Tip 1: Have Projects and Internships
Tip 2: Write things you perfectly know
There were easy MCQ questions based on computer science fundamentals and 2 simple coding problems to be solved using Java/C++.
This Round had a collection of 3 problems which were Medium, Medium-Hard and Hard problems.



The Problem was based on Prefix sum and Sliding window
I was able to understand the problem in 10 minutes and then code and submit it in the next 5 minutes. I had a strong grip on problems related to Sliding windows which helped in solving this problem.



The Problem was based on Dynamic Programming. It was a harder version of the Longest Increasing Subsequence problem.
This was an unseen type of problem and hard to solve. I tried multiple approaches with the greedy method which max reached to 15% of test cases passed. The intuition of DP was due to its similarities with the LIS problem. It took me 1 hour to solve the problem.
The interview started with my introduction and some questions related to my previous experiences. He asked some questions related to DBMS, OS, and OOP. He then moved to a DSA question which was similar to a Leetcode medium problem and took me 20 minutes to solve. He asked about the internal workings of Binary Search and then asked for a dry run of the Dijkstra algorithm



Given a palindromic string of lowercase English letters palindrome, replace exactly one character with any lowercase English letter so that the resulting string is not a palindrome and that it is the lexicographically smallest one possible. Return the resulting string. If there is no way to replace a character to make it not a palindrome, return an empty string.
I solved similar problems alot in contests, so I was able to understand the crux of problem and proposed a greedy solution to the interviewer. Then I wrote the code in notepad.



How can we find the shortest path from the source to all vertices?
I suggested using Djikstra algorithm for the same and then about the working and dry run of the algorithm.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: