-
Notifications
You must be signed in to change notification settings - Fork 20.8k
Closed
Description
Description
https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/datastructures/caches/LFUCache.java
function: private void addNodeWithUpdatedFrequency(Node node)
line 104
I think 104 code line:
node.previous = temp.previous;
need change:
temp.previous = node;
Steps to reproduce
No response
Excepted behavior
result ok!
Screenshots
No response
Additional context
No response