Hey Mastodong, there’s a data structure for this and it’s called a “map”. You probably shouldn’t call this on every iteration of a loop, it gets exponentially slower.
Hey Mastodong, there’s a data structure for this and it’s called a “map”. You probably shouldn’t call this on every iteration of a loop, it gets exponentially slower. 4 comments
|