7 ms·
> "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
by heeen 10y ago
> "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
- db48x 10y agoOr with a hash-table lookup, left as an exercise to the reader.