Google Phone screening round
Anonymous User
1637

Hi everyone, I recently had google phone screen round.
Duration: 45 min
Level: easy-medium
No. of questions asked: 2
Firstly interviewer asked me to introduce myself then he directly got into coding question. Question is: Give 2 arrays such that they have difference between given arrays. given arrays contains duplicates.
Example 1:
A: [1,2,3,4] B:[1,2,3]
answer: [4] []
explaination: first array is A-B, second array is B-A

Example 2:
A: [1,2,2,2,3,3] B:[1,3,3,3]
answer: [2,2,2] [3]

2Q: This question is improvisation of previous question. Here interviewer asked me to give those 2 arrays in an order they appeared.

Example 1:
A: [1,3,2,3,4] B:[1,2,3]
answer: [3,4] []

Example 2:
A: [1,2,3,2,1,3] B:[1,2,3,4]
answer: [2,1,3] [4]

Comments (12)