Tip 1: Be consistent with your DSA practice.
Tip 2: Study and practice Low-Level Design concepts.
Tip 3: Be thorough with your projects and understand them in detail.
Tip 1: You should know everything you include in your resume.
Tip 2: Be thorough with your projects and their functionalities.
There were 2 DSA questions.



1. If all integers are greater than ‘Ai’ in array/list ‘ARR’ then the answer to this ith query will be -1.
It contains an array (‘links’) to store links to child nodes (0 and 1). It also contains methods for inserting numbers into the Trie and finding the maximum XOR value achievable with a given number.
Initialise a vector to store the result of queries. Sort the array of numbers and queries based on their end points.
We sort the queries based on their end point so that we insert numbers into the Trie only up to the point where it is necessary for answering the current query.
Iterate through the array of numbers and queries and for each query, insert numbers into the Tree until the current query’s endpoint then find the maximum XOR value for the query range using the Trie.



1. The sizes will range from 1 to ‘N’ and will be integers.
2. The sum of the pieces cut should be equal to ‘N’.
3. Consider 1-based indexing.
Applied recursion then it was giving TLE, moved to DP and applied memorization.
The interview was based on DSA and resume, not much was asked from resume.


Input: ‘arr’ = [1, 16, 7, 8, 4]
Output: [1, 4, 8, 16].
Explanation: In the set {1, 4, 8, 16}, you can take any pair from the set, and either one of the elements from the pair will divide the other.
There are other possible sets, but this is the largest one.
First of all sort the array,
Then find the longest divisible subsequence of the array.
In order to find the longest divisible subsequence, we will follow the algorithm used to find the longest increasing subsequence discussed in the
The distinguishing factor between longest increasing subsequence and longest divisible subsequence is that we used to insert the element if arr[i] > arr[prev] but here we will insert the element when arr[i] % arr[prev] == 0.
At last return the hash array as the answer.
I was told to make low level design of Uber query resolution system. Had a good discussion with the interviewer about the features and classed I would be making before coding.
Make a Low level design of Uber query resolution system.
There would be agents who would be assigned queries.
The queries are like tickets that can have their id, name, description and type.
Tip 1: Have a good and clear discussion about the thing you are building.
Tip 2: Always asks questions.
Tip 3: Try to tell about oops principles you are using side by side.

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