Netflix frontend engineer interviews emphasise JavaScript, DOM manipulation, CSS, accessibility, browser APIs, and UI component architecture.
M x N grid of security zones. Each cell contains one of the following values: - 1 -- the zone is cleared - 0 -- the zone...Input: 2D grid[A, B] means task A must complete before task B can start....Input: Graph (nodes and edges)[start, end] includes both endpoints. Find the maximum number of...Input: Listscores where scores[i] is the...Input: Arrayarr, return its one-hot encoded matrix as a 2D array. In a one-hot encoding: - Each row represents one element from arr. -...Input: Matrix (2D array)customerIds - a list of distinct customer IDs -...Input: ListgetRecommendedGenres(genres: List[List[int]], start: int) -> List[int] which outputs all genres reachable from the start genre in any order.Example 1:genres = [[1,2],[2,3],[3,4],[5],[]], start = 0[1, 2, 3, 4]genres = [[1,2],[],[3],[],[]], start = 1[]1 <= len(genres) <= 10000 <= genres[i].length <= 100int representing session durations where each duration is the time in seconds a user has spent watching content, return the maximum number of unique sessions in any continuous window of time.maxUniqueSessions(durations: List[int], k: int) -> int that returns an int representing the maximum number of unique sessions in any window of length k.Example 1:durations = [1, 2, 3, 2, 4, 1], k = 44durations = [3, 3, 3, 3, 3], k = 211 <= len(durations) <= 10^50 <= durations[i] <= 10^51 <= k <= len(durations)WatchList that allows users to manage their watchlist with the following features:add(contentId: string): Adds a content ID to the watchlist.remove(contentId: string): Removes a content ID from the watchlist.getAll() -> List[string]: Returns a list of all content IDs in the watchlist.contains(contentId: string) -> bool: Checks if a content ID is present in the watchlist.Example 1:watchlist = new WatchList(); watchlist.add('content123'); watchlist.getAll()['content123']contentId strings are unique and valid.Router to manage routes and navigation within the application, with the following functionality:addRoute(path: string, component: Function) -> void: Adds a new route with an associated component.navigate(path: string) -> void: Navigates to the specified route, rendering the associated component.getCurrentRoute() -> string: Returns the current route.Example 1:router = new Router(); router.addRoute('/home', Home); router.addRoute('/about', About); router.navigate('/home'); router.getCurrentRoute()'/home'Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free