Better HN
topnewbestaskshowjobs
Log inSign up

ganlay

1 karma · joined Nov 19, 2021 (5y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

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?