Tip 1 - Practice At least 250 Questions of DS algo
Tip 2 - Do at least 2 application based projects
Tip 3 - Practice questions with optimized approaches
Tip 1 : Have some application based projects on resume.
Tip 2 : Do not put false things on resume.
Tip 3 : Project should clear and crisp
MCQs- Aptitude + Quantitative
2 questions came in coding round



This question is solved by backtracking
Create a solution matrix, initially filled with 0’s.
Create a recursive function, which takes initial matrix, output matrix and position of rat (i, j).
if the position is out of the matrix or the position is not valid then return.
Mark the position output[i][j] as 1 and check if the current position is destination or not. If destination is reached print the output matrix and return.
Recursively call for position (i+1, j) and (i, j+1).
Unmark position (i, j), i.e output[i][j] = 0.



Do not allocate extra space for another array. You need to do this by modifying the given input array in place with O(1) extra memory.
'n' = 5, 'arr' = [1 2 2 2 3].
The new array will be [1 2 3].
So our answer is 3.
Create an auxiliary array temp[] to store unique elements.
Traverse input array and one by one copy unique elements of arr[] to temp[]. Also keep track of count of unique elements. Let this count be j.
Copy j elements from temp[] to arr[] and return j
Basic Hr Questions were asked. I was also asked about some questions from DS algo + from my projects. I was also asked questions from DBMS



Let the array = [ 4, 2, 1, 5, 3 ]
Let pivot to be the rightmost number.

The key process in quickSort is partition(). Target of partitions is, given an array and an element x of array as pivot, put x at its correct position in sorted array and put all smaller elements (smaller than x) before x, and put all greater elements (greater than x) after x. All this should be done in linear time.
Traveling at 3/4th of the original Speed a train is 10 minutes late. Find the usual Time taken by the train to complete the journey?
Let the usual Speed be S1 and usual Time be T1. As the Distance to be covered in both the cases is same, the ratio of usual Time to the Time taken when he is late will be the inverse of the usual Speed and the Speed when he is late
If the Speed is S2 = ¾S1 then the Time taken T2 = 4/3 T1 Given T2 – T1 = 10 =>4/3 T1 – T1 = 10 => T1 = 30 minutes.
Two water tanks contain 250 and 400 litres of water respectively. What will be the maximum capacity of a bucket that can exactly measure the water in the two tanks?
Ans.
To find the maximum capacity of a bucket that can exactly measure the water in the two tanks, we have to find the HCF of 250 and 400.
Therefore, a 50 litre bucket has to be used to measure 250 and 400 litres of water exactly.

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: