Tip 1 : Never ignore SQL queries
Tip 2 : Always prepare your project before an interview and note down some commonly asked questions related to the tech stacks used in your project
Tip 3 : Speed also plays a vital role so keep your introduction crisp and clear
Tip 1: Do not put unnecessary things or irrelevant things
Tip 2 : Highlight which you feel you have done something extraordinary it can be anything(Projects, grades, or some hackathon )
The online coding round was conducted on the HackerEarth platform and test window of 3 hours was provided. The test was of easy to the medium difficulty level.



You are given the array ‘ARR’ = [1, 1, 1, 1, 1], ‘TARGET’ = 3. The number of ways this target can be achieved is:
1. -1 + 1 + 1 + 1 + 1 = 3
2. +1 - 1 + 1 + 1 + 1 = 3
3. +1 + 1 - 1 + 1 + 1 = 3
4. +1 + 1 + 1 - 1 + 1 = 3
5. +1 + 1 + 1 + 1 - 1 = 3
These are the 5 ways to make. Hence the answer is 5.
I solved it using two-dimensional dynamic programming and the solution was working fine
There is a chain of boxes and each box can contain many cards & on each card, some string is written.
Out of the cards inside each box, the first card is a template card on which the name of someplace is written.
We have to tell the total number of invalid cards present.
A card is said to be invalid if any of the cards do not match with the template card
"mc" "cm" valid
"mc" "cmm" invalid
This round happened approximately one week after the online coding round.
It happened at around 3 pm and the interviewer was very friendly and asked a DSA question and a SQL query



In the above image, areas in green, red, and violet color are all submatrices of the original 4x4 matrix.
1. Binary valued matrix has only two values in each cell : 0 and 1.
2. A submatrix is a matrix formed by selecting certain rows and columns from a larger matrix.
3. The area of a matrix with 'h' rows and 'w' columns is equal to 'h' * 'w'.
I solved this question using stack and it is a variation of the famous question Largest Rectangular Area in a Histogram and interviewer was happy
A SQL query involving JOIN was asked
There were some discussions on Interface and classes
After that, he asked me to introduce my projects, and some questions were asked
Tip 1 : Practice SQL queries and make a note that you can revise a day before you interview
Tip 2 : OOPS are also very important almost asked in every interview
This round on the next day and it happened around 4 pm
This interview was very humble and was from higher management



Input: 'arr' = [2, 2, 2, 2, 0, 0, 1, 0]
Output: Final 'arr' = [0, 0, 0, 1, 2, 2, 2, 2]
Explanation: The array is sorted in increasing order.
I first told him a simple counting approach and after that interviewer told me not to use this counting approach then I applied the Dutch flag algorithm
8 balls problem puzzle was asked to me.
Tip 1 : Do read the commonly asked puzzles
Tip 2 : Don't ignore HR based questions

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL clause is used to specify the conditions in a query?