# Design browser history.

Aced (formerly Exponent) publishes a public search API over its indexed pages; the guide is at https://www.aced.io/agents/agent-access.

Source: https://www.aced.io/questions/4681/design-browser-history
Source observed: 2026-11-05T00:07:58.607Z
Last checked: 2026-11-05T00:07:58.607+00:00
Indexed: 2026-11-05T21:14:05.963+00:00

---

# Design browser history.

We are Aced, formerly Exponent, and we help candidates prepare for software engineering, engineering management, system design, product, and other technical interviews. This page is a system-design interview question about designing browser history.

## Question details

- **Roles:** [Software Engineer](https://www.aced.io/questions?role=swe), [Engineering Manager](https://www.aced.io/questions?role=em)
- **Companies:** [Oracle](https://www.aced.io/questions?company=oracle), [TikTok](https://www.aced.io/questions?company=tiktok)
- **Category:** [System Design](https://www.aced.io/questions?type=system-design)
- **Reported interviews:** 2
- **Reported last asked:** 2 years ago
- Detailed company statistics are available through [Upgrade](https://www.aced.io/upgrade?src=questions).

## Community answers

Two community answers are available.

### Anubhav S. — December 25, 2024

[View Anubhav S.'s profile](https://www.aced.io/users/54f756b8-aca8-4a61-b3c2-f2fc6799c83d) · [371 karma](https://www.aced.io/karma)

Anubhav proposes two stacks: one for forward history and one for backward history.

1. Visiting `tryexponent.com` stores that URL in the backward-history stack.
2. Visiting Google stores that URL in the backward-history stack.
3. Pressing **back** pops data from backward history and puts it into forward history.
4. Pressing **forward** pops data from forward history and puts it into backward history.

The answer also specifies that directly visiting any URL clears the forward-history stack. Each tab maintains separate stacks, and the maximum stack size should be fixed to avoid memory issues.

At a higher level, the answer suggests saving visited pages to a file with timestamps and not writing anything to disk in incognito mode.

### Anas H. — June 20, 2025

[View Anas H.'s profile](https://www.aced.io/users/1d1c759c-b9b5-4ae4-8bf6-306bc988049c) · [163 karma](https://www.aced.io/karma)

Anas proposes a doubly linked list in which each node represents a page in the history, together with a pointer to the current page. The answer gives these reasons:

- The structure matches the functional concept and is understandable and natural.
- Memory is managed dynamically, avoiding pre-sizing and resizing complexity.
- Back and forward navigation take constant time.
- Insert and remove operations are easy.
- Nodes can be extended with metadata for advanced features.

## Related courses

### [Engineering Management Interview Prep](https://www.aced.io/courses/engineering-management)

![Engineering Management Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/5AqarwlCDWmr0W7AbMJFwp/16862dab13471f5eb8728b27eb2fbc07/engineering_management_track_compressed_bbabaec4a6__281_29_9a9687c1fb.jpeg?w=800&h=800&fm=webp&q=75)

We prepare candidates for engineering manager roles at Meta, Google, Amazon, Microsoft, Stripe, and other top companies through mock interviews, frameworks, and advice from senior candidates. Topics include system design, people management, project retrospectives, behavioral interviews, and more.

### [System Design Interviews](https://www.aced.io/courses/system-design-interviews)

![System Design Interviews](https://images.ctfassets.net/x78yjrjc11pq/78x7miFZFjBCrM5GqftrMJ/2f6d26e632c4e7265c49f6a180227edb/system_design_track_compressed_26ac98a46e__281_29_5be2280f31.jpeg?w=800&h=800&fm=webp&q=75)

We teach candidates how to answer current system-design questions across product, infrastructure, and AI domains. The course includes in-depth video examples, written breakdowns, reference patterns, and mock-interview videos featuring senior engineers and managers.

## Your answer

You can submit your own answer to mark this question complete.

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F4681%2Fdesign-browser-history&trace=t_679ff9ab98f3)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Aced (formerly Exponent)’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.aced.io/agents/agent/faq?q={question}&trace=t_679ff9ab98f3`

[Tool guide and examples](https://www.aced.io/agents/agent-access) · [OpenAPI](https://www.aced.io/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.aced.io/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F4681%2Fdesign-browser-history). Opening a form does not execute a tool.