Tip 1 : Be prepared for each and every line written in your resume
Tip 2 : Only mention things that you know perfectly
Tip 3 : Prepare atleast one good project
Tip 1 : For fresher, don't make it more than 1 page.
Tip 2 : Don't add the things you aren't aware off
It was a online coding round in the afternoon

‘A’ = [1, 3, 2, 5]
A[3] = A[3] or A[1] = 3 | 5 = 7
‘A’ = [1, 3, 2, 7]
Hence the maximum element we can obtain is 7.
Therefore, the answer is 7.
Just try to apply the basic concept of arrays using loops



1. You are not required to print the output explicitly, it has already been taken care of. Just implement the function and return the minimum number of parentheses required to make a string valid.
We keep the track of balance of the string i:e the number of ‘(‘ minus the number of ‘)’. A string is valid if its balance is 0, and also every prefix has non-negative balance.
9 MCQs and 1 coding question followed by HR round



You may assume that duplicates do not exist in the given traversals.
For the preorder sequence = [1, 2, 4, 7, 3] and the inorder sequence = [4, 2, 7, 1, 3], we get the following binary tree.

Pick an element from Preorder. Increment a Preorder Index Variable (preIndex in below code) to pick the next element in the next recursive call.
Create a new tree node tNode with the data as the picked element.
Find the picked element’s index in Inorder. Let the index be inIndex.
Call buildTree for elements before inIndex and make the built tree as a left subtree of tNode.
Call buildTree for elements after inIndex and make the built tree as a right subtree of tNode.
return tNode.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: