10 Common Data Structures Explained with Videos + Exercises
Beau Carnes
3.4K19

First and foremost, nice work! I thoroughly enjoyed all your videos and found the code examples/explanations to be easy to understand. I also like that you mentioned several use cases for each data structure to really hammer the point home.

Having said that, I noticed a “minor” bug in your implementation of myMap while watching the video. The set() function should ensure that the key does not exist before incrementing count:

if (!this.has(key)) {
this.count++;
}
this.collection[key] = value;
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.