Netflix phone screen interview

Netflix phone screen interview

Netflix - Senior Software Engineer (Frontend) - Phone screen

Level: L4 (senior level)
Education: Bachelor’s degree
Years of Experience: 10
Questions Asked:

  1. Given a JSON object (a family tree), print the people names, simple DFS
    example input: json format: {parentName: “sanhua”, children: [{parentName: “xianluo”},{parentName: “lihua”, children: […]}, …]}
    output: [“sanhua”, “xianluo”…]

  2. Create Your Own Jest
    input: implement a few methods,
    output: make this work expect(add(2, 2)).toBe(greaterThan(3))

  3. getVideosWithLikes (Promise Orchestration)

Input: You have two unstable APIs ( getVideos, getVideosLikes). One is critical (Videos), one is “nice-to-have” (Likes).
output: return data from these 2 APIs, If getVideos fails, the whole app fails. If getVideoLikes fails, you must still show the videos with null or 0 likes.
Solution: just wrap getVideosLikes with try/catch