Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complexity of list insert() and erase() is wrong in Data structures in C++.pdf #3

Open
girishkuniyal opened this issue Feb 7, 2019 · 0 comments

Comments

@girishkuniyal
Copy link

The complexity for both insert() and erase() operation for list is mentioned as O(N) in Data structure in C++.pdf
but list is doubly linked list representation. which facilitate bi-direction iterator and
constant time O(1) insertion and erase operation.
by the way cheat-sheet is awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant