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
| import heapq | |
| class Heap(object): | |
| def __init__(self, max=False): | |
| self.max = max | |
| self.data = [] | |
| @property | |
| def delta(self): | |
| return -1 if self.max else 1 | |
| def push(self, item): |
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
| <html> | |
| <body> | |
| <img src="foo"/> | |
| <img src="bar"/> | |
| </body> | |
| </html> |
OlderNewer