Y
Hacker News
new
|
ask
|
show
|
jobs
by
abecedarius
6354 days ago
No, it's correct -- you can see that by induction on the add operation. If you're allowed to increase n without first ensuring the invariant on the first n members, then it can break, yes.
1 comments
fauigerzigerk
6354 days ago
Yes you're right. Thanks.
link