Skip to content

Instantly share code, notes, and snippets.

👶
Dad

Guney Ozsan guneyozsan

👶
Dad
Block or report user

Report or block guneyozsan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@guneyozsan
guneyozsan / heap.py
Last active Jan 8, 2020 — forked from showell/heap.py
heapsort in Python
View heap.py
def swap(a, i, j):
a[i], a[j] = a[j], a[i]
def is_heap(a):
n = 0
m = 0
while True:
for i in [0, 1]:
m += 1
if m >= len(a):
You can’t perform that action at this time.