Google | Front End Phone Interview [Rejected]
Anonymous User
1263

Question

Suppose you have two JSON "doc1" and "doc2". doc2 json is created by modifiying the doc1 JSON.
Return the difference between the doc1 and doc2.
Note: Interviewer said the return type can be decided by the me.

Second Part of question:

Once you identify the difference. Create a separate function pass the difference and doc1, add both of them to create the doc2.

What happened in interview.

I understood the question and asked the interviewer about the edge cases. I was not able to think how would I find the difference let alone creating the doc2 from doc1 and difference. Even though I was struggling with finding the answer. I never stopped thinking out aloud. And I think I might have said a whole bunch of nonsense to the interviewer.

Interviewer was friendly and was guiding me throughout the interview process. Finally, he gave me to solve isEqual(obj1, obj2) which you can find on BFE.dev.

I was preparing the questions from BFE.dev but as the recruiter said that Google likes to ask DSA question I focused a lot on Leetcode. But during this whole interview process. I believe I now have a better understanding of DSA than I previously had. I won't give excuses. I fell short on my test on becoming a Front end developer at Google.

I'll keep trying hard. Solve more problems from BFE.dev. Please let me know what platform do you use to study for Front-End Interviews.

Comments (5)