Skip to content

Instantly share code, notes, and snippets.

View jkrovitz's full-sized avatar

Jeremy Krovitz jkrovitz

View GitHub Profile
@jkrovitz
jkrovitz / minmaxheap.py
Created February 28, 2017 22:01 — forked from gnarmis/minmaxheap.py
min max heap implementation in python
from math import log, floor, pow
class MinMaxHeap(object):
"""an implementation of min-max heap using an array,
which starts at 1 (ignores 0th element)
"""
def __init__(self, array=[]):
super(MinMaxHeap, self).__init__()
@jkrovitz
jkrovitz / StanfordBreakoutGame
Created March 30, 2016 19:58 — forked from NatashaTheRobot/StanfordBreakoutGame
Stanford CS106A Breakout Game Solution
/*
* File: Breakout.java
* -------------------
* Name:
* Section Leader:
*
* This file will eventually implement the game of Breakout.
*/
import acm.graphics.*;