WorksheetsTriTech Quest Round-3
Total questions: 6
Worksheet time: 30mins
Given a string s containing only '(' , ')' , '{' , '}' , '[' , ']', which program is valid
A
B
C
D
Find Correct Logic !
Remove duplicates from a sorted array in-place so that each unique element appears only once.
Return k, the count of unique elements.
A
B
C
D
Find the longest increasing path where every next number is strictly greater.
1 → 3 → 5 → 4 → 8 → 6 → 7 → 2
7 → 1 → 4 → 2 → 6 → 3 → 5 → 8
1 → 4 → 2 → 6 → 3 → 5 → 8 → 7
7 → 4 → 2 → 6 → 3 → 5 → 1 → 8
7 → 1 → 4 → 2 → 6 → 3 → 5 → 8
Write an SQL query to find the Top 3 departments with the highest total salary growth over the years.
Salary growth = difference between a year’s salary and the previous year’s salary for each department.
A → B → C → D → E
B → A → D → C → E
A → C → B → D → E
C → A → B → E → D
Given heights of bars in a histogram, find the largest rectangle area
Find the flow output ! !
1 → 2 → 3 → 4 → 5 → 6 → 7
1 → 3 → 2 → 4 → 5 → 6 → 7
5 → 1 → 2 → 3 → 4 → 6 → 7
1 → 2 → 5 → 3 → 4 → 6 → 7
Given two strings needle and haystack, return the index of the first occurrence of needle in haystack 0, or -1 if needle is not part of haystack.
6 ->5->2->3->4->1
Output=-1
5->6->2->3->4->1
Output=-1
6->2->5->3->4->1
Output=0
5->6->3->4->1
Output=0
