Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 数据结构分类/堆/堆的基本操作.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
if (array.length > 1) {
let index = array.length - 1;
let target = Math.floor((index - 1) / 2);
while (target >= 0) { array[target]);
while (target >= 0) {
if (array[index] < array[target]) {
[array[index], array[target]] = [array[target], array[index]]
index = target;
Expand Down