Tip 1 : Prepare fundamental theory well
Tip 2 : Prepare Easy and medium level questions
Tip 3 : Go through you resume well
Tip 1:Make your resume relevant
Tip 2:Mention projects



Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.
2. Open brackets must be closed in the correct order.
()()()() is a valid parentheses.
)()()( is not a valid parentheses.
Stack st = new Stack();
for(int i=0; i
if(!st.isEmpty() && s.charAt(i)==')' && st.peek()=='('){
st.pop();
}
else if(!st.isEmpty() && s.charAt(i)==']' && st.peek()=='['){
st.pop();
}
else if(!st.isEmpty() && s.charAt(i)=='}' && st.peek()=='{'){
st.pop();
}
else st.push(s.charAt(i));
}
if(!st.isEmpty()) return false;
return true;



1. If ‘k’ is not present in 'arr', then print -1.
2. There are no duplicate elements present in 'arr'.
3. 'arr' can be rotated only in the right direction.
Input: 'arr' = [12, 15, 18, 2, 4] , 'k' = 2
Output: 3
Explanation:
If 'arr' = [12, 15, 18, 2, 4] and 'k' = 2, then the position at which 'k' is present in the array is 3 (0-indexed).
Design Parking lot low level design

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