Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
vlovich123
4mo ago
0 comments
Save
Share
If the primary key is the number, it still works (and dates are just numbers by the way) because you can sort a heterogenous dataset by a single numeric key pretty trivially.
But sorting by arbitrary strings like names can’t avoid comparison sort.
0 comments
1 comments · 1 top-level
top
newest
oldest
hinkley
4mo ago
That data structure isn’t an array of numbers, it’s an array of pointers to objects.
j
/
k
navigate · click thread line to collapse