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 6 of 152 · 7,273 tasks

Coding (Algo) · Hard · 40 min

Count the Outer Boundary Corners

Sorting · Hard A geometry tool outlines the smallest convex region containing a set of recorded locations. Its export lists only corner vertices, not duplicate records or intermediate points.

View task

Coding (Algo) · Hard · 50 min

Find the Closest Coordinate Pair

Sorting · Hard A spatial inspection tool needs the minimum separation between recorded locations. Two different records can have exactly the same coordinates and must then produce zero.

View task

Coding (Algo) · Easy · 25 min

Find the Closest Pair of Measurements

Sorting · Easy A diagnostics report contains unsorted integer measurements. It needs the smallest difference between any two observations. The same numeric measurement at two different.

View task

Coding (Algo) · Easy · 25 min

List the Largest Distinct Readings

Sorting · Easy A dashboard needs a short list of the largest observed measurement values. Duplicate observations should not fill several places, and the output must be ordered from largest.

View task

Coding (Algo) · Easy · 20 min

Rank Characters by Frequency

Sorting · Easy A text inspection panel displays each character once and ranks the most frequent characters first. Its output must remain identical across servers with different language.

View task

Coding (Algo) · Easy · 25 min

Rank Records Without Losing Their Positions

Sorting · Easy A report ranks records by numeric value but must attach each rank back to the original record. Equal values receive consecutive ranks in original arrival order. Shared.

View task

Coding (Algo) · Medium · 40 min

Stable Feed Pagination

Sorting · Medium A client merges API feed records before slicing a page. Retries may repeat IDs with newer timestamps. Deduplicate by ID, keep the latest timestamp, sort newest first then.

View task

Coding (Algo) · Easy · 15 min

Peak Request Latency

Stable ordering · Easy A batch of request timings is sampled in arrival order. The dashboard needs the earliest request with the worst latency. Return the index of the largest latency.

View task

Coding (Algo) · Easy · 25 min

Balanced Delimiters

Stack · Easy A small editor checks bracket structure before offering an expression preview. Input contains only delimiters, not JavaScript source. Return whether (), [] and {} are correctly.

View task

Coding (Algo) · Easy · 25 min

Cancel Adjacent Actions

Stack · Easy A gesture log contains reversible toggles: two adjacent equal actions cancel. Cancellations can expose another cancellable pair. Return the fully reduced action string. Input.

View task

Coding (Algo) · Easy · 25 min

Normalize a Virtual Path

Stack · Easy A virtual-file browser receives absolute paths with repeated separators and relative navigation segments. It needs a stable display path. This is lexical normalization only: no.

View task

Coding (Algo) · Medium · 35 min

Remove Repeating Token Groups

Stack · Medium A token-cleanup rule removes exactly k consecutive equal tokens at a time. Removing a group can bring matching tokens together and trigger another removal. The cleanup must.

View task

Coding (Algo) · Medium · 35 min

Resolve Opposing Token Collisions

Stack · Medium A deterministic simulator stores right-moving positive tokens and left-moving negative tokens in one ordered row. Only adjacent tokens moving toward each other interact. Zero.

View task

Coding (Algo) · Easy · 20 min

Validate Nested Brackets

Stack · Easy An expression editor checks delimiter structure before enabling a preview. The caller has already removed all non-bracket text. Your function only checks pairing and nesting; it.

View task

Coding (Algo) · Easy · 25 min

Compress Consecutive Status Characters

Stream processing · Easy A text diagnostic stores consecutive repeats as character-count pairs. It preserves the exact original text order so the text can be reconstructed. Equal characters.

View task

Coding (Algo) · Hard · 75 min

Cyclic Dependency Groups

Strongly connected components · Hard A plugin loader needs to show mutually dependent plugins as groups before planning a migration. Partition a directed graph into strongly connected.

View task

Coding (Algo) · Hard · 55 min

Count Distinct Text Fragments

Suffix automata · Hard A text-index experiment measures how many different contiguous fragments a string contains. Several ranges can spell the same fragment and should count only once. The.

View task

Coding (Algo) · Medium · 35 min

Peak Worker Demand

Sweep line · Medium An async job service knows the half-open execution intervals of accepted jobs. It needs enough workers for the busiest instant. Return the maximum number of.

View task

Coding (Algo) · Medium · 35 min

Check Dependency Feasibility

Topological sort · Medium A course scheduler receives prerequisites that must be completed before another course. It needs to know whether any valid completion order exists. The output is.

View task

Coding (Algo) · Medium · 45 min

Deployment Critical Path

Topological sort · Medium A release orchestrator can start independent services together. Each service has a duration and must wait for all prerequisites. Return the earliest total.

View task

Coding (Algo) · Medium · 45 min

Form Dependency Order

Topological sort · Medium Some form fields are computed from earlier fields. A validation engine needs a deterministic evaluation order or a clear cycle signal. Return the lexicographically.

View task

Coding (Algo) · Medium · 40 min

Order Ready Jobs Deterministically

Topological sort · Medium A build scheduler has a complete batch of jobs and directed prerequisites. Many valid schedules may exist, but reproducibility requires the lexicographically.

View task

Coding (Algo) · Medium · 40 min

Parallel Initialization Batches

Topological sort · Medium Application modules initialize in dependency batches. Modules in the same batch may start together, but none may depend on another in that batch. Return earliest.

View task

Coding (Algo) · Easy · 20 min

Count Selected Tree Nodes

