Skip to content

Instantly share code, notes, and snippets.

View prateek-parashar's full-sized avatar

Prateek Parashar prateek-parashar

View GitHub Profile
@mkdika
mkdika / Runtime Complexity of Java Collections.md
Last active December 12, 2024 15:37
Runtime Complexity with Java Collection API Chart

This is base on Gist by Psayre23. I just improve some data and add my own notes regard to this topic.

Below are the Big O performance of common functions of different Java Collections.

List Add Remove Get Contains Next Size Data Structure
ArrayList O(1) O(n) O(1) O(n) O(1) O(1) Array