Coding (Algo) · Hard · 65 min
Discounted Service Route
Algorithm: Shortest path Difficulty: Hard Time: 65 minutes Goal Find the minimum source-to-target cost when at most one traversed connection may cost floor(cost / 2).
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 4 of 386 · 18,491 tasks
Coding (Algo) · Hard · 65 min
Algorithm: Shortest path Difficulty: Hard Time: 65 minutes Goal Find the minimum source-to-target cost when at most one traversed connection may cost floor(cost / 2).
View taskCoding (Algo) · Medium · 40 min
Algorithm: Shortest path Difficulty: Medium Time: 40 minutes Goal Return each edge’s source label and destination label with slack equal to distance[from] plus weight minus distance[to].
View taskCoding (Algo) · Medium · 40 min
Algorithm: Shortest path Difficulty: Medium Time: 40 minutes Goal Return the minimum number of directed edges from source to target or null if either endpoint is missing or the target is.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Shortest path Difficulty: Medium Time: 40 minutes Goal Return the shortest walk length or null when no walk exists.
View taskCoding (Algo) · Medium · 45 min
Algorithm: Shortest path Difficulty: Medium Time: 45 minutes Goal Return minimum directed path costs from source in hub-ID order. Do not return paths or confuse a direct link with the.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Sliding window Difficulty: Medium Time: 40 minutes Goal Return one acceptance decision per arrival.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Sliding window Difficulty: Medium Time: 35 minutes Goal Return the longest contiguous window whose total size is at most budget.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Sliding window Difficulty: Medium Time: 40 minutes Goal Return the count of non-empty contiguous segments containing exactly k distinct values.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Sliding window Difficulty: Medium Time: 35 minutes Goal Return the length of the longest contiguous subarray containing distinct kinds.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Sliding window Difficulty: Medium Time: 40 minutes Goal Return the maximum length of a contiguous segment with at most k distinct input values.
View taskCoding (Algo) · Hard · 65 min
Algorithm: Sliding window Difficulty: Hard Time: 65 minutes Goal Return the median of every full fixed-width window.
View taskCoding (Algo) · Medium · 30 min
Algorithm: Sliding window Difficulty: Medium Time: 30 minutes Goal Return the length of the longest contiguous substring of s with no repeated characters.
View taskCoding (Algo) · Hard · 40 min
Algorithm: Sliding window Difficulty: Hard Time: 40 minutes Goal Return the maximum of each length-k contiguous window in linear total time without changing the measurements.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Sliding window Difficulty: Medium Time: 40 minutes Goal Return every start index of a fixed-length excerpt that contains exactly the required marker counts.
View taskCoding (Algo) · Medium · 30 min
Algorithm: Sliding window Difficulty: Medium Time: 30 minutes Goal Return the minimum length of a contiguous range whose sum is at least target, or 0 if none qualifies.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Sorting Difficulty: Easy Time: 25 minutes Goal Return at most k distinct dictionary words beginning with the exact prefix in ascending ASCII lexicographic order.
View taskCoding (Algo) · Hard · 40 min
Algorithm: Sorting Difficulty: Hard Time: 40 minutes Goal Return the number of distinct convex-hull vertices after excluding duplicate coordinates and collinear interior points.
View taskCoding (Algo) · Hard · 50 min
Algorithm: Sorting Difficulty: Hard Time: 50 minutes Goal Return the minimum squared Euclidean distance between two different input indexes or null if fewer than two records exist.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Sorting Difficulty: Easy Time: 25 minutes Goal Return the minimum absolute difference between values at two distinct input positions.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Sorting Difficulty: Easy Time: 25 minutes Goal Return at most k distinct input values in strictly decreasing numeric order.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Sorting Difficulty: Easy Time: 20 minutes Goal Return distinct input characters ordered by descending occurrence count and then increasing ASCII code when counts tie.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Sorting Difficulty: Easy Time: 25 minutes Goal Return each original record’s zero-based position in a stable ascending ordering of all records.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Sorting Difficulty: Medium Time: 40 minutes Goal Deduplicate by ID, keep the latest timestamp, sort newest first then smaller numeric ID, and paginate the full set.
View taskCoding (Algo) · Easy · 15 min
Algorithm: Stable ordering Difficulty: Easy Time: 15 minutes Goal Return the index of the largest latency, preferring the earliest on ties.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Stack Difficulty: Easy Time: 25 minutes Goal Return whether (), [] and {} are correctly paired and nested.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Stack Difficulty: Easy Time: 25 minutes Goal Return the fully reduced action string.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Stack Difficulty: Easy Time: 25 minutes Goal Return the canonical absolute path after resolving empty segments, dot segments and parent navigation.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Stack Difficulty: Medium Time: 35 minutes Goal Process the sequence from left to right and return the survivors after repeatedly deleting each completed group of k equal tokens.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Stack Difficulty: Medium Time: 35 minutes Goal Return the stable surviving token sequence after all adjacent positive-then-negative collision boundaries are resolved.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Stack Difficulty: Easy Time: 20 minutes Goal Return whether every opening bracket has a closing bracket of the same type in the correct nested order.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Stream processing Difficulty: Easy Time: 25 minutes Goal Return consecutive character runs as ordered pairs of the character and its run length.
View taskCoding (Algo) · Hard · 75 min
Algorithm: Strongly connected components Difficulty: Hard Time: 75 minutes Goal Partition a directed graph into strongly connected components.
View taskCoding (Algo) · Hard · 55 min
Algorithm: Suffix automata Difficulty: Hard Time: 55 minutes Goal Return the number of distinct non-empty contiguous substrings without constructing or storing all of those substrings.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Sweep line Difficulty: Medium Time: 35 minutes Goal Return the maximum number of simultaneously active jobs.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Topological sort Difficulty: Medium Time: 35 minutes Goal Return whether all n courses can be completed without violating any prerequisite relationship.
View taskCoding (Algo) · Medium · 45 min
Algorithm: Topological sort Difficulty: Medium Time: 45 minutes Goal Return the earliest total completion time or null for a dependency cycle.
View taskCoding (Algo) · Medium · 45 min
Algorithm: Topological sort Difficulty: Medium Time: 45 minutes Goal Return the lexicographically smallest topological ordering of field IDs or null when a cycle exists.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Topological sort Difficulty: Medium Time: 40 minutes Goal Return the lexicographically smallest ordering that places every prerequisite before its dependent job or null if no.
View taskCoding (Algo) · Medium · 40 min
Algorithm: Topological sort Difficulty: Medium Time: 40 minutes Goal Return earliest possible batches sorted numerically within each batch, or null for a cycle.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Tree traversal Difficulty: Easy Time: 20 minutes Goal Return the number of selected nodes reachable from the root while continuing through unselected parents.
View taskCoding (Algo) · Medium · 25 min
Algorithm: Tree traversal Difficulty: Medium Time: 25 minutes Goal Return the heap index of the lowest common ancestor of p and q or null if either selected index is absent or unreachable.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Tree traversal Difficulty: Easy Time: 20 minutes Goal Return the maximum number of reachable nodes at any one depth counting actual nodes rather than index gaps.
View taskCoding (Algo) · Medium · 30 min
Algorithm: Tree traversal Difficulty: Medium Time: 30 minutes Goal Return the greatest number of edges on any simple route between two reachable nodes in the tree.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Tree traversal Difficulty: Easy Time: 25 minutes Goal Return the selected reachable values in inorder traversal order without sorting by their numeric value.
View taskCoding (Algo) · Easy · 25 min
Algorithm: Tree traversal Difficulty: Easy Time: 25 minutes Goal Return signed totals in increasing zero-based depth order with one entry for every reachable level.
View taskCoding (Algo) · Easy · 20 min
Algorithm: Tree traversal Difficulty: Easy Time: 20 minutes Goal Return the signed sum of selected reachable node values and ignore stale entries behind null parents.
View taskCoding (Algo) · Hard · 65 min
Algorithm: Trie Difficulty: Hard Time: 65 minutes Goal Precompute an index returning the best three matching words for every query.
View taskCoding (Algo) · Medium · 35 min
Algorithm: Two pointers Difficulty: Medium Time: 35 minutes Goal Return the closest sum obtainable from three different indexes and choose the smaller sum when distances to the target tie.
View task