Both the rounds took place at hackerrank.
Machine Coding[2 hours]:
Design Facebook (LLD) :
Implement the below APIs
public void post(int userId, int postId);
public void follow(int followerId, int followeeId);
public void unfollow(int followerId, int followeeId);
public List<Integer> getNewsFeed(int userId);
public List<Integer> getNewsFeedPaginated(Integer userId, Integer pageNumber);
public void deletePost(int postId);
I have code with me, if required please ask in the comments. too big to paste here.
DSA Round[1 hour] - pair interview:
- https://leetcode.com/problems/max-chunks-to-make-sorted-ii/
Note: The interviewer was a bit unprofessional, she told me we are going to solve 2 problems in 1 hour and she locked 1 problem and exposed 1 problem. After having spent half an hour, I was only able to pass 50% test cases of the 1st problem. I asked to try 2nd one but she didn't listen and asked me to solve 1st one only. And after 10 mins she ended the interview by saying I'm ending the interview. Sorry guys I'm unable to share the 2nd problem :(