Home Blog Coding Problem Practice

API to handel navigation of web browser

Published:


Design an API to handle the navigation history of a web browser (previous page, next page, list the 10 previous pages), and that can be reusable in many parts of the application (here I give concrete examples in our app). Then, sketch up an implementation.

I like this one, because it's simple enough, it's easy to illustrate, it can be solved step by step (add additional behaviors without breaking everything), it allows to talk about edge cases and error handling, and it also allows to talk about data structures.

provide Concrete example

(For a java desktop developper)

-- solution pending

added on 18-Feb-2018
Comment