Tip 1 : do coding from leetcode for understanding basic coding
Tip 2 : do coding from codeforce/codechef for coding practice
Tip 3 : go through cs fundamentals and oops concept for interview
Tip 4 : Do atleast 2-3 projects and one internship
Tip 1 : Mention projects and internship detail
Tip 2 : Mention Codechef/codeforce rating
Two coding question for one hour







If the given array is [1,2,3] then the answer would be 2. One of the ways to make all the elements of the given array equal is by adding 1 to the array element with value 1 and subtracting 1 from the array element with value 3. So that final array would become [2,2,2].
There were two question from DSA and basic oops concept.
Question related to my project.
Interview went for nearly 1:15 hr.



L1 = 1->2->3->4->7
L2 = 2->4->6->7
ANSWER:- The answer should be 2->4->7 because 2,4, and 7 are present in both the linked lists.
Get count of the nodes in the first list, let count be c1.
Get count of the nodes in the second list, let count be c2.
Get the difference of counts d = abs(c1 – c2)
Now traverse the bigger list from the first node till d nodes so that from here onwards both the lists have equal no of nodes
Then we can traverse both the lists in parallel till we come across a common node. (Note that getting a common node is done by comparing the address of the nodes)



For the given array 'ARR' = [7, 12, 1, 20]
The next greater element for 7 is 12.
The next greater element for 12 is 20.
The next greater element for 1 is 20.
There is no greater element for 20 on the right side.
So, the output is [12, 20, 20, -1].
Push the first element to stack.
Pick rest of the elements one by one and follow the following steps in loop.
Mark the current element as next.
If stack is not empty, compare top element of stack with next.
If next is greater than the top element, Pop element from stack. next is the next greater element for the popped element.
Keep popping from the stack while the popped element is smaller than next. next becomes the next greater element for all such popped elements.
Finally, push the next in the stack.
After the loop in step 2 is over, pop all the elements from the stack and print -1 as the next element for them
It was easy round basic question related to me , my expectations from company and some behavioural question that is -
how will you manage if you have dispute from your colleagues?
how will you handle extra work if your colleagues are not present?
Tip 1 : confidence is key here
Tip 2 : don't answer from online stuff, put yourself at that place and than answer.

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