1a1a11a
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
9 ms·
- 31.▲
- 32.▲
- 33.▲
- 34.▲
- 35.▲
- 36.▲
- 37.▲
- 38.▲
- 39.▲
- 40.▲
- 41.▲
- 42.▲
- 43.▲
- 44.▲
Consider the the request sequence you gave
a, a, b, b, c, c, d, d ...
and a cache size of 2, when the first c arrives, the cache is in the following state (left is head and right is the tail, inserted at the head):
b(1) a(1) and it will t - 45.▲
- 46.▲
- 47.▲
- 48.▲
- 49.▲
- 50.▲
- 51.▲
- 52.▲
- 53.▲
- 54.▲
- 55.▲
- 56.▲
- 57.▲
- 58.▲
- 59.▲
- 60.▲
More ›