Tip 1 : Be confident
Tip 2 : Be clear about your answer
Tip 1 : Have covered all topics which mentioned in resume
Tip 2 : Be clear about your answer
This round has a coding round where i have to solved two questions.


The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.
I was able to solve both problems within 20-25 minutes.



He told me to open any online editor I have opened code chef for this and did this question within a couple of minutes
After this he asks me to dry run can he also gave me an input array and ask me to run this and show me the output
After this question, he gave me another question
Tip 1 : Be confident
Tip 2 : Be clear about your answer
After around 1-2 hours I got a call from my TPO to come for a technical interview. And the result was like the students who were able to solve 1.5 questions got an interview call.




Example :
For the given binary tree :
Output : 24 14 2
Explanation: Rightmost diagonal contains elements {5, 10 , 9} its sum is 24, middle diagonal contains elements {6, 3, 5} its sum is 14, leftmost diagonal contains elements {2}. Thus the answer should be “24 14 2”.
Firstly I have done this by taking two traversals of the matrix and after this, he ask me to do this in 1 traversal
After this, I have done this in 1 traversal and he ask me to dey run this and gave me an input matrix and ask me to run and show me the output.
After this, he was satisfied with both the questions and told me that I can leave now.
This is all about the technical interviews.
This is related to cards we have given 5 cards with their suits and we have to print yes if they all are consecutive and are from at least 2 suits otherwise we have to print No.
Tip 1 : Be confident
Tip 2 : Be clear about your answer

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