Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ganlay
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
ganlay
5y ago
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?