update zig codes for Section 'Heap' (heap.zig)

This commit is contained in:
sjinzh 2023-01-15 20:57:01 +08:00
parent 5e17778f69
commit d8289580a5

View File

@ -74,7 +74,7 @@ pub fn main() !void {
// //
// O(n) O(nlogn) // O(n) O(nlogn)
try minHeap.addSlice(&[_]i32{ 1, 3, 2, 5, 4, 8, 9 }); try minHeap.addSlice(&[_]i32{ 1, 3, 2, 5, 4 });
std.debug.print("\n输入列表并建立小顶堆后\n", .{}); std.debug.print("\n输入列表并建立小顶堆后\n", .{});
try inc.PrintUtil.printHeap(i32, mem_allocator, minHeap, true); try inc.PrintUtil.printHeap(i32, mem_allocator, minHeap, true);