Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
heeen
· 9y ago · 0 comments
> "There is no reason a person should know which class they are in, nor should a class know which people are enrolled in it. "
Also replacing a O(1) chasing a pointer into a O(n) array search
Comments
[–]
db48x
9y ago
Or with a hash-table lookup, left as an exercise to the reader.