Netflix计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(37)
OOD(4)
Algorithm(12)
System Design(16)
高频题(0)
Math(0)
全部(37)
OOD(4)
Algorithm(12)
System Design(16)
高频题(0)
Math(0)
1.Count of Smaller Numbers After Self
2.Bag-of-Words and Cosine Similarity
3.Contact Tracing System Design
4.Commerce Model for Video Content
5.Shortest Path Algorithm
6.Warehouse Shortest Path Data Model
7.Describe a complex system you've recently worked on
8.Adapted LeetCode Problem
9.System Design Evaluation
10.Coding Challenge
11.Compare HTTP1 and HTTP2
12.Implement Notification Alert in React
13.Implement SQS with Dead Letter Queue and Visibility Timeout
14.Design a Notification System
15.Implement a Hash Map
16.Word Search Algorithm
17.Find All Null Paths in a JSON Object
18.Describe the most challenging bug you've encountered and how you resolved it.
19.Describe a project you are most proud of.
20.Render a histogram from a map
21.Convert an array to a map in JavaScript
22.Effects of modifying prototypes in JavaScript
23.Describe JavaScript inheritance
24.Explain JavaScript closures
25.Detailed System Design
26.LRU Cache Variant Problem Solving
27.Concurrency in System Design
28.LeetCode Logistics Problem
29.Determine Interval Overlap
30.Design a Parent and Child Class
31.Scaling BFS for Large Graphs
32.Coding a Time-Based Key-Value Store
33.Optimizing Algorithm for Finding Users with Similar Video History
34.System Design for Free Trial Eligibility Verification
35.Working in Infrastructure
36.Experience with Distributed Systems
37.Implement a Waterfall Layout Photo Wall
1. Count of Smaller Numbers After Self
You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elements to the right of nums[i].

 

Example 1:

Input: nums = [5,2,6,1]
Output: [2,1,1,0]
Explanation:
To the right of 5 there are 2 smaller elements (2 and 1).
To the right of 2 there is only 1 smaller element (1).
To the right of 6 there is 1 smaller element (1).
To the right of 1 there is 0 smaller element.

Example 2:

Input: nums = [-1]
Output: [0]

Example 3:

Input: nums = [-1,-1]
Output: [0,0]

 

Constraints:

  • 1 <= nums.length <= 105
  • -104 <= nums[i] <= 104
2. Bag-of-Words and Cosine Similarity
Compute bag-of-words representations for two documents and compute the cosine similarity between the two vectors. Assume the vocabulary consists of all unique words present in either document. The bag-of-words vector representation for a document should contain a 1 if a word is present in the document one or more times, and a 0 otherwise.
3. Contact Tracing System Design
Design a contact tracing system similar to those used during the COVID-19 pandemic. The system should (1) maintain a 2-week rolling log of encounters on mobile devices, and (2) use a breadth-first search (BFS) algorithm to trace contacts when a user reports a COVID infection, leveraging Cassandra for log storage.
4. Commerce Model for Video Content
Design a commerce model that facilitates (1) purchasing access to download videos and (2) subscribing to a video creator's content.
5. Shortest Path Algorithm
Write an algorithm that determines the shortest path from point 'a' to point 'b' in the warehouse, and returns this path as an array.