Tree traversal · Easy An inspection tool receives a saved binary hierarchy and a selection mask. It must report how many selected nodes actually belong to the visible tree. Slots left behind.

View task

Coding (Algo) · Medium · 25 min

Find the Shared Tree Ancestor

Tree traversal · Medium A tree inspector lets an operator select two entries that can share the same displayed value. To highlight their smallest shared branch, it needs a stable node.

View task

Coding (Algo) · Easy · 20 min

Measure the Busiest Tree Level

Tree traversal · Easy A tree viewer allocates one row of controls for each depth. It needs the largest number of actual nodes on a single row. Missing heap slots are not controls, so.

View task

Coding (Algo) · Medium · 30 min

Measure the Longest Tree Route

Tree traversal · Medium A hierarchy inspection tool measures the longest route between any two reachable nodes. A route can move up to a shared ancestor and down another branch. The longest.

View task

Coding (Algo) · Easy · 25 min

Read Selected Tree Values

Tree traversal · Easy A tree inspector exports selected entries in structural left-root-right order. The hierarchy is not necessarily sorted by value and duplicate values are valid..

View task

Coding (Algo) · Easy · 25 min

Summarize Tree Levels

Tree traversal · Easy A hierarchy dashboard displays one measurement total for each visible depth. Selecting measurements must not renumber or remove structural levels. A level whose nodes.

View task

Coding (Algo) · Easy · 20 min

Total Selected Tree Values

Tree traversal · Easy A reporting tool totals signed measurements stored in a binary hierarchy. Users can select only some nodes without removing their children from the hierarchy. Negative.

View task

Coding (Algo) · Hard · 65 min

Ranked Prefix Index

Trie · Hard A search service serves many prefix queries over a fixed catalog. Ranking is by popularity, with deterministic word ordering on ties. Precompute an index returning the best three.

View task

Coding (Algo) · Medium · 35 min

Choose the Closest Three Entry Total

Two pointers · Medium A batch planner must choose exactly three distinct entries with a combined amount as close as possible to a target. If two different totals are equally close, the.

View task

Coding (Algo) · Medium · 30 min

Closest Pair Total

Two pointers · Medium A batch planner chooses two different entries whose combined size is as close as possible to a requested total. The entries can have signed adjustments and are not.

View task

Coding (Algo) · Medium · 40 min

Count Measurement Pairs Below a Limit

Two pointers · Medium A capacity report counts pairs of observed loads that could share a fixed budget. Each observation is distinct even when its value repeats. The report needs the number.

View task

Coding (Algo) · Medium · 30 min

Detect a Repeating Chain

Two pointers · Medium A debugger represents a linked chain as indexes into a next-pointer table. Following the head should eventually reach null. Corrupt pointers can instead loop forever.

View task

Coding (Algo) · Medium · 40 min

Find the Widest Supported Container

Two pointers · Medium A geometric planning tool models vertical supports one unit apart. Choosing two supports defines a container whose usable height is limited by the shorter support..

View task

Coding (Algo) · Medium · 35 min

Merge Offline Revisions

Two pointers · Medium A mobile client and server each provide record revisions sorted by ID. The merged snapshot must keep the newest revision for shared IDs. Merge both lists without.

View task

Coding (Platform) · Medium · 50 min

Draft autosave without stale confirmations

angular · Medium · autosave state machine An editor saves drafts in the background. A slow confirmation for an older revision currently marks the latest text as saved, and an older failure.

View task

Coding (Platform) · Easy · 35 min

Facet state without impossible selections

angular · Easy · derived filter state A catalog screen receives available facet values after every search. The current state boundary keeps selections that no longer exist, so the UI.

View task

Coding (Platform) · Hard · 70 min

Optimistic reorder journal

angular · Hard · optimistic reconciliation A board supports several rapid card moves. When one request fails, the current implementation restores the entire old board and erases later.

View task

Coding (Platform) · Medium · 50 min

Paged search request ownership

angular · Medium · request ownership A search screen can request several pages for one query while the user changes the query. Late pages from the previous search currently append to the new.

View task

Coding (Platform) · Hard · 70 min

Shared query cache subscriptions

angular · Hard · cache lifecycle Several panels subscribe to the same query. The current cache aborts the shared request when any panel unmounts and commits a late response after the final.

View task

Coding (Platform) · Easy · 35 min

Stable sort and screen-reader summary

angular · Easy · accessible sorting A results table can be sorted by score or name. Equal values currently jump between renders and the live-region summary describes the requested direction.

View task

Coding (Platform) · Easy · 35 min

End-to-end facet contract

express + react · Easy · form contract A browser and API disagree at the end-to-end facet contract boundary. A catalog screen receives available facet values after every search. The current.

View task

Coding (Platform) · Hard · 70 min

Optimistic workflow journal

express + react · Hard · offline sync A browser and API disagree at the optimistic workflow journal boundary. A board supports several rapid card moves. When one request fails, the current.

View task

Coding (Platform) · Medium · 50 min

Paged flow request ownership

express + react · Medium · request ownership A browser and API disagree at the paged flow request ownership boundary. A search screen can request several pages for one query while the user.

View task

Coding (Platform) · Medium · 50 min

Revision-safe autosave API

express + react · Medium · autosave state machine A browser and API disagree at the revision-safe autosave api boundary. An editor saves drafts in the background. A slow confirmation for an.

View task

Coding (Platform) · Hard · 70 min

Shared query lifecycle

express + react · Hard · cache lifecycle A browser and API disagree at the shared query lifecycle boundary. Several panels subscribe to the same query. The current cache aborts the shared.

View task