As reported: D. E. Shaw, asked twice: a senior phone screen (Hyderabad, Dec 2024), given verbally — implement a browser history with a delete-range operation; and an SMTS design round (2025) — design a browser history, about 40 minutes.
Design a browser history for one tab:
visit(url)— openurlfrom the current page; all forward history is cleared.back(steps)— move back up tostepspages and return the current URL.forward(steps)— move forward up tostepspages and return the current URL.deleteRange(…)— delete a range of entries from the history.
Discuss the data structures and the cost of each operation, and agree first on what a "range" is (a range of positions in the history list, or a time window) and what happens to the current page when it falls inside the deleted range.
The first three operations are LeetCode 1472 — Design Browser History (/design-browser-history).