Public task directory

Technical interview practice tasks

Find a question to practise. Browse by page, or open Practice to filter tasks by round, role and topic.

Page 3 of 152 · 7,273 tasks

Coding (Algo) · Hard · 60 min

Virtual List Offsets

Fenwick Tree · Hard A virtualized list receives row-height corrections while the user scrolls. Recomputing every prefix for every event causes long frames. Apply row-height updates and.

View task

Coding (Algo) · Hard · 60 min

Weighted Job Schedule

Binary search · Hard A maintenance worker can run one job at a time. Jobs have fixed windows and different recovery value. Return the maximum value of a non-overlapping subset of jobs. Input.

View task

Coding (Algo) · Hard · 65 min

Compatible Worker Assignment

Bipartite matching · Hard Each waiting job can run only on certain workers because of capabilities. Assigning the first available worker greedily can leave avoidable idle capacity. Return.

View task

Coding (Algo) · Hard · 45 min

Maximize Compatible Assignments

Bipartite matching · Hard A bounded assignment service pairs work items with compatible reviewers. A compatibility edge permits a pair but does not force it. Choosing the first free reviewer.

View task

Coding (Algo) · Easy · 25 min

Combine a Batch of Status Masks

Bit manipulation · Easy A compact diagnostic checksum combines a batch of 32-bit status masks using XOR. The input already contains the final masks: no filtering or reinterpretation of.

View task

Coding (Algo) · Easy · 25 min

Count Enabled Flags Across Records

Bit manipulation · Easy Each record stores 32 independent flags in an unsigned mask. An audit needs the total number of enabled flags across all records, not the number of distinct flag.

View task

Coding (Algo) · Easy · 25 min

Count Similar Configuration Pairs

Bit manipulation · Easy A diagnostic compares small batches of 32-bit configuration masks. Two records are similar when they differ in at most k flag positions. The batch is deliberately.

View task

Coding (Algo) · Hard · 55 min

Find the Most Different Mask Pair

Bit manipulation · Hard A test generator wants the pair of recorded masks with the greatest numeric XOR. It may contain one hundred thousand entries, so comparing all pairs is too expensive..

View task

Coding (Algo) · Easy · 20 min

Find the Unpaired Value

Bit manipulation · Easy A reconciliation export contains numeric IDs in arbitrary order. Every ID occurs exactly twice except one that occurs once. The export is already validated; your job.

View task

Coding (Algo) · Easy · 20 min

Find the Shared Name Prefix

Boundary handling · Easy A file-grouping tool suggests the beginning shared by every supplied name. It must preserve original spelling and may return an empty prefix. A name ending early.

View task

Coding (Algo) · Medium · 30 min

Read a Matrix in Spiral Order

Boundary traversal · Medium A visualization tool reveals a rectangular matrix one outer ring at a time. It begins at the top-left corner and travels clockwise. Every cell must appear exactly.

View task

Coding (Algo) · Medium · 35 min

Find a Rank With Bounded Storage

Bounded heap · Medium A telemetry collector needs the kth largest amount after reading a complete batch. It cannot reorder the supplied input and should retain only the leading k candidates..

View task

Coding (Algo) · Medium · 35 min

Keep the Largest Batch Values

Bounded heap · Medium A batch report shows the largest k recorded amounts in descending order. Equal values still represent separate entries and occupy separate slots. The batch can be large.

View task

Coding (Algo) · Medium · 35 min

Keep the Nearest Measurements

Bounded heap · Medium A diagnostic picker chooses k recorded values nearest to a requested target. It must break equal-distance ties consistently and preserve duplicate occurrences. A small.

View task

Coding (Algo) · Hard · 65 min

Map Repair Budget

Breadth first search · Hard An offline map permits crossing up to k blocked cells using a limited repair allowance. The fastest route may require preserving allowance for later. Find the.

View task

Coding (Algo) · Medium · 35 min

Shortest Clear Grid Route

Breadth first search · Medium A map viewer needs the shortest route across a small rectangular warehouse plan. Moving one cell costs one step; blocked cells cannot be entered. Unlike the.

View task

Coding (Algo) · Medium · 40 min

Visit Reachable Nodes in Queue Order

Breadth first search · Medium A graph-inspection tool shows the order in which breadth-first exploration reaches nodes from a selected start. The displayed order must be reproducible even.

View task

Coding (Algo) · Easy · 15 min

Reverse an ASCII Line

Character order · Easy A text utility reverses the characters of one ASCII line. Spaces at either edge, punctuation and letter case are part of the content. The supplied input adapter.

View task

Coding (Algo) · Medium · 40 min

Count Distinct Batch Orderings

Combinatorics · Medium A scheduler estimates how many different value sequences can be formed from a small batch. All entries must appear, but equal values are indistinguishable in the.

View task

Coding (Algo) · Medium · 40 min

Count Review Panels

Combinatorics · Medium A review coordinator chooses a panel of k people from n distinct eligible reviewers. Panel ordering is irrelevant. It needs an exact count without enumerating each.

View task

Coding (Algo) · Medium · 40 min

Detect a Connection Cycle

Cycle detection · Medium A graph validator checks whether a connection set contains a cycle. The input explicitly states whether links are directed. This matters because one undirected link.

View task

Coding (Algo) · Medium · 35 min

Find the First Repeated Link

Cycle detection · Medium A linked-record inspector follows next pointers from one head. A corrupted chain may loop forever, so the inspector needs the first node that would be visited a.

View task

Coding (Algo) · Hard · 65 min

Critical Service Links

Depth first search · Hard A service mesh must identify individual undirected links whose loss would disconnect part of the current network. Return every bridge edge by its original input.

View task

Coding (Algo) · Easy · 20 min

Depth of a Nested Index

