Tip 1 : Keep resume crisp
Tip 2 : Practice coding
Tip 3 : Understand DS & Algo
Tip 1 : One Page resume
Tip 2 : List down achievements, projects
Duration - 2h
Two questions, on strings, graph



1. The grid has 0-based indexing.
2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
- Count number of fresh oranges
- Add all rotting oranges to queue (index, i.e., (r,c))
- Use BFS (4 Directional check)
- If no fresh oranges are left, return time taken or else -1



Assume that the Indexing for the linked list always starts from 0.
If the position is greater than or equal to the length of the linked list, you should return the same linked list without any change.
The following images depict how the deletion has been performed.


- Normal deletion of nodes in linked list, handle all the cases
- The case when the node is to be deleted is given (not head) - swap values & delete node



If two words have the same frequency then the lexicographically smallest word should come first in your answer.
Can you solve it in O(N * logK) time and O(N) extra space?
- Use min heap with custom sorting (lambda function)
Which is the best data structure that could used in any case? Why did you choose it?
Which data structure could be used in a scenario where several entities that are connected to each other, like facebook? Why?
Tip 1 : Think of use case & then choose a DS.



1. Buying a stock and then selling it is called one transaction.
2. You are not allowed to do multiple transactions at the same time. This means you have to sell the stock before buying it again.
Input: ‘n’ = 7, ‘prices’ = [3, 3, 5, 0, 3, 1, 4].
Output: 6
Explanation:
The maximum profit can be earned by:
Transaction 1: Buying the stock on day 4 (price 0) and then selling it on day 5 (price 3).
Transaction 2: Buying the stock on day 6 (price 1) and then selling it on day 6 (price 4).
Total profit earned will be (3 - 0) + ( 4 - 1) = 6.
Use DP.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?