Tip 1: Practice DP-based questions as much as you can.
Tip 2: Also, be confident during the interview about your solution.
Tip 3: For practice, you can prefer Coding Ninjas.
Tip 1: Keep it short.
Tip 2: Mention the academic and professional projects you've done.



Use zero-based indexing for the nodes.
The tree is always rooted at 0.



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.



V is the number of vertices present in graph G and vertices are numbered from 0 to V-1.
E is the number of edges present in graph G.
The Graph may not be connected i.e there may exist multiple components in a graph.
Tell me about yourself
Why do you want to be a part of our company?
Why do you want to join as a Computer engineer?
Strength, weakness and family background
Tip 1 : Be honest
Tip 2 : Specify clearly if asked about your location preferences

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Providing input/output examples in your prompt is a technique called: