Tip 1 : Start topic wise, once you gain confidence, start with daily and weekly contest on LeetCode(or any other platform you prefer)
Tip 2 : Prepare as per the role are applying for. Make sure to practice FAQ for that company.
Tip 3 : Consistency (Most Important :))
Tip 1: Try to make a single page resume, which is precise and clear. Also make sure to add only those skills which you are confident about.
Tip 2: Don't use the same resume for each job profile. Modify it as per the job requirements.
Link was valid for 24 hours. You can give it anytime.



1. The array may contain duplicate elements.
2. The array can also contain negative integers.
3. Every element of the subsequence must be greater than or equal to the previous element.
Sort the whole array
Combine each index with its corresponding value to create a 2-d array;
Sort the 2-d array reversely by value, then copy the largest k ones;
Sort the largest k ones by index, then return the corresponding values by index order.
Interview happened in the afternoon and was taken by Senior SDE of the team. He was quite calm and helped me create a good and relaxing environment for the interview



for the given 5 intervals - [1,4], [3,5], [6,8], [10,12], [8,9].
Since intervals [1,4] and [3,5] overlap with each other, we will merge them into a single interval as [1,5].
Similarly [6,8] and [8,9] overlaps, we merge them into [6,9].
Interval [10,12] does not overlap with any interval.
Final List after merging overlapping intervals: [1,5], [6,9], [10,12]
If we sort the intervals by their start value, then each set of intervals that can be merged will appear as a contiguous in the sorted list. Then, we insert the first interval into our merged list and continue considering each interval in turn as follows: If the current interval begins after the previous interval ends, then they do not overlap and we can append the current interval to merged. Otherwise, they do overlap, and we merge them by updating the end of the previous interval if it is less than the end of the current interval
Interview happened in the afternoon and was taken by Senior SDE of the team. He was very experienced and had good knowledge.
Design a movie ticket booking system and explain your thought process while designing.
Tip 1: Speak out loud even if you are stuck, interview does not want the perfect solution but is interested in your step by step approach.
Interview happened in late in the night and was taken by Senior SDE of the team in Seattle. He was very friendly and helped me create a good and relaxing environment for the interview. And explained the questions very precisely.



• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
For the given BST:

The modified BST will be:

Key is here to make Node out of middle number and pass on the left of the array to form left tree and right half of the tree to form the right array



1) Constructor: It initializes the data members as required.
2) add(value): It inserts an element into the HashSet. The function takes one argument which is the value that needs to be added and returns nothing
3) contains(value): It checks whether the element exists in the HashSet or not. The function takes one argument which is the value that needs to be searched for in the HashSet. The function returns true if the element exists, otherwise returns false.
4) remove(value): It removes an element from the HashSet. The function takes one argument which is the value that needs to be removed from the HashSet and returns the element which is being removed. If the element does not exist in the HashSet or if HashSet is empty, return -1.
Query-1 (Denoted by an integer 1)- Inserts an element in the HashSet
Query-2 (Denoted by an integer 2)- Returns a boolean value denoting whether the element is present in the HashSet or not.
Query-3 (Denoted by an integer 3)- Removes the element from the HashSet.
Load Factor tells when to perform re-hashing. I set it to 75% meaning if we have filled 75% of the container, we need to perform rehash. The reason for doing this is to shorten the individual chains at each bucket. That way, we reduce the time for contains and remove in the average case.
Interview happened in the evening and was taken by Hiring Manager.
Interviewer Explained me everything about team, their requirements, what is expected out of me. It was great interacting with her. She asked a new situation based questions like : What will you do incase there's a deadline and you know that you won't be able to complete the task by EOD?

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?