Tip 1 : Try to learn the basic fundamentals first.
Tip 2 : Give as much contests you can, It will help you in coding rounds.
Tip 3 : Practice as much you can.
Tip 1 : Make it one-pager
Tip 2 : Mention things that are related to the job profile only
It contains MCQs and 2 coding questions.



If the given string is:
abcadeecfb
Then after deleting all duplicate occurrences, the string looks like this:
abcdef
I simply traverse the linked list and skip all the next elements which have same value;



If the input tree is as depicted in the picture:
The Left View of the tree will be: 2 35 2
I simply do the preorder and at any point, if no element is printed at that level then I print that element. Its quite a standard question.
They first ask me about my current company and projects. After that he asks me some basics and then finally he gives me one question to do.



It was again start with introduction, then they discuss my projects asks me some behavior questions and then finally give me one coding question in the final minutes.


str = "ababc"
The longest palindromic substring of "ababc" is "aba", since "aba" is a palindrome and it is the longest substring of length 3 which is a palindrome.
There is another palindromic substring of length 3 is "bab". Since starting index of "aba" is less than "bab", so "aba" is the answer.
Its a typical 2D dp problem, for string(i,...j) to be palindrome string[i]=string[j] and string(i+1...j-1) should be palindrome. Like how we can break the problems in smaller parts and find the longest palindromic substring by applying 2D DP. I just make him understand my approach and he was out of time, so he finishes the interview there and he was satisfied with my approach.

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?