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

Coding (Algo) · Medium · 30 min

Navigation Breadcrumbs

Ancestor traversal · Medium A sitemap stores parent links rather than complete paths. The UI needs a breadcrumb for a selected page and must not loop on malformed links. Return root-to-page.

View task

Coding (Algo) · Easy · 25 min

Missing Upload Sequence

Arithmetic · Easy An upload batch should contain every sequence number from 0 through n exactly once, but one record is missing. Return the missing sequence number without sorting the batch..

View task

Coding (Algo) · Easy · 20 min

Remove an Entry from the End

Arrays · Easy An export editor receives values already materialized in an array. The user identifies one entry by its one-based position from the end. The editor must return a new array.

View task

Coding (Algo) · Medium · 40 min

Count Exact Size Selections

Backtracking · Medium A small batch contains positive workload amounts, and an experiment must select exactly k entries with an exact total. Each entry is an independent choice even when.

View task

Coding (Algo) · Hard · 55 min

Count Non Attacking Queen Placements

Backtracking · Hard A constraint-search exercise places one queen in every row of an n by n board. No two queens may share a column or diagonal. The task is a specialist backtracking.

View task

Coding (Algo) · Medium · 40 min

Count Selections With a Target Mask

Backtracking · Medium A bounded configuration exercise selects any subset of available mask toggles. Each toggle may be selected once, and two identical toggles still represent distinct.

View task

Coding (Algo) · Easy · 25 min

Count Records Inside a Value Range

Binary search · Easy A report displays how many records fall within an inclusive numeric band. Keys are already sorted and may repeat. The service should count the band without scanning or.

View task

Coding (Algo) · Easy · 25 min

Find the First Matching Record

Binary search · Easy A lookup service stores sorted numeric keys and may have several records under the same key. A detail view must begin at the earliest matching record. Returning an.

View task

Coding (Algo) · Easy · 25 min

Find the Insertion Position

Binary search · Easy A sorted numeric index needs an insertion point for a new key. If that key already exists, insertion must happen before all existing equal keys. The index is supplied.

View task

Coding (Algo) · Easy · 25 min

Find the Nearest Available Value

Binary search · Easy A settings control allows only a sorted list of numeric values. When a requested value is unavailable, the control snaps to the nearest allowed value. The tie rule must.

View task

Coding (Algo) · Easy · 25 min

Find the Position After Equal Values

Binary search · Easy An ordered index may contain many copies of the same event code. A new record must be placed after every existing equal code. The caller supplies the sorted values and.

View task

Coding (Algo) · Medium · 40 min

Find the Smallest Daily Shipping Capacity

Binary search · Medium A warehouse sends packages in arrival order. One truck departs per day and has the same capacity every day. Packages cannot be split or reordered; each day takes the.

View task

Coding (Algo) · Medium · 40 min

Longest Rising Sequence

Binary search · Medium A trend analyzer can ignore noisy measurements but must preserve their order. It needs the greatest number of selected readings that rise strictly from one selected.

View task

Coding (Algo) · Medium · 45 min

Record History Queries

Binary search · Medium An audit API receives many historical lookups against the same revision export. Scanning the entire export for each lookup makes the endpoint too slow. Build an.

View task

Coding (Algo) · Medium · 45 min

Search Prefix Suggestions

Binary search · Medium An autocomplete BFF returns up to three lexicographically first product names for each prefix typed by a user. Return suggestions after each added character. Input.

View task

Coding (Algo) · Medium · 30 min

Validate a Search Index

Binary search tree · Medium A search-index debugger receives a serialized binary tree. It must detect whether lookups can safely use strict left-smaller and right-larger comparisons..

View task