LeetCode
LeetCode copied to clipboard
Potential bug of using lru_cache on class methods
- Search · lru_cache
- caching - Python functools lru_cache with class methods: release object - Stack Overflow
Original code might pass self into lru_cache which might cause hash different even with "same input".