Tip 1: Graphs should be at your fingertips.
Tip 2: While explaining the solution to the interviewer, don’t just hop onto the most optimal solution. Start with the brute force one, discuss the cons of the brute force solution, and then go step by step until you reach the optimal solution.
Tip 3: Improve your communication skills as well.
Tip 1: Mention only what is required for your profile. For example, do not stress too much on your co-curricular activities. Instead, try explaining more of your technical skills that are relevant to your job.
Tip 2: Keep it limited to one page. Make sure it is a PDF and not an image.



Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.
2. Open brackets must be closed in the correct order.
()()()() is a valid parentheses.
)()()( is not a valid parentheses.
Create a stack.
Iterate over string.
If it is opening bracket in stack, add to stack
Otherwise
If top symbol in stack matches this bracket, remove it.
Otherwise
Invalid = true
If stack is not empty
Invalid = true.
What is the output of i = 100; --(i++);
Answer : 99



1. INSERT(key, value): Inserts an integer value to the data structure against a string type key if not already present. If already present, it updates the value of the key with the new one. This function will not return anything.
2. DELETE(key): Removes the key from the data structure if present. It doesn't return anything.
3. SEARCH(key): It searches for the key in the data structure. In case it is present, return true. Otherwise, return false.
4. GET(key): It returns the integer value stored against the given key. If the key is not present, return -1.
5. GET_SIZE(): It returns an integer value denoting the size of the data structure.
6. IS_EMPTY(): It returns a boolean value, denoting whether the data structure is empty or not.
1. Key is always a string value.
2. Value can never be -1.
First(Denoted by integer value 1): Insertion to the Data Structure. It is done in a pair of (key, value).
Second(Denoted by integer value 2): Deletion of a key from the Data Structure.
Third(Denoted by integer value 3): Search a given key in the Data Structure.
Fourth(Denoted by integer value 4): Retrieve the value for a given key from the Data Structure.
Fifth(Denoted by integer value 5): Retrieve the size of the Data Structure.
Sixth(Denoted by integer value 6): Retrieve whether the Data Structure is empty or not.
Design a data structure that stores a mapping of a key to a given value and supports the following operations in constant time.



You are given 'N' stones labeled from 1 to 'N'. The 'i-th' stone has a weight of W[i]. There are 'M' colors labeled by integers from 1 to 'M'. The 'i-th' stone has a color C[i], which is an integer between 1 and 'M', both inclusive.



First sort the array and then try to compare the number with positive number.
Introduce yourself.
Why should we hire you?
What are your strengths and weaknesses?
Tip 1: The cross-questioning can get intense sometimes, so think before you speak.
Tip 2: Be open-minded and answer whatever you are thinking. In these rounds, I feel it is important to have an opinion.
Tip 3: The context of questions can be switched, so pay attention to the details. It is okay to ask questions in these rounds, such as what projects the company is currently investing in, which team you are mentoring, and how the work environment is, etc.

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