Panda Guru LogoPanda
Guru

Uber | OA | SDE2

Round 1

Questions:

  1. Given arrays a[], b[], c[] and signs[], return a boolean array based on the condition a[i] signs[i] b[i] = c[i].

  2. 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.

  3. Flatten the matrix by spiral iteration and output the sum of elements whose index is divisible by 3.

  4. There is an infinite number line and Q queries. One query type is BUILD X which builds an obstacle on point X. Another query type is CHECK Y N which checks if we can build N obstacles before point Y. Return the answer for all CHECK query types.

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.