This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: Breakout.java | |
* ------------------- | |
* Name: | |
* Section Leader: | |
* | |
* This file will eventually implement the game of Breakout. | |
*/ | |
import acm.graphics.*; |