a doubly linked list that holds the current page, next page, and previous page. Used to enforce order in operations.
| 1 | class DLL: |
| 2 | """ |
| 3 | a doubly linked list that holds the current page, |
| 4 | next page, and previous page. |
| 5 | Used to enforce order in operations. |
| 6 | """ |
| 7 | |
| 8 | def __init__(self, val: str = None): |
| 9 | self.val = val |
| 10 | self.nxt = None |
| 11 | self.prev = None |
| 12 | |
| 13 | |
| 14 | class BrowserHistory: |