If you've done LeetCode's Design HashMap , you've implemented put , get , and remove . What that exercise usually skips is the part that actually breaks in production: what happens when someone mutates the map while another piece of code is iterating over it. I ran into this directly while buil...
Source: [Dev.to](https://dev.to/gaurav_tyagi_4d2a33837e04/i-built-my-own-fail-fast-hashmap-heres-why-a-boolean-flag-wasnt-enough-5aa9)