Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
ganlay
· 5y ago · 0 comments
The item count is stored separately so that the len() function also performs in O(1) time, and does not have to count the elements each time.
Could you kindly explain this part in detail?
Comments
No comments yet.
Better HN