Skip to content

Instantly share code, notes, and snippets.

View guangxu-li's full-sized avatar
:shipit:
Focusing

Guangxu Li guangxu-li

:shipit:
Focusing
View GitHub Profile
@guangxu-li
guangxu-li / gist:e550193c3c14aa99de234cfa8c59ccbb
Created February 26, 2021 02:57 — 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
@guangxu-li
guangxu-li / sanfrancisco-font.css
Last active September 28, 2020 22:27 — forked from OutThisLife/sanfrancisco-font.css
San Francisco Web Font
@font-face {
font-family: "SF Display";
font-weight: 900;
src: url("https://sf.abarba.me/SF-UI-Display-Black.otf");
}
@font-face {
font-family: "SF Display";
font-weight: 700;
src: url("https://sf.abarba.me/SF-UI-Display-Bold.otf");