Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
dprkh
· 2mo ago · 0 comments
In LeetCode, it's a very common optimization. If your key values are dense, you use an array. If your key values are sparse, you use a dict.
Comments
No comments yet.
Better HN