Tip 1: Solve basic DSA coding problems daily on various platforms.
Tip 2: Practice at least 300 questions.
Tip 3: Work on AI/ML-based projects.
Tip 1: Do not include false information on your resume.
Tip 2: Add your achievements and experiences to your resume.
There were two easy-to-medium level DSA-based coding questions for 45 minutes. One was based on arrays, and the other was based on strings.



1. There are no 2 adjacent elements having same value (as mentioned in the constraints).
2. Do not print anything, just return the index of the peak element (0 - indexed).
3. 'True'/'False' will be printed depending on whether your answer is correct or not.
Input: 'arr' = [1, 8, 1, 5, 3]
Output: 3
Explanation: There are two possible answers. Both 8 and 5 are peak elements, so the correct answers are their positions, 1 and 3.
I use binary search to solve the problem with a time complexity of O(log n).
If (arr[i] < arr[i+1]), it is guaranteed that at least one peak element will exist on the right side of this element.
Conversely, if (arr[i-1] > arr[i]), it is guaranteed that at least one peak element will exist on the left side of this element.


Input: ‘text’ = “cxyzghxyzvjkxyz” and ‘pattern’ = “xyz”
Output: 2 7 13
Explanation: The pattern ‘pattern’ = “xyz” appears at 3 positions in ‘text’.
Firstly, I solved this problem using nested for loops, but it gave me a Time Limit Exceeded error due to O(N*M) complexity. After some time, I remembered the Rabin-Karp Pattern Matching Algorithm and successfully solved the problem.
This is a DSA-based technical interview round held on Skype, in which the interviewer asked a DP-based coding problem and instructed me to solve and explain it in Notepad while screen sharing. After solving the problem successfully, he asked some technical interview questions related to computer fundamentals, such as DBMS, OS, and OOPs.



Can you solve this using not more than O(S) extra space, where S is the sum of all elements of the given array?
This problem is similar to the subset sum problem, where the target integer is equal to sum/2, with sum being the sum of all array elements. If the sum is odd, there cannot be two subsets with equal sums, so return false. If the sum of the array elements is even, find a subset of the array with a sum equal to sum/2. The first step is simple. I used recursive memoization to solve this problem.
This is a one-on-one video call online interview in which the interviewer asked some technical questions based on OS, DBMS, OOP, CN, etc., followed by a project discussion and some HR questions. He also asked me a tough puzzle, which I was unable to solve.
Write a query for the MERGE statement in SQL.
Tip 1: Practice SQL queries.
Tip 2: Work on projects based on the latest technologies like AI/ML, Neural Networks, Deep Learning, etc.
Tip 3: Answer HR questions positively.
What is a deadlock in OS? (Learn)
Difference between an array and a vector. (Learn)
Explain all types of joins in SQL with their syntax. (Learn)
Why do you want to join our company?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?