Tip 1: Data structures are a long-term journey; enjoy the learning process and avoid mugging up solutions.
Tip 2: Focus on impactful projects rather than random ones.
Tip 3: Practice mock interviews regularly.
Tip 1: An internship is a must.
Tip 2: Include an achievements section.
Infosys recently changed its pattern.
There were 4 questions labeled as Easy, Medium, Hard, and Complex. Each had 12 test cases that needed to be passed. The exam was conducted offline in NCR at Galgotias College of Engineering and Technology.
I was able to solve 2 questions—the Easy and Medium ones.
The Easy one was not actually easy; it was a hard-level problem, which I have mentioned below.
The Medium one was a constructive algorithm question; if you have done competitive programming, only then can you solve such questions.
The Hard one was based on partition DP.
The Complex one was based on DP on graphs.
Input: ‘N’ = 5, ‘A’ = [1, 2, 3, 4, 5], ‘K’ = 3
Output: 6
Explanation: There are many ways to split the array ‘A’ into K consecutive subarrays. The best way to do this is to split the array ‘A’ into [1, 2, 3], [4], and [5], where the largest sum among the three subarrays is only 6.
I applied Binary Search on Answers. The hint is that binary search on the answer is used when we see keywords like “minimize the maximum” or “maximize the minimum.”
It is a famous hard-coding problem, and it appeared as an easy question in the Infosys exam.



Input: 's1' = "abcd", 's2' = "anc"
Output: 3
Explanation:
Here, 's1' = "abcd", 's2' = "anc".
In one operation remove 's1[3]', after this operation 's1' becomes "abc".
In the second operation remove 's1[1]', after this operation 's1' becomes "ac".
In the third operation add 'n' in 's1[1]', after this operation 's1' becomes "anc".
Hence, the minimum operations required will be 3. It can be shown that there's no way to convert s1 into s2 in less than 3 moves.
I solved this using a greedy approach. I started from the left side of the string, since making earlier characters smaller helps in obtaining a lexicographically smaller result.
At each position, I checked whether flipping the character would make it smaller. If the character was in the second half of the alphabet (closer to 'z'), I flipped it so that it became closer to 'a'.
I used the allowed operations one by one and applied them in a way that improved the string from left to right, without exceeding the given number of operations, k.
Return this maximum possible total value.
I could not solve this, but it seemed like a Partition DP problem.
I could not solve it.
The question was on the topic of DP on graphs.
The interview round email was sent on the same day as the test.
I was shortlisted for the interview for the Digital Specialist Engineer role.
The interviewer asked about my internship and what I did during the gap between June and December, so I told him that I was undergoing training at Accenture.
It is important to mention that you are employed so that the interviewer perceives you as employable. Speaking from experience, I had faced a similar situation in another interview.
I explained my internship by showing the schema and the problem statement. Most of the discussion revolved around how I utilized the June to December gap.
7th Highest Salary
Tip 1: Practice SQL using ChatGPT.
Tip 2: If possible, always provide two solutions in SQL.
Tip 3: I explained two approaches—one using LIMIT and the other using subqueries.
An easy ASCII code question that even a beginner can solve.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which data structure is used to implement a DFS?