Skip to content

Instantly share code, notes, and snippets.

@boxgames1
Last active June 16, 2018 09:10
Show Gist options
  • Save boxgames1/978ad8a953d319323cc80f5345037e50 to your computer and use it in GitHub Desktop.
Save boxgames1/978ad8a953d319323cc80f5345037e50 to your computer and use it in GitHub Desktop.
Single vs Double Linked Lists. Method costs comparision
Method Single Double
Insert O(n) O(1)
Erase O(n) O(1)
Find O(n) O(n)
Clear O(n) O(n)
Empty O(1) O(1)
Begin O(1) O(1)
End O(n) O(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment