Mr. Joy is planning to build a web browser. Now he is analyzing requirements for the navigation system of his web browser, which will preserve the browsing history. What is the appropriate data structure to use for the navigation system?
Show Answer
The appropriate data structure to use for the navigation system of a web browser is a Stack
. A stack follows the Last In First Out (LIFO) principle, which is suitable for maintaining the browsing history.