Leetcode 1472. Design Browser History
Implement a BrowserHistory class that supports visiting URLs (which clears any forward history), moving back or forward up to a specified number of steps, and returning the current URL. The challenge is to maintain and update the browsing history efficiently while correctly handling bounds when requested steps exceed available history.
Asked at:
Bloomberg
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Early April, 2026
Senior
Late October, 2025
Junior
Mid March, 2025
Mid-level
Hello Interview Premium
Your account is free and you can post anonymously if you choose.