The phone screen used the familiar Pins Violation Log problem.
The input was a list of violation logs already sorted by timestamp. Each record had the form [postId, policy, timestamp]. There were five parts:
- Count unique posts by policy.
- Get the policies violated by a post.
- Count unique posts at a timestamp.
- Count unique posts in a time range.
- Count violations by policy in a time range.
I had to run test cases during the interview. I first explained my approach for each part, and once the interviewer confirmed it, I started writing code. I completed the first three parts and got their tests to pass. For the fourth and fifth parts, I explained the solutions clearly, but I ran out of time before I could finish implementing them.
Given Pinterest's bar, I think I probably failed.
Discussion
Loading comments…