Skip to content

Instantly share code, notes, and snippets.

View peterwzhang's full-sized avatar

Peter Zhang peterwzhang

View GitHub Profile
@peterwzhang
peterwzhang / MinHeapPP.user.js
Last active April 19, 2021 03:34
This script adds "Insert Keys" and "Remove K Smallest" functionality to the usfca Heap visualizer.
// ==UserScript==
// @name MinHeap++
// @version 1
// @description This script adds "Insert Keys" and "Remove K Smallest" functionality to the usfca Heap visualizer.
// @author Peter Zhang
// @match https://www.cs.usfca.edu/~galles/visualization/Heap.html
// @grant none
// ==/UserScript==
//copy everything inside of the setup function below if you want to just paste the code in the console
function setup(){
@peterwzhang
peterwzhang / BinomialQueuePP.user.js
Last active April 19, 2021 03:34
This script adds "Insert Keys" and "Remove K Smallest" functionality to the usfca Binomial Queue visualizer.
// ==UserScript==
// @name BinomialQueue++
// @version 1
// @description This script adds "Insert Keys" and "Remove K Smallest" functionality to the usfca Binomial Queue visualizer.
// @author Peter Zhang
// @match https://www.cs.usfca.edu/~galles/visualization/BinomialQueue.html
// @grant none
// ==/UserScript==
//copy everything inside of the setup function below if you want to just paste the code in the console
function setup(){
@peterwzhang
peterwzhang / RBTreePP.user.js
Last active April 19, 2021 03:33
This script adds "Insert Keys" and "Remove Keys" functionality to the usfca RBTree visualizer.
// ==UserScript==
// @name RedBlackTree++
// @version 1
// @description This script adds "Insert Keys" and "Remove Keys" functionality to the usfca RBTree visualizer.
// @author Peter Zhang
// @match https://www.cs.usfca.edu/~galles/visualization/RedBlack.html
// @grant none
// ==/UserScript==
//copy everything inside of the setup function below if you want to just paste the code in the console
function setup(){