Tip 1 : Prepare all Topics from Coding Ninjas of Course Competitive Programming. Also I practiced atleast one question everyday from sites like Leetcode,Interviewbit and also took part in Codeforces Contest.
Tip 2 : Do Competitive Programming regularly.
Tip 1 : Keep your resume up to date and mention 2-3 good level projects which will give a good impression to the interviewer .
Tip 2 : Don't put false things on the resume.
This round was conducted on Google Meet with 2 interviewers present.
The time was around 2 PM to 3 PM.
The interviewers were friendly and helped if I got stuck.



The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.
DP problem



1. get(key) - Return the value of the key if the key exists in the cache, otherwise return -1.
2. put(key, value), Insert the value in the cache if the key is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least recently used item before inserting the new item.
Type 0: for get(key) operation.
Type 1: for put(key, value) operation.
1. The cache is initialized with a capacity (the maximum number of unique keys it can hold at a time).
2. Access to an item or key is defined as a get or a put operation on the key. The least recently used key is the one with the oldest access time.
We use two data structures to implement an LRU Cache.
Queue is implemented using a doubly-linked list. The maximum size of the queue will be equal to the total number of frames available (cache size). The most recently used pages will be near the front end and the least recently used pages will be near the rear end.
A Hash with the page number as key and the address of the corresponding queue node as value.
The round was held on Google meet face to face with only HR present.
HR explained me about the team, etc, made me feel comfortable.
HR was friendly and asked almost standard questions.
Who is your role model?
What is your expectation from this job?
Tip 1 : Maintain a positive attitude in all Interviews be it tech or HR.
Tip 2 : Develop team spirit and have some team work experience ( like ICPC times)
Tip 3 : Don't take HR round for granted, Prepare for this round beforehand.

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?