diff options
author | William Carroll <wpcarro@gmail.com> | 2020-07-01T13·59+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-07-01T13·59+0100 |
commit | a8b3a2d3c0aad932c650e60959b6afab7d3fa018 (patch) | |
tree | 86276249a446677ffa89774f95a9df8e98ece1b1 /scratch/data_structures_and_algorithms/delete-node.py | |
parent | ec7c8516f7443e76233aa0f44d06c074f88498f0 (diff) |
Support part 2/3 for the Memo problem
Bound the size of the memo by creating a BoundedQueue. Whenever we add elements to the BoundedQueue, we remove the oldest elements. We use the BoundedQueue to control the size of our dictionary that we're using to store our key-value pairs.
Diffstat (limited to 'scratch/data_structures_and_algorithms/delete-node.py')
0 files changed, 0 insertions, 0 deletions