Tip 1 : Never lose hope after failure, take it in a positive way, and try to learn something from it.
Tip 2 : Prepare some good projects along with DSA knowledge.
Tip 3 : During the interviews always focus on your code quality.
Tip 4 : Make sure your resume is only one pager and contains only relevant information in form of pointers.
Tip 1 : Resume should always contain relevant information only, no need to add hobbies and all
Tip 2 : It should consist of only one page
Tip 3 : Add hyperlinks to your projects and profiles
The test was conducted around 7:00 in the evening.



You are given ‘STR’ = “ababcd”. Then our answer will be “ab”. The prefixes “a” and “ab” occur the maximum number of times, i.e., 2. As the prefix “ab” is longer than “a” so, our answer will be “ab”.
Started with basic Introduction and then interviewer asked me one DSA problem



Started with a formal introduction and the interviewer asked some questions based on my projects and then they asked two coding questions.



insert(X): Inserts an element X in the data structure and returns true if the element was not present, and false otherwise.
remove(X): Removes the element X from the data structure, if present. Returns true if the element was present and false otherwise.
search(X): Search the element X in the data structure. Returns true if the element was present and false otherwise.
getRandom(): Return a random element present in the data structure.
Type 1: for insert(X) operation.
Type 2: for remove(X) operation.
Type 3: for search(X) operation.
Type 4: for getRandom() operation.
It is guaranteed that at least one element will be present in the data structure when getRandom() operation is performed.
Can you implement every operation such that it works in O(1) time?



You don't have to print anything, it has already been taken care of. Just implement the given function.

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?