View All num of num See all Photos eBay Inc. www.ebay.com Engaged Employer Overview Reviews Salaries Interviews Jobs Photos Benefits 1.3k Reviews 3.9k Salaries 409 Interviews Follow Add Interview Follow Add Interview Interview Question Software Engineer Intern Interview San Jose, CA eBay Inc. Questions related to data structures like "What data structure would you use for a browser's BACK & FORWARD ability" Tags: See more , See less 8 Answer Add Tags Answer Interview Answer 6 Answers ▲ 1 ▼ May be Stack , any one please correct me if I am wrong. KP on Oct 2, 2011 ▲ 0 ▼ This can be implemented by using two different stacks, one for back and one for forward. Anon on May 26, 2012 ▲ 0 ▼ Command Pattern Aditya on Dec 29, 2012 ▲ 6 ▼ I would use doubly link list Rahul on Jan 17, 2013 ▲ 1 ▼ Doubly linkedList Node on Jan 23, 2013 ▲ 2 ▼ Use two stacks. Every time you visit a site, push its address in stack1. When you press back, pop from stack1 and also push in stack2. When user presses forward, pop from stack2 and also push in stack1. Ambo on Apr 4, 2013 Interviews > Software Engineer Intern > eBay Inc. Add Answers or Comments To comment on this, Sign In or Sign Up.