Depth first search · Easy A hierarchy inspector reads a serialized binary tree and reports its maximum nesting depth. Missing nodes can leave unreachable values later in the array. Array.

View task

Coding (Algo) · Easy · 25 min

Find a Complete Path Total

Depth first search · Easy A binary decision-tree inspector attaches an integer adjustment to each node. It checks whether any complete root-to-leaf choice sequence has a requested sum..

View task

Coding (Algo) · Hard · 50 min

Count Cheapest Delivery Routes

Dijkstra · Hard A routing report needs the number of distinct cheapest routes, not just their shared cost. Parallel connections are separate choices. Strictly positive weights ensure.

View task

Coding (Algo) · Medium · 40 min

Find the Cheapest Directed Route

Dijkstra · Medium A service-routing graph assigns a non-negative cost to each directed connection. The routing tool needs the least total cost between two selected nodes. Direct links may be.

View task

Coding (Algo) · Medium · 40 min

List Destinations Within Budget

Dijkstra · Medium A route explorer lists every destination reachable within a total cost budget. The menu is ordered by cheapest cost first and node label second. It must include the.

View task

Coding (Algo) · Medium · 40 min

Count Out of Order Record Pairs

Divide and conquer · Medium A migration check compares the arrival order of numeric record keys with ascending order. It needs a count of all out-of-order pairs as a measure of disorder..

View task

Coding (Algo) · Medium · 40 min

Choose a Shipping Load

Dynamic programming · Medium A shipping planner chooses a subset of indivisible packages. Each has a weight and a benefit value; the vehicle has a fixed capacity. Package identities are.

View task

Coding (Algo) · Medium · 40 min

Choose Nonadjacent Maintenance Slots

Dynamic programming · Medium A maintenance planner can select slots from an ordered schedule, but adjacent slots cannot both be used because a recovery interval is required. Each slot has a.

View task

Coding (Algo) · Medium · 35 min

Choose the Most Valuable Bookings

Dynamic programming · Medium A single resource receives booking requests with a start time, end time and value. Requests may overlap, and selecting the earliest finish or highest individual.

View task

Coding (Algo) · Easy · 25 min

Count Allowed Jumps

Dynamic programming · Easy A board-game simulator has positions numbered from zero to n. A player jumps forward by one or two positions and cannot land on blocked positions. The task counts.

View task

Coding (Algo) · Medium · 35 min

Count Clear Routes

Dynamic programming · Medium A grid planner counts routes through a rectangular layout with blocked cells. A route always moves one cell right or down, so it never revisits a cell. The.

View task

Coding (Algo) · Medium · 40 min

Count Valid Parenthesis Structures

Dynamic programming · Medium A parser test planner wants to count valid nesting structures containing a fixed number of parenthesis pairs. It needs the count only, not a list of strings..

View task

Coding (Algo) · Medium · 40 min

Count Ways to Make an Exact Amount

Dynamic programming · Medium A packing tool can use any number of units from each available denomination. It needs to count the different combinations producing an exact amount. The order of.

View task

Coding (Algo) · Medium · 40 min

Find the Cheapest Monotone Route

Dynamic programming · Medium A grid records the cost of visiting each cell in a planned processing route. The route starts at the top left and finishes at the bottom right, moving only right.

View task

Coding (Algo) · Medium · 40 min

Find the Strongest Continuous Period

Dynamic programming · Medium A service records signed changes in a running metric. An analyst wants the most beneficial continuous period, with no skipped observations inside that period..

View task

Coding (Algo) · Medium · 40 min

Locate the Strongest Continuous Period

Dynamic programming · Medium A report must highlight the exact period with the greatest net gain in a signed metric stream. Several periods can have the same gain, so a stable earliest-range.

View task

Coding (Algo) · Medium · 40 min

Measure the Shared Ordered Sequence

Dynamic programming · Medium A comparison tool summarizes two short event-code strings by the longest sequence of codes they share in the same relative order. Unmatched codes may be skipped..

View task

Coding (Algo) · Hard · 60 min

Minimal Sync Deletions

Dynamic programming · Hard Two offline event histories must agree on a shared order. Reconciliation may delete events from either history but cannot reorder or insert them. Return the.

View task

Coding (Algo) · Hard · 60 min

Minimum Capability Bundle

Dynamic programming · Hard A deployment requires a fixed set of capabilities. Each available package provides a subset at a cost; buying overlapping packages is allowed. Return the cheapest.

View task

Coding (Algo) · Medium · 40 min

Minimum Text Edits

Dynamic programming · Medium A text comparison tool reports how many single-character changes transform one short identifier into another. Its edit model is deliberately small: insert.

View task

Coding (Algo) · Medium · 35 min

Minimum Token Payment

Dynamic programming · Medium A payment simulator supports a configured set of positive token denominations. Tokens can be reused without limit. The simulator needs the smallest token count.

View task

Coding (Algo) · Hard · 75 min

Offline Download Plan

Dynamic programming · Hard A mobile reader chooses indivisible content packages for offline storage. The UI must show the actual selected packages, not just their total value. Equal-value.

View task

Coding (Algo) · Hard · 75 min

Shortest Shared Replay

Dynamic programming · Hard Two devices have ordered action histories. A server wants the shortest replay containing both histories as subsequences, with deterministic text on ties. Return.

View task

Coding (Algo) · Medium · 40 min

Split a Batch Into Equal Totals

Dynamic programming · Medium A batch contains indivisible non-negative workload amounts. A planner wants to know whether the entries can be assigned to two groups with the same total. Every.

View task

Coding (Algo) · Medium · 35 min

Split Text Into Known Tokens

Dynamic programming · Medium A compact event string has lost its separators. A parser must decide whether the complete string can be reconstructed by concatenating words from a supplied.

View task