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 3,776–3,800
Given a grid/graph with candidate infected cells and K virus variants that spread over time according to local adjacency rules (and possibly obstacles), find the…
General practice
Find the earliest time you can travel from start to destination on a grid/graph where water levels (or cell safety thresholds) change over time so…
General practice
Given a permutation order that replaces characters with '*' over time, find the minimum t such that the number of substrings containing at least one…
General practice
Given locks with required energies and a sword whose per-minute gain x starts at 1 and increases by k after each break, each lock takes…
General practice
Given rules for producing blocks (workers/machines with build times, possible replication or combination rules) and a target number of blocks, find the minimum time needed…
General practice
Companies: Amazon, Google
Binary Search · Math
Pick the minimum set of integer time points to turn the computer on so that for each task i, at least duration_i chosen points lie…
General practice
Given per-bus trip durations, find the minimum time T such that the total trips completed ∑ floor(T / time[i]) across all buses is at least…
General practice
Given several piles of grains and rules for how grains can be consumed (e.g., a limited number of eaters with given/adjustable rates or allowed split…
General practice
Each tire's successive lap times grow multiplicatively and you can swap tires at a fixed changeTime; find the minimum time to complete numLaps by optimally…
General practice
Given monsters with specified health/spawn/position attributes and a player constrained by weapon damage, rate/cooldowns or limited attack resources, find the minimal time by…
General practice
Given initial values nums1 and per-second growth rates nums2, every second all nums1[i] increase by nums2[i] and you may then reset one chosen element to…
General practice
Given a string of balloon colors and a removal cost per balloon, remove balloons so no two adjacent colors are equal while minimizing total removal…
General practice
Find the minimum time to reach node n-1 from node 0 in a directed temporal graph where each edge can be traversed in one unit…
General practice
Given a binary string, find the minimum cost to remove all '1' characters where popping a car from either end costs 1 and deleting any…
General practice
Given mechanics where a mechanic of rank r needs r * n^2 minutes to fix n cars, find the minimum time T such that all…
General practice
Given a string and integer k, you repeatedly remove the first k characters and append any k characters to the end; compute the minimum positive…
General practice
Given a string and integer k where each second you remove the first k characters and append any k characters, find the minimum positive t…
General practice
Schedule at-most-k-person crossings and single-person returns to get all n people across while minimizing total time, where each trip takes max(time of group) ×…
General practice
Find the minimum time to reach the bottom-right of an m×n grid where each cell specifies the earliest time it can be visited and each…
General practice
Given a tree (or connected graph) with certain nodes marked as houses and unit travel time along edges, compute the minimum time to start at…
General practice
Find the minimum travel time from node 0 to every node in a weighted undirected graph under the constraint that each node must be reached…
General practice
Given an ordered list of integer-coordinate points, find the minimum total seconds to visit them in sequence when in one second you may move 1…
General practice
Given nums1 and nums2, you may swap any two indices in nums1 at cost equal to the sum of their indices; find the minimum total…
General practice