When set a same key with different value, does the cache hit count reset to 0?
There is no "hit count" in this problem. Every time set or get is called on a key, this element become the least recently used.
if the element is accessed, the element become the least recently used;
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.