Skip to content

Instantly share code, notes, and snippets.

View akshaydk's full-sized avatar
🏠
Working from home

Akshay akshaydk

🏠
Working from home
View GitHub Profile
@akshaydk
akshaydk / quick_count.py
Created October 28, 2015 18:06
#PA2-Q1
def quick_sort(A,low,high):
if low<high:
i=low+1
pivot=low
print 'pivot=', A[pivot]
left=right=count=0
for j in range(low+1,high):
# print 'i=',i
# print 'j=',j
count+=1