Tip 1 : Keep eye contact
Tip 2 : Maintain fluctuating tone so that, the interviewer shows interest in you
Tip 3 : Do practice a lot of data structures from renowned websites like LeetCode and also from CodeZen
Tip 1 : Add most recent and relevant projects only
Tip 2 : you should know each and everything written on your resume
This round consisted of a coding test containing 2 questions purely based on Data Structures and Algorithms.
One was a Dynamic Programming Problem, and
the other one was a linked list question
N=3
We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
To solve this problem using Dynamic Programming, take an extra space of size n and start computing values of states from 1, 2 .. to n, i.e. compute values of i, i+1, i+2 and then use them to calculate the value of i+3 till whatever is the value of n
Introduction first
Tell me about your projects. He said you have done quite a few projects in JavaScript so tell me
Akshat what is es6 in JavaScript. I was not able to answer that.
What is bootstrap?
What is the difference between div and span tags in HTML?
How many handshakes will take place if there are 6 persons? I told him the P & C approach and then he said no please explain in the normal way so I said sir it's 1+ 2 + 3 + 4 + 5 = 15.
Reverse a String in optimal way
What is a preprocessor and preprocessor directive?
What is typedef?
Have you done exception handling? Explain
Polymorphism and inheritance and explain all types of both.
There were no questions asked on OS and DBMS in this round
If the input string is "abbc", then all the possible palindromic substrings would be: ["a", "b", "b", c", "bb"] and hence, the output will be 5 since we have 5 substrings in total which form a palindrome.
A string is said to be a 'Palindrome' if it is read the same forwards and backwards.
For example, “abba” is a palindrome, but “abbc” is not.
A 'Substring' is a contiguous sequence of characters within a string.
For example, "a", "b", "c", "ab", "bc", "abc" are substrings of "abc".
First we start by finding the odd length palindromic substring and then even length. For each position we go left and right by one place and then check if the characters are equal or not. If they are we continue to move right and left else we move to the next character and perform the same till we reach the last character
Tip 1 : One cut center to cut in half
Tip 2 : One cut to cut these halves in quarter
Tip 3 : The last one parallel to the plate to move from 4 pieces to 8
Your intro.
Bubble sort algorithm
Remove a specific character from all positions in a given string (3 test cases given)
Explain runtime polymorphism
Find minimum number of insertions required to make a string palindrome (he said No DP to be used)
I was able to code and explain all of them.
Make ER diagram of your 4th semester Project
He asked me if I know abt normalization
He asked me a ques on normalization, I was not able to answer it, then he asked me to write an SQL query based on the same table, I answered that
Query -> Find the maximum salary in each department, wherein the department and salary fields were in two different tables
Then he asked, tell me the different pillars of OOPs.
He asked about my projects
He saw my resume.
He asked about how the online coding test was, what were the difficulties you faced.
Assume that the Indexing for the linked list always starts from 0.
If the position is greater than or equal to the length of the linked list, you should return the same linked list without any change.
The following images depict how the deletion has been performed.
As we are clearly given the address of the node, so to delete it we can copy the value of the next node in series to this node and then delete the next node
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you select an element by class name in CSS?