NeetCode #326LC-1472MediumLinked List
← Back to All Problems#326 · #1472 · Design Browser History(设计浏览器历史记录)
📌 Problem Statement & Constraints
Design a browser history supporting
visit(url) (clears the forward history), back(steps) and forward(steps), both returning the current URL and clamped to the available range. Constraints: 1 <= url.length, homepage.length <= 20; at most 5000 calls.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!