Interview questions
Find a company or topic. Read the sources, then practice.
Loading the question library…
Find a company or topic. Read the sources, then practice.
Loading the question library…
Showing 826–850
Determine whether the array contains two equal elements whose indices differ by at most k — i.e., detect duplicates within a sliding window of size…
Companies: Amazon, Meta
Last reported Jan 2026
Given a sorted strictly increasing array of positive integers, find the k-th positive integer missing from the sequence. Observe that the count of missing numbers…
Companies: Meta
Last reported Jan 2026
Given a digit string and a target value, insert the binary operators +, -, and * between digits (without creating operands with leading zeros) to…
Companies: LinkedIn, Meta, Pinterest
Backtracking · Math · String
Last reported Jan 2026
Partition the given job times into k worker workloads so that the maximum sum assigned to any worker is as small as possible — a…
Companies: NVIDIA, Snowflake
Last reported Jan 2026
Companies: OpenAI
Code Quality & Maintainability · JavaScript & TypeScript
Last reported Jan 2026
Given an n×k cost matrix, choose a color for each house so that no two adjacent houses share the same color and the total painting…
Companies: LinkedIn
Last reported Jan 2026
The "Alien Dictionary" problem is a classic LeetCode question (specifically LeetCode Problem 269) that requires determining the alphabetical order of characters in a new…
Companies: OpenAI
Last reported Jan 2026
Companies: NVIDIA
Last reported Jan 2026
Companies: NVIDIA
Last reported Jan 2026
Given N aliens and a list of pairs indicating which aliens live on the same planet, determine the number of ways to pick two aliens…
Companies: Google
Last reported Dec 2025
Transform each word by leaving leading vowels but moving a leading consonant to the end, then append "ma" and an increasing number of 'a' characters…
Companies: Clio, Meta
Last reported Dec 2025
Design and implement a task queue system that manages tasks with ID, priority, and command properties, supporting operations to add tasks, retrieve highest priority tasks…
Companies: Apple
Last reported Dec 2025
Solve a modified version of Advent of Code Day 7 problem. Implement an algorithm to handle the specific requirements and constraints of this coding challenge.
Companies: OpenAI
Last reported Dec 2025
Given a list of inventory items with positive and negative amounts across multiple days, calculate and return a dictionary containing the total amount for each…
Companies: C3 Ai
Last reported Dec 2025
Given day, month, and year, determine which weekday that date falls on (one of Sunday–Saturday) by applying calendar arithmetic (e.g., Zeller's congruence) or a library…
Companies: Microsoft
Last reported Dec 2025
Design a data structure that supports taking snapshots of a set and querying the state of elements at specific snapshot versions. The structure should efficiently…
Companies: Databricks
Last reported Dec 2025
Given n machines with different capacities and m tasks, assign each task to the machine with the highest available capacity at that moment. Return the…
Companies: Microsoft
Last reported Dec 2025
Given a circular array of nonzero integers where each value indicates how many steps to jump forward or backward, determine whether there exists a cycle…
Companies: Oscilar
Last reported Dec 2025
Implement a file system that parses strings into 8-character blocks with validation for string length divisibility and maximum storage capacity. The system should reject…
Companies: Anchorage Digital
Last reported Dec 2025
Design and implement a functional alarm clock system that can set, trigger, and manage multiple alarms with appropriate time handling.
Companies: Mastercard
Last reported Dec 2025
Given a current alarm time and a target alarm time in HH:MM format, calculate the minimum number of scroll/shift operations needed to change the alarm…
Companies: Mastercard
Last reported Dec 2025
Design a job management system that schedules and processes jobs with priority levels (HIGH, NORMAL, LOW), where each job contains a list of strings to…
Companies: Anchorage Digital
Last reported Dec 2025
Given an n×n binary grid where 0s are open and 1s are blocked, return the length (number of cells) of the shortest 8-directionally connected path…
Companies: Amazon, Anduril, Meta
Array · Breadth-First Search · Matrix
Last reported Dec 2025
Implement a multi-map data structure that allows multiple values to be associated with a single key. The implementation should support basic operations like insert, retrieve…
Companies: Servicetitan
Last reported Dec 2025
Given a list of words and two distinct target words, find the minimum absolute index distance between any occurrence of the two targets. This is…
Companies: LinkedIn, Snowflake
Array · String
Last reported Dec 2025