Skip to content

Instantly share code, notes, and snippets.

View t3j3ndrA's full-sized avatar
🎯
Focusing

Tejendra Dhanani t3j3ndrA

🎯
Focusing
  • India
View GitHub Profile
@t3j3ndrA
t3j3ndrA / gist:faf8acba05d024d30636c791e0c940a2
Created January 26, 2023 09:47 — 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
@t3j3ndrA
t3j3ndrA / minification.md
Created September 29, 2021 15:42 — forked from gaearon/minification.md
How to Set Up Minification

In production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.

Here's one way to set it up:

  1. Install Node.js
  2. Run npm init -y in your project folder (don't skip this step!)
  3. Run npm install terser

Now, to minify a file called like_button.js, run in the terminal: