Tip 1: Practice coding questions from various platforms. Practice at least 100 questions.
Tip 2: Practice any one automation framework, including design patterns
Tip 1: Restrict your resume to 1 page and write your practical work only
Tip 2: Mention top topics like Selenium, Rest Assured Automation, Language used Java, etc



The given array is sorted in non-decreasing order.


If the given matrix is:
[ [1, 2, 5],
[3, 4, 9],
[6, 7, 10]]
We have to find the position of 4. We will return {1,1} since A[1][1] = 4.



1. Push(num): Push the given number in the stack if the stack is not full.
2. Pop: Remove and print the top element from the stack if present, else print -1.
3. Top: Print the top element of the stack if present, else print -1.
4. isEmpty: Print 1 if the stack is empty, else print 0.
5. isFull: Print 1 if the stack is full, else print 0.
We perform the following operations on an empty stack which has capacity 2:
When operation 1 1 is performed, we insert 1 in the stack.
When operation 1 2 is performed, we insert 2 in the stack.
When operation 2 is performed, we remove the top element from the stack and print 2.
When operation 3 is performed, we print the top element of the stack, i.e., 3.
When operation 4 is performed, we print 0 because the stack is not empty.
When operation 5 is performed, we print 0 because the stack is size 1, which is not equal to its capacity.



A girl found that she had a 56 cm strip of ribbon. She could cut a cm off every second. How long would it take for her to cut 56 pieces? She can not fold the strip or stack two or more strips and cut them together.
Tip 1: To get 56 pieces, the girl must put only 55 cuts. i.e., she can cut 56 pieces in 55 seconds. After getting 54 pieces, she will have a 2 cm long piece. She can cut it into two with just one cut in 1 second.
Tip 2: Hence, a total of 55 seconds.


Consider an array of size four. The elements of the array are { -4, 5, 6, 1}.
The value of K is 4.
The subarrays whose sum is divisible by 4 are as follows:
[ -4 ]
[-4, 5, 6, 1]
[ 5, 6, 1]
Hence, there are three subarrays whose sum is divisible by 4.

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