Skip to content

Handle zero-capacity LRU cache#72

Merged
eselyavka merged 1 commit into
masterfrom
fix/lru-cache-zero-capacity
May 9, 2026
Merged

Handle zero-capacity LRU cache#72
eselyavka merged 1 commit into
masterfrom
fix/lru-cache-zero-capacity

Conversation

@eselyavka
Copy link
Copy Markdown
Owner

Summary

  • guard \ when cache capacity is zero
  • simplify \ to use a single cache lookup
  • rename linked-list helpers for clearer Python style
  • add a regression test for zero-capacity cache behavior

Testing

  • python3 -m unittest practice.leetcode.solutions_00000.solution_00146
  • pytest
  • pylint on changed files

@eselyavka eselyavka merged commit 0cc3a17 into master May 9, 2026
4 checks passed
@eselyavka eselyavka deleted the fix/lru-cache-zero-capacity branch May 9, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant