Round 1
Questions:
-
Given arrays
a[]
,b[]
,c[]
andsigns[]
, return a boolean array based on the conditiona[i] signs[i] b[i] = c[i]
. -
Given a sentence, calculate the absolute difference of vowels and consonants for each word and return a list of strings sorted by the lowest difference. If two words have the same difference, return the lexicographically smaller one first.
-
Flatten the matrix by spiral iteration and output the sum of elements whose index is divisible by 3.
-
There is an infinite number line and Q queries. One query type is
BUILD X
which builds an obstacle on pointX
. Another query type isCHECK Y N
which checks if we can buildN
obstacles before pointY
. Return the answer for allCHECK
query types.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.