Facebook|Sr Data Engineer|NY, USA|Oct 2020|SQL/Python|Nooffer

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-10-29Added By Anonymous
Source: Link

Company: Facebook
Role: Sr Data Engineer
Interview Stage: Phone Screen
Location: NY, USA
Year: 2020

Original Post Content:

No referral, this is for Sr data engineer role, location: NY USA
I had phone interview with data engineer.
I was able to solve only 3 SQL and 3 Python questions.

SQL Questions:

* Products/Sales/Promotions Schemas
1. Percentage of transactions between the start and end date of the promotion (hint: int/int gives int, so convert to float to get float).
2. Percentage of products on some columns (Columns where flags with 0s and 1s).
3. Select two media type counts (hint: use NOT LIKE ('%,%') to filter multimedia types).
I felt I was not confident on how to calculate percentages, but the interviewer helped me.

Python Questions:

* 1. Find a given character in a string (I solved it with a for loop instead of count() or Counter).
2. Replace None with the previous list item. This tricked me a little bit and took some time to solve. [The interviewer asked me not to update the existing list, instead create a new one].
Examples:
[None] ==> [None]
[] ==> []
[None,1,2] ==> [None,1,2]
[2,None,3] ==> [2,2,3]
[2,3,None,None,3] ==> [2,3,3,3]

All the best everyone!!!

Comments