Tip 1 : Practice DSA questions from GFG or Leetcode
Tip 2 : Try to complete one site's questions instead of hopping on different platforms
Tip 3 : A little competitive programming in 2nd and 3rd year of college will definitely help, caution - only if you have time.
Tip 1 : Go through each keyword of your resume
Tip 2 : Projects should be real or at least should like it it
Tip 3 : Interviewer smells crap from far away, so keep it real.
Online coding round at home


1. The grid has 0-based indexing.
2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
Tip 1 : Read carefully if it isn't a variation of standard problem
Tip 2 : Just use BFS and you're good to go



1 -> The cell contains an apple that Alice can pick up and pass through it.
-1 -> The cell contains a bush and Alice can not visit this cell.
0 -> The cell is empty and Alice can pass through it.
1. After picking an apple the cell will become empty.
2. While going towards the bottom right corner, Alice can either move Right or Down at each step.
3. While going towards the top left corner, Alice can either move Left or Up at each step.
4. If there is no path from (0,0) to (‘N’-1, ‘N’-1) then Alice will not pick any apple.
If the given matrix is :
[1, 1, -1, 1]
[1, 0, 1, 1]
[1, 1, 0, 1]
[0, -1, -1, 1]
One of the possible ways to collect maximum apples is :
Path for going towards bottom right corner:
(0,0) -> (0,1) -> (1,1) -> (1,2) -> (1,3) -> (2,3) -> (3,3)
Apples collected are equal to 6.
Path for going towards top left corner:
(3,3) -> (2,3) ->(2,2) -> (2,1) -> (2,0) -> (1,0) -> (0,0)
Apples collected are equal to 3.
So Alice can collect a maximum of 9 apples.
Tip 1 : Make recurrence relation and write the DP
It was in afternoon. It was a hard round and long round with the interviewer asking questions from all topics.



F(n) = F(n - 1) + F(n - 2),
Where, F(1) = 1, F(2) = 1
"Indexing is start from 1"
Input: 6
Output: 8
Explanation: The number is ‘6’ so we have to find the “6th” Fibonacci number.
So by using the given formula of the Fibonacci series, we get the series:
[ 1, 1, 2, 3, 5, 8, 13, 21]
So the “6th” element is “8” hence we get the output.
I told him all approaches from exponential to linear DP to logarithmic matrix exponentiation. He was impressed.



I told him directly the DFS approach and coded it. he gave a test case and it ran.
He then asked me practical applications of data Structures like Trie, BST, Map, Stack etc line by line
I told him applications of all DS.
He asked me to Design a Threadpool.
Tip 1 : I told him the uses of threadpool
Tip 2 : I've read Galvin so I knew the various use cases so listed them all and wrote generic functions for each use case and declared relevant variables.
Tip 3 : He asked some counter questions about the time and space complexity, but didn't ask to improve it.
He asked me questions from Virtual memory, threads, locks, semaphores etc
Tip 1 : Read Galvin or GFG articles
He asked questions about polymorphism and asked to code an example
Tip 1 : read GFG articles
This was Hiring Manager round
He asked me to design a Vector class
Tip 1: read GFG article on vectors
He asked me 2 standard puzzles of 25 horses and 2 ropes
Tip 1 : read GFG puzzles
He asked me general questions about my future plans and expectations from the company
Tip 1 : Keep it real and related to the resume

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