Tip 1 : Revise DSA at least 1 month and simultaneously practice problem from GFG or leetcode
Tip 2 : Try to practice leetcode problem as much as possible (all levels).
Tip 3 : Always try to get multiple solution (optimize solution) and read other’s optimized solutions as well.
Tip 1 : crisp and clear
Tip 2 : always mention your contribution and skills
It was in the afternoon after lunch. The interviewer talked very friendly . He started by introducing himself and then asked about me. Then he gave me one easy level problem . I know about the problem so I told him the optimise approach for the problem. Then he asked one more easy level problem.



If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For the given 'ARR' [9,5,4,9,10,10,6].
Output = 3
The longest consecutive sequence is [4,5,6].
Can you solve this in O(N) time and O(N) space complexity?
I use Hashmap to store the number. Then traverse the array and check the number in hashmap in forward and backward direction and also remove that number from hashmap. Count the forward and backward length. The complexity of this solution is O(N) for both time and space




First create a copy of link list using hashmap, then using hashmap fill all the random pointers
It start after 1 hr gap from 1st round. The level of problems are easy to medium



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.
Simple linear order solution. Just traverse the array and compare ith value with (i-1)th value. If it is greater than zero. Add it into profit



1. Not allowed to engage in more than 1 transaction at a time, which means if you have bought stock then you can buy another stock before selling the first stock.
2. If you bought a stock at ‘X’ price and sold it at ‘Y’ price then the profits ‘Y - X’.
It is not compulsory to perform an exact '2' transaction.
This round is taken by the hiring manager of finance engineer team. It cover my projects , designing, DBMS, java basics
Design coffee vending machine
Tip 1 : use OOPs concept carefully
Tip 2 : your code will be scalable
Tip 3 : try to explain your approach. Do not sit ideal.

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