Salesforceseniormar. de 2026
Design LFU Cache
Implement an LFU cache with O(1) average-time get and put operations that evicts the least-frequently-used key when capacity is exceeded, breaking ties by least-recently-used. The cache must update a key's frequency (and recency) on both get and put, and support inserting and updating values.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Design LFU Cache
Implement both LRU and LFU caches with thread safety consideration.
Sem observação adicional neste relato público.
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.