Meta Data Engineer Python Technical Interview Questions
--
If you’re interviewing for Meta as a Data Engineer and you’re looking for close-to-actual or practice questions that can help you prepare, then you’re in the right article.
I’ve interviewed with Meta before I decided to join my current company. I completed their live coding technical interview (5 SQL and 5 python questions) so some of the python questions I’ll be sharing is very likely to be similar to what you’ll be asked.
In addition, I will be sharing some practice questions that I’ve collected from different Data Engineers who have also interviewed with Meta. I found all of these questions useful and similar to the questions I have received.
During the interview, you will have very limited time so prior to that make sure you use these questions to practice and time yourself.
Python Practice Questions:
- Replace None value with previous value present in a list.
- Given a dictionary, print the key for nth highest value present in the dict. If there are more than 1 record present, for nth highest value then sort the key and print the first one alphabetically.
- Given two sentences, print the words those are not present in either of the sentences. (If one word is present twice in 1st sentence but not present in 2nd sentence then you have to print that word too).
- Write a function to return the number of times a character appears in a string. The character can be the empty string.
- Complete a function that returns a list containing mismatched words in two strings. The return list can be in any order.
- Given a list of ints, balance the list so that each int appears equally in the list. Return a dictionary where the key is the int and the value is the count needed to balance the list.
- Given an array of integers, we would like to determine whether the
array is monotonic (non-decreasing/non-increasing) or not. Examples: // 1 2 5 5 8: true // 1 4 6 3: false - Calculate the average word length. For the given set of words return the average word length.
- Write a function to count the number of times each character appears
in a string and rewrite the string in that format.
Eg. “I am back.” should become “i1 2a2m1b1c1k1.1” - Match all words in a document against a name dictionary and anonymize them using a hash.
- Balance a string., i.e., How many additional literals needed
to evenly balance the string. String is made of a-j and 0–9 where alphabets marks the opening and numbers as closing.
For e.g., ab00a. This is unbalanced since it requires pair of b with 1,
and additional 0 occurs before “a” ie., missing opening pair and later “a”
without its closing number pair.. Result : 3 E.g., bj19 is balanced so result.
Usually they start with the SQL questions and the amount of time you have for python depends on how fast you finish the first part. The SQL part was pretty basic and they would just give you a table and ask you to do some queries.
Open up that jupyter notebook or any ide and get coding.
Let’s connect: https://twitter.com/itskathleenlara