wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

TriTech Quest Round-3

Total questions: 6

Worksheet time: 30mins

Name
Class
Date
1.

Given a string s containing only '(' , ')' , '{' , '}' , '[' , ']', which program is valid

a)

A

b)

B

c)

C

d)

D

2.

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)

A

b)

B

c)

C

d)

D

3.

Find the longest increasing path where every next number is strictly greater.

a)

1 → 3 → 5 → 4 → 8 → 6 → 7 → 2

b)

7 → 1 → 4 → 2 → 6 → 3 → 5 → 8

c)

1 → 4 → 2 → 6 → 3 → 5 → 8 → 7

d)

7 → 4 → 2 → 6 → 3 → 5 → 1 → 8

e)

7 → 1 → 4 → 2 → 6 → 3 → 5 → 8

4.

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)

A → B → C → D → E

b)

B → A → D → C → E

c)

A → C → B → D → E

d)

C → A → B → E → D

5.

Given heights of bars in a histogram, find the largest rectangle area

Find the flow output ! !

a)

1 → 2 → 3 → 4 → 5 → 6 → 7

b)

1 → 3 → 2 → 4 → 5 → 6 → 7

c)

5 → 1 → 2 → 3 → 4 → 6 → 7

d)

1 → 2 → 5 → 3 → 4 → 6 → 7

6.

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.

a)

6 ->5->2->3->4->1

Output=-1

b)

5->6->2->3->4->1

Output=-1

c)

6->2->5->3->4->1

Output=0

d)

5->6->3->4->1

Output=0