I've gotten a lot from this community and want to give back. These are questions from my phone screen, for a data engineering role. The key to my success was thinking out loud, to give the interviewer insight into my thought process as I coded.
Also! When I got stuck on special cases (e.g., syntax stuff I'd ordinarily Google), I wasn't scared to ask the interviewer for help... for example, I wasn't sure if .split() happened in place or if I needed to create a new object to store the result, and I just asked.
Write a function to identify the words that appear in one sentence but not the other (case sensitive).
Example
"This is the first sentence""And this is the second sentence"['This', 'first', 'And', 'this', 'second']Given an array with 'empty' spots, fill those empty spots with the preceding number.
Example
[8, None, 3][8, 8, 3]For the SQL portion, I was given a database schema and asked to calculate ratios from the provided four tables. I wasn't given any details on the contents of the tables, besides a listing of their column names. I was just left to ask questions about what I needed. Themes throughout my solutions:
WHERE statements to filter (and wildcard characters to filter string-valued fields)JOINs to pull together multiple tables (e.g., numerator in one table and denominator in another)