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 taskPublic task directory
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
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 taskCoding (Algo) · Hard · 60 min
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 taskCoding (Algo) · Hard · 65 min
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 taskCoding (Algo) · Hard · 45 min
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 taskCoding (Algo) · Easy · 25 min
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 taskCoding (Algo) · Easy · 25 min
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 taskCoding (Algo) · Easy · 25 min
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 taskCoding (Algo) · Hard · 55 min
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 taskCoding (Algo) · Easy · 20 min
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 taskCoding (Algo) · Easy · 20 min
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 taskCoding (Algo) · Medium · 30 min
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 taskCoding (Algo) · Medium · 35 min
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 taskCoding (Algo) · Medium · 35 min
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 taskCoding (Algo) · Medium · 35 min
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 taskCoding (Algo) · Hard · 65 min
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 taskCoding (Algo) · Medium · 35 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Easy · 15 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 35 min
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 taskCoding (Algo) · Hard · 65 min
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 taskCoding (Algo) · Easy · 20 min
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 taskCoding (Algo) · Easy · 25 min
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 taskCoding (Algo) · Hard · 50 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 35 min
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 taskCoding (Algo) · Easy · 25 min
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 taskCoding (Algo) · Medium · 35 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Hard · 60 min
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 taskCoding (Algo) · Hard · 60 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 35 min
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 taskCoding (Algo) · Hard · 75 min
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 taskCoding (Algo) · Hard · 75 min
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 taskCoding (Algo) · Medium · 40 min
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 taskCoding (Algo) · Medium · 35 min
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