Skip to content

Instantly share code, notes, and snippets.

View BruceZu's full-sized avatar

Bruce Zu BruceZu

View GitHub Profile
@BruceZu
BruceZu / gist:5b14a1d445faf446437189bd9cb3ae0b
Created April 19, 2017 05:42 — 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
@BruceZu
BruceZu / The Technical Interview Cheat Sheet.md
Created March 29, 2017 19:33 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@BruceZu
BruceZu / Struts2
Created February 12, 2017 05:37
Struts2
old page
https://www.ntu.edu.sg/home/ehchua/programming/java/Struts2.html
https://www.ntu.edu.sg/home/ehchua/programming/sql/PostgreSQL_GetStarted.html
http://unix.stackexchange.com/questions/88644/how-to-check-os-and-version-using-a-linux-command
@BruceZu
BruceZu / gist:9108704882705396497322d0b2e00478
Created January 14, 2017 00:12
backup docke image with status
https://docs.docker.com/engine/tutorials/dockerimages/
@BruceZu
BruceZu / gist:fb52870ea2217e112a88edfc39387985
Created January 13, 2017 17:33
create docker image for chaosmonkey collaberate with spinnaker
https://docs.docker.com/engine/reference/builder/
@BruceZu
BruceZu / gist:a8bc11c615dc112c60ce85d93be498dd
Last active January 12, 2017 21:36
kilobyte, megabyte, gigabyte, etc
http://www.computerhope.com/issues/chspace.htm
chmod OWNER GROUP WORLD PATH
4 read (r)
2 write (w)
1 execute (x)
7 = 4+2+1 (read/write/execute)
6 = 4+2 (read/write)
5 = 4+1 (read/execute)