Skip to content
Snippets Groups Projects
Commit f6098b5c authored by Eduardo Souza's avatar Eduardo Souza
Browse files

[FIX] Executa tal qual o teste1.in

parent 43ba100c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -179,6 +179,11 @@ void calculate_finger_table(Node* head, int max_id) {
while(temp->id < finger_id && temp->next != head) {
temp = temp->next;
}
if(temp->next == head && temp->id < finger_id){
temp = head;
}
if(temp->id == current->id)
temp = temp->next;
current->finger[k-1] = temp->id;
}
current->tam_finger = log2_max_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment