Skip to content

Instantly share code, notes, and snippets.

View M-Razavi's full-sized avatar
🏹
Focusing

Mahdi Razavi M-Razavi

🏹
Focusing
View GitHub Profile
@M-Razavi
M-Razavi / gist:6818b7d3285ddf4cd0a24054f72e4112
Created June 7, 2019 15:53 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@M-Razavi
M-Razavi / AboutMe.gif
Last active May 3, 2024 09:00 — forked from wgcv/AboutMe.gif
About Me
AboutMe.gif
@M-Razavi
M-Razavi / sbt-utilities
Created June 24, 2019 13:30 — forked from joesan/sbt-utilities
Ignore Tests when Running SBT
sbt 'set test in Test := {}' clean assembly
@M-Razavi
M-Razavi / init.sh
Last active July 6, 2021 13:28 — forked from ocindev/init.sh
Convenient script to setup a WSL dev environment with Docker, sdkman.io, Maven, AdoptOpenJDK 1.8, NPM and Node.js
# Replace with your windows username
win_user=<replace>
# Update the apt package list.
sudo apt-get update -y
# Install Docker's package dependencies.
sudo apt-get install -y \
apt-transport-https \
ca-certificates \