day_23/AoC_2020_23.cpp
cup* cut_next_three(cup* current)
{
    auto first = current->next;
    auto last = current->next->next->next;
    current->next = last->next;
    last->next = nullptr;
    return first;
}
// Remove the three cups after the given one and return them.
// Note: the removed cups form a simple list, not a circular one.
Remove the three cups after the given one and return them.
Note: the removed cups form a simple list, not a circular one.
Remove the three cups after the given one and return them . Note : the removed cups form a simple list not a circular one .
cup* cut_next_three(cup* current)
{
    auto first = current->next;
    auto last = current->next->next->next;
    current->next = last->next;
    last->next = nullptr;
    return first;
}
cup * cut_next_three ( cup * current ) { auto first = current -> next ; auto last = current -> next -> next -> next ; current -> next = last -> next ; last -> next = nullptr ; return first ; }
Remove the three cups after the given one and return them.
Remove the three cups after the given one and return them .