Oct 16, 2024
Why would it need to traverse the entire dataset every time, just to ensure there isn't a second entry? It only needs to check if there are fewer than 2 entries.
Why would it need to traverse the entire dataset every time, just to ensure there isn't a second entry? It only needs to check if there are fewer than 2 entries.
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
I’m a software developer who is passionate about learning how things work behind the scenes.