Google Data Engineer ||| Screening Round
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-03-18Added By Anonymous
Source:Ā Link
š§ Experience: unknown
ā Outcome: Mostly will be eliminated from 1st round itself
š° Compensation: unknown
š Location: unknown
š¢ Company: Google
š Education: unknown
š Benefits: unknown
š Offer Date: unknown
I just had google interview 1st round - Screening round(45 mins). For a data engineer, I was prepared for leetcode easy, med questions. But I felt question asked was hard. You Need to merge 2 documents based on some rules. These documents are in form of Nodes.
ā Outcome: Mostly will be eliminated from 1st round itself
š° Compensation: unknown
š Location: unknown
š¢ Company: Google
š Education: unknown
š Benefits: unknown
š Offer Date: unknown
I just had google interview 1st round - Screening round(45 mins). For a data engineer, I was prepared for leetcode easy, med questions. But I felt question asked was hard. You Need to merge 2 documents based on some rules. These documents are in form of Nodes.
Node{
String Name;
String Value;
List<Node> childNodes;
}
Node merge(Node t1, Node t2):
/*
Define a function which will merge documents based on following rules:
1. Its a n-ary tree. If name of child nodes of t1 & t2 matches, Take value from t2 node.
1.1. For child nodes, apply same rules
1.2. Presever the order
2. Merge unmatched nodes from t1. Keeping order.
3. Merge unmatched nodes from t2. keeping order
Example
Root : t1
A : alpha
B : beta
C : Ceta
C : xz
D : zy
A : dolce
Root : t2
A : beta
X : lk
E : theta
Result
A : beta
B : beta
C : Ceta
X : lk
C : xz
D : zy
A : dolce
E : Theta
I could not solve this. Mostly will be eliminated from 1st round itself