Update binary_heap_sort.py

This commit is contained in:
树哥 2018-11-27 10:54:07 +08:00 committed by GitHub
parent 06ac246f98
commit b7664b98ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)