diff --git a/algorithm/sorting/heap/basic/code.js b/algorithm/sorting/heap/basic/code.js index fbd2e82e..b5cbd997 100644 --- a/algorithm/sorting/heap/basic/code.js +++ b/algorithm/sorting/heap/basic/code.js @@ -15,7 +15,7 @@ function heapSort(array, size) { tracer._select(j); heapify(array, j, 0); - tracer._print('Swapping elemnts : ' + array[0] + ' & ' + array[j]); + tracer._print('Swapping elements : ' + array[0] + ' & ' + array[j]); tracer._deselect(j); } @@ -43,7 +43,7 @@ function heapify(array, size, root) { tracer._notify(largest, root); - tracer._print('Swapping elemnts : ' + array[root] + ' & ' + array[largest]); + tracer._print('Swapping elements : ' + array[root] + ' & ' + array[largest]); heapify(array, size, largest); }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: