Skip to content

Instantly share code, notes, and snippets.


Guney Ozsan guneyozsan

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 /
Last active Jan 8, 2020 — forked from showell/
heapsort in Python
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.