Dominic
1 min readMay 13, 2019

--

Thanks for this, made a lot of things clear. On the topic of storing an array of possible values @ a hash index, you said O(n) complexity, but in reality a classic for loop rather than forEach could break on the first match so it’s only O(n) in the worst scenario. Is there a way to describe that in terms of complexity?

--

--

Dominic
Dominic

Written by Dominic

Tech fatigue? Nope. I love reading about new frameworks and languages and dabbling

Responses (1)