Coding (Algo) · Medium · 30 min
Navigation Breadcrumbs
Algorithm: Ancestor traversal Difficulty: Medium Time: 30 minutes Goal Return root-to-page IDs or null when the target is missing, a parent is missing or a cycle is encountered.
View taskPublic task directory
Every entry below is a crawlable link to a unique public task page. This directory complements the interactive filters and keeps the complete catalog connected through standard pagination.
Page 1 of 386 · 18,491 tasks
Coding (Algo) · Medium · 30 min
Algorithm: Ancestor traversal Difficulty: Medium Time: 30 minutes Goal Return root-to-page IDs or null when the target is missing, a parent is missing or a cycle is encountered.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Arithmetic Difficulty: Easy Time: 25 minutes Goal Return the missing sequence number without sorting the batch.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Arrays Difficulty: Easy Time: 20 minutes Goal Return the values after removing exactly the nth entry from the end while preserving the order of the others.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Backtracking Difficulty: Medium Time: 40 minutes Goal Count subsets of exactly k distinct indexes whose values sum to the target amount.
View taskCoding (Algo) · Hard · 55 min
Algorithm: Backtracking Difficulty: Hard Time: 55 minutes Goal Count every valid full-board queen placement with no shared row, column or diagonal.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Backtracking Difficulty: Medium Time: 40 minutes Goal Count index subsets whose combined XOR equals the target, including the empty selection when appropriate.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Binary search Difficulty: Easy Time: 25 minutes Goal Count all entries between the supplied lower and upper bounds including both endpoints.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Binary search Difficulty: Easy Time: 25 minutes Goal Find the first exact occurrence of the target in the sorted keys or report that it is absent.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Binary search Difficulty: Easy Time: 25 minutes Goal Return the first index whose value is at least target, or nums.length if no such index exists.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Binary search Difficulty: Easy Time: 25 minutes Goal Return the allowed value closest to the target and choose the smaller value on an equal-distance tie.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Binary search Difficulty: Easy Time: 25 minutes Goal Return the first index whose value is strictly greater than the target code.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Binary search Difficulty: Medium Time: 40 minutes Goal Return the minimum whole-number capacity that ships every package within the allowed number of days.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Binary search Difficulty: Medium Time: 40 minutes Goal Return the length of the longest strictly increasing subsequence without reconstructing the chosen values.
View taskCoding (Algo) · Medium · 45 min
Algorithm: Binary search Difficulty: Medium Time: 45 minutes Goal Build an in-memory revision index and answer each record lookup at its own cutoff time.
View taskCoding (Algo) · Medium · 45 min
Algorithm: Binary search Difficulty: Medium Time: 45 minutes Goal Return suggestions after each added character.
View taskCoding (Algo) · Medium · 30 min
Algorithm: Binary search tree Difficulty: Medium Time: 30 minutes Goal Return whether every reachable node satisfies the strict binary-search ordering against all of its ancestors.
View taskCoding (Algo) · Hard · 60 min
Algorithm: Binary search Difficulty: Hard Time: 60 minutes Goal Apply row-height updates and answer the pixel offset immediately before a requested row.
View taskCoding (Algo) · Hard · 60 min
Algorithm: Binary search Difficulty: Hard Time: 60 minutes Goal Return the maximum value of a non-overlapping subset of jobs.
View taskCoding (Algo) · Hard · 65 min
Algorithm: Bipartite matching Difficulty: Hard Time: 65 minutes Goal Return the maximum number of jobs that can run at once with one job per worker.
View taskCoding (Algo) · Hard · 45 min
Algorithm: Bipartite matching Difficulty: Hard Time: 45 minutes Goal Return the largest number of compatible pairs such that no left item or right reviewer is used more than once.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Bit manipulation Difficulty: Easy Time: 25 minutes Goal Combine every input mask with XOR and return the result as one unsigned 32-bit integer.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Bit manipulation Difficulty: Easy Time: 25 minutes Goal Count all set bits across every supplied 32-bit mask and return their total.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Bit manipulation Difficulty: Easy Time: 25 minutes Goal Count unordered pairs of distinct record indexes whose masks differ in at most k bits.
View taskCoding (Algo) · Hard · 55 min
Algorithm: Bit manipulation Difficulty: Hard Time: 55 minutes Goal Return the largest unsigned XOR attainable using two different input indexes.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Bit manipulation Difficulty: Easy Time: 20 minutes Goal Return the single integer that occurs once using constant extra memory.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Boundary handling Difficulty: Easy Time: 20 minutes Goal Return the longest case-sensitive prefix shared by every supplied name without changing or reordering the names.
View taskCoding (Algo) · Medium · 30 min
Algorithm: Boundary traversal Difficulty: Medium Time: 30 minutes Goal Return a flat array of all matrix values in clockwise spiral order without modifying the matrix.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Bounded heap Difficulty: Medium Time: 35 minutes Goal Return the kth largest value with duplicates counted as separate positions while using at most O(k) additional storage.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Bounded heap Difficulty: Medium Time: 35 minutes Goal Return the largest min(k,n) values in descending numeric order while retaining duplicate occurrences and using only bounded.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Bounded heap Difficulty: Medium Time: 35 minutes Goal Return up to k values ordered by distance to target then value then original index using O(k) additional selection storage.
View taskCoding (Algo) · Hard · 65 min
Algorithm: Breadth first search Difficulty: Hard Time: 65 minutes Goal Find the fewest moves from the top-left to bottom-right cell with at most k obstacle entries.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Breadth first search Difficulty: Medium Time: 35 minutes Goal Return the minimum number of moves from the top-left to the bottom-right clear cell or -1 if no route exists.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Breadth first search Difficulty: Medium Time: 40 minutes Goal Return the breadth-first visitation sequence from source while considering each visited node’s outgoing neighbors in.
View taskCoding (Algo) · Easy · 15 min
Algorithm: Character order Difficulty: Easy Time: 15 minutes Goal Return the same ASCII characters in reverse order preserving every space and punctuation character.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Combinatorics Difficulty: Medium Time: 40 minutes Goal Count distinct value orderings that use every input occurrence exactly once.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Combinatorics Difficulty: Medium Time: 40 minutes Goal Return the exact number of distinct unordered panels of size k drawn from n reviewers.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Cycle detection Difficulty: Medium Time: 40 minutes Goal Return whether any component contains a cycle under the declared directed or undirected multigraph rules.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Cycle detection Difficulty: Medium Time: 35 minutes Goal Return the index where the reachable chain first enters its cycle using constant auxiliary space or null if the chain.
View taskCoding (Algo) · Hard · 65 min
Algorithm: Depth first search Difficulty: Hard Time: 65 minutes Goal Return every bridge edge by its original input index.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Depth first search Difficulty: Easy Time: 20 minutes Goal Return the number of reachable nodes on the longest path from the root to a leaf.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Depth first search Difficulty: Easy Time: 25 minutes Goal Return whether at least one reachable root-to-leaf path has node values summing exactly to target.
View taskCoding (Algo) · Hard · 50 min
Algorithm: Dijkstra Difficulty: Hard Time: 50 minutes Goal Count distinct directed routes from source to target whose total weight is minimal while treating parallel edges as distinct.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Dijkstra Difficulty: Medium Time: 40 minutes Goal Return the minimum sum of edge weights from source to target or null when no valid route connects them.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Dijkstra Difficulty: Medium Time: 40 minutes Goal Return reachable node labels whose minimum route cost does not exceed budget ordered by minimum cost and then numeric label.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Divide and conquer Difficulty: Medium Time: 40 minutes Goal Count pairs of original indexes i < j for which the earlier value is strictly greater than the later value.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Dynamic programming Difficulty: Medium Time: 40 minutes Goal Return the maximum benefit achievable without exceeding capacity or selecting any package more than once.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Dynamic programming Difficulty: Medium Time: 40 minutes Goal Return the greatest total benefit of a subset that never selects adjacent schedule positions.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Dynamic programming Difficulty: Medium Time: 35 minutes Goal Return the maximum sum of values for a set of pairwise non-overlapping half-open bookings without forcing selection of.
View task