Tip 1 : Practice previous interview questions from coding platforms.
Tip 2 : Revise Computer Science subjects like DBMS, OOPS thoroughly.
Make a document where you can list any answers to the interviewer's queries about your resume, such as your cover letter, project details, reasons why you chose to work for XYZ firm, talents and abilities, etc.
The interviewer introduced herself and asked me the same.
Then, I was asked to open the IDE of my choice and code the following questions.



Suppose given input is "abacb", then the length of the longest substring without repeating characters will be 3 ("acb").



This was a technical interview of 60 minutes.
First, the interviewer introduced herself and asked me the same. Then, she asked about the projects I mentioned in my resume. There was a deep discussion on the tech stack mentioned in the resume.
Then, I was asked to code the following questions.



Input: ‘S’ =’badam’
Output: ‘ada’
‘ada’ is the longest palindromic substring, and it can be proved that it is the longest possible palindromic substring.
The LPS is either of even length or odd length. So, the idea is to traverse the input string and, for each character, check if this character can be the center of a palindromic substring of odd length or even length.



Input: Consider the binary tree A as shown in the figure:

Output: [10, 5, 3, 7, 18, 25, 20]
Explanation: As shown in the figure
The nodes on the left boundary are [10, 5, 3]
The nodes on the right boundary are [10, 20, 25]
The leaf nodes are [3, 7, 18, 25].
Please note that nodes 3 and 25 appear in two places but are considered once.
Each node in a binary tree has a maximum of two pointers, which can be used to traverse the tree in a specific manner without using any extra space. Specifically, we can modify the structure of the tree itself in a way that allows us to traverse it without using any extra space.



For the given binary tree

The top view of the tree will be {10, 4, 2, 1, 3, 6}.

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