Meta Data Scientist Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.
Compute maximum score using up to 3 categories
Problem A library runs a summer reading program. Each book a student reads earns a certain number of points, and each book belongs to a category. A st...
Identify trees, lists, and array search costs
Answer all parts concisely and justify time complexities. a) A data model requires each node to have at most two children and a single parent. Name th...
Design robust group size limiting for calls
Design the admission-control and enforcement algorithm to limit group-call size under real-world race conditions. Constraints: multiple SFU edges in m...
Implement randomized Quickselect without k-shift bug
Implement randomized Quickselect to return the k-th largest element (1-based k, 1 ≤ k ≤ n) from an unsorted integer array. Use an in-place partition t...
Compute binary-tree diameter via return-only DFS
Given the root of a binary tree, compute its diameter defined as the number of edges on the longest path between any two nodes. Implement a DFS that r...
Compute 95th-percentile call concurrency
Given N call sessions as half-open intervals [start, end) in UNIX seconds, design an algorithm to compute the 95th percentile of per-minute concurrent...
Optimize Travel Costs and Generate Rotational Symmetric Numbers
Scenario You are building a travel-search engine that must 1) show customers the cheapest round-trip they can book if departure and return prices vary...
Solve Data-Structure Problems in Python Interview Round
Scenario Interview coding round focusing on simple data-structure problems in Python. Question Given an integer, rearrange its digits (considering onl...
Optimize Oculus Data Streaming with Bandwidth Constraints
Scenario Algorithmic screening for Meta VR/AR teams covering Oculus data streaming and geometric optimization. Question Oculus: Given an array frame_s...