Tip 1: Practice DSA problems daily and focus on understanding concepts rather than memorizing solutions.
Tip 2: Revise core subjects like OOPs, DBMS, and OS regularly before interviews.
Tip 3: Take mock interviews to improve confidence and communication skills.
Tip 1: Include 2–3 strong projects with a clear explanation of your role and the technologies used.
Tip 2: Keep your resume concise (1 page) and avoid adding false or unnecessary information.
The first round was an online assessment conducted on the Infosys Wingspan platform. It consisted of MCQ questions and coding problems. The MCQs covered aptitude, logical reasoning, and basic computer science concepts like DBMS, OOPs, and OS. The coding section included 2–3 questions based on basic data structures and problem-solving skills. The overall difficulty level ranged from easy to hard, and the questions were manageable within the given time.



a) Duplicate elements may be present.
b) If no such element is present return -1.
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.
Output: 6
Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Step 1: I initialized two variables, first and second, to track the largest and second-largest elements.
Step 2: I iterated through the array and updated the first variable whenever a larger element was found.
Step 3: If the current element was smaller than first but greater than second, and not equal to first, I updated second.
Step 4: After completing the iteration, the second variable contained the second-largest element.



String 'S' is NOT case sensitive.
Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Step 1: I took the input string, removed all spaces, and converted it to lowercase to ensure uniform comparison.
Step 2: I initialized two pointers: one at the beginning (left) and one at the end (right).
Step 3: I compared the characters at both pointers. If they were not equal, I concluded that the string is not a palindrome.
Step 4: If they matched, I moved the left pointer forward and the right pointer backward.
Step 5: I continued this process until the pointers crossed each other. If all characters matched, the string is a palindrome.



[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Step 1: I understood that the problem is to find the length of the longest increasing subsequence in the array.
Step 2: I used Dynamic Programming and created a DP array where each element represents the LIS ending at that index.
Step 3: I initialized all values of the DP array to 1 since each element itself is a subsequence of length 1.
Step 4: I used two loops, for each element I checked all previous elements. If the current element is greater, I updated DP[i] = max(DP[i], DP[j] + 1).
Step 5: After filling the DP array, I took the maximum value from it as the final answer.
The technical interview started with my introduction, followed by questions based on my resume. I was asked to explain my projects in detail, including the technologies used and my contributions.
The interviewer then asked questions from core subjects like OOPs, DBMS, and basic programming concepts. I was also given a few coding and logical questions to test my problem-solving skills.
Overall, the questions were focused on fundamental concepts and practical understanding. The interviewer was supportive, and the discussion was interactive.



Input: 'WORDS' = ["ninjas", "coding", "codingninjas"]
Output: ["codingninjas"]
Only word "codingninjas' is formed after concatenating two or more words in the list i.e "coding" and "ninjas".
Step 1: I stored the frequency of all words in a hashmap to track how many times each word should appear.
Step 2: I calculated the length of each word and the total length of the concatenated words.
Step 3: I iterated through the string and, for each possible starting index, extracted substrings of word length.
Step 4: I used another hashmap to track seen words and their counts while traversing.
Step 5: If a word was not present in the original map or exceeded the expected frequency, I broke the loop.
Step 6: If all words matched exactly, I added the starting index to the result.



N = 12, M = 3 and STR = ‘CODINGNINJAS’

There are three rows (‘M = 3’) in the zig-zag pattern. Row one contains ‘CNN’, row two contains ‘OIGIJS’, and row three contains ‘DNA’. After concatenating the three rows, we get the string ‘CNNOIGIJSDNA’. So, the answer is ‘CNNOIGIJSDNA’.
1. The string ‘STR’ consists of capital letters only (i.e., characters from ‘A-Z’).
Step 1: I handled the edge case where the number of rows is 1 or greater than the string length, in which case the original string is returned.
Step 2: I created a list of string builders equal to the number of rows to store characters row-wise.
Step 3: I initialized a variable to track the current row and a direction flag to move up or down.
Step 4: I iterated through each character of the string and appended it to the current row.
Step 5: When I reached the top or bottom row, I reversed the direction.
Step 6: After processing all characters, I combined all rows to form the final result string.
The third round included both technical and HR questions. I was asked to introduce myself and explain my projects. Questions from OOPs, DBMS, and programming were asked, along with some logical problems.
In the HR part, I was asked about my strengths, weaknesses, and career goals. The interview was smooth and interactive.



A Sudoku solution must satisfy all the following conditions-
1. Each of the digits 1-9 must occur exactly once in each row.
2. Each of the digits 1-9 must occur exactly once in each column.
3. Each of the digits 1-9 must occur exactly once in each of the 9, 3x3 sub-grids of the grid.
You can also assume that there will be only one sudoku solution for the given matrix.
Step 1: I used a backtracking approach to try filling empty cells one by one.
Step 2: I traversed the board to find an empty cell.
Step 3: For each empty cell, I tried placing digits from 1 to 9.
Step 4: Before placing a number, I checked if it is valid in the current row, column, and 3x3 sub-grid.
Step 5: If valid, I placed the number and moved to the next empty cell recursively.
Step 6: If no number worked, I backtracked by resetting the cell to empty and tried other options.
Step 7: This process continued until the board was completely filled correctly.



The first few iterations of the sequence are :
First iteration: “1”
As we are starting with one.
Second iteration: “11”
We speak “1” as “one 1” then we write it as “11”
Third iteration: “21”
We speak “11” as “Two 1” then we write it as “21”
Fourth iteration: “1211”
We speak “21” as “one 2, one 1” then we write it as “1211”
Fifth iteration: “111221”
We speak “1211” as “one 1, one 2, two 1” then we write it as “111221”
Sixth iteration: “312211”
We speak “111221” as “three 1, two 2, one 1” then we write it as “312211”
Step 1: I started with the base case where the first term is "1".
Step 2: For each next term, I read the previous string and counted consecutive repeating characters.
Step 3: I built a new string by appending the count followed by the character.
Step 4: I repeated this process until I reached the nth term.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What does the SQL function NOW() return?