Skip to content

Commit

Permalink
Increase result size
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotgouveia committed Dec 30, 2022
1 parent f862d05 commit 7ad191a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ void node_union(tree_node_t* x, tree_node_t* y) {
link(find_set(x), find_set(y));
}

unsigned long int get_maximum_cost_spanning_tree(heap_t* heap) {
unsigned long int result = 0;
unsigned long long int get_maximum_cost_spanning_tree(heap_t* heap) {
unsigned long long int result = 0;

while (heap->size > 0) {
edge_t* edge = extract_max(heap);
Expand Down

0 comments on commit 7ad191a

Please sign in to comment.