Tip 1 : Keep learning and practice daily.
Tip 2 : Ask seniors about their journey.
Tip 1 : Have some projects on resume and be ready to answer anything surrounding that.
Tip 2 : Don't fake any skillset you have.
Technical Questions and two coding questions were asked in this round.



Input: 'arr' = [1, 2, 1, 2, 1]
Output: 3
Explanation: The longest bitonic subsequence for this array will be [1, 2, 1]. Please note that [1, 2, 2, 1] is not a valid bitonic subsequence, because the consecutive 2's are neither strictly increasing, nor strictly decreasing.
n=int(input())
arr = list(map(int,input().split()))
tokens = [1]*n
for i in range(1,n):
for j in range(i):
if (arr[i] < arr[j] and tokens[i] < tokens[j] + 1):
tokens[i] = tokens[j] + 1
print(max(tokens))



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.
The idea is to traverse every array element and find the highest bars on the left and right sides. Take the smaller of two heights. The difference between the smaller height and the height of the current element is the amount of water that can be stored in this array element.
It was a simple DS Based round. Only one coding question was asked in this round



1 2 3 4
5 6 7 8
1 9 2 3
In this example, the maximum value is 8 (mat[2][1]-mat[0][0]).
n=int(input())
arr=list(map(int,input().split()))
m=-9999999
for i in range(n-1):
for j in range(i+1,n):
m=max(m,arr[j]-arr[i])
print(m)
It was a Technical round purely based on DBMS, Some basic questions about DBMS were asked
Tip 1 : Learn the concepts of DBMS.
Tip 2 : Read from online resources and practice well for SQL queries also study on optimising queries.
It was a Basic HR round some basic HR Questions were asked
Tip 1 : Try to speak fluently
Tip 2 : Be honest and reply with confidence

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?