Tip 1 : focus on DSA on early days of job hunt - mainly graph and dynamic programming, practice medium hard level only l.
Tip 2 : mild practice of DSA while on notice period and focus on technologies more on notice period
Tip 3 : Atempt coding round with relax mind
Tip 1 : Resume should be a easy read to eyes and mind.
Tip 2 : compress words, try to add more details with less words
First round is DSA coding round.
They asked 2 coding questions.
Both are DP questions
First one was relatively easy than second
Timming - Saturday around 11 am
Environment- can use own ide and need to copy paste to provided Google doc



You can’t sell without buying first.
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
In this question DP approach is required.
1. Two dp list need to be created first, first for buy at ith day and second for sell at ith day.
2 get the maximum difference for i =1 to n between both DP



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then (2, -3, 1), (-3, 2, 1) etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
First I wrote recursive approach
Then i used memorization to optimize the code
Using recursive approach plus memorization allow me to do it in limited time, thinking for optimal substructure is different in 30 mins of time.
But i solution is accepted.
WhatsApp system design
Functional requirements
1. Send and receive msg in real time
Steps to be done in this interview
Block diagram
Databse schema to be decided
Optimized queries to be used in APIs
System design - WhatsApp
Functional requirements- send and receive msg
Following things are expected
Block diagram
Database schema
Database queries - optimized
Tip 1: prepare for system design interview
Tip 2: ask interviewer to filter the requirements
Tip 3: sense what interviewer is expecting and design accordingly
Again system design round
2 pm
Environment was just a text editor
Interviewer was great person
Design IRCTC, searching module
Functional requirements
Fast search
Constraints
100000 training are there in the system
1000000 station are there in the system
A train can have maximum 400 stops
Write block diagram, decide database schema and how you store the trains and station information
Tip 1: think about problem statement before suggesting a solution
Tip 2: watch some heavy data handling system design videos
Tip 3: learn about cache, load balancing

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