Update binary_heap_sort.py
This commit is contained in:
parent
06ac246f98
commit
b7664b98ea
@ -22,7 +22,7 @@ class BinaryHeapSort(BinaryHeap):
|
||||
if length <= 1:
|
||||
return
|
||||
|
||||
map(self._type_assert, nums)
|
||||
self._type_assert(nums)
|
||||
|
||||
# heapify
|
||||
self._heapify(nums, length-1)
|
||||
|
Loading…
Reference in New Issue
Block a user