• 2022-06-09
    在一个单链表中,已知 q 是 p 的前趋结点,若在 q 和 p 之间插入结点 s ,则应当执行语句序列( )。
    A: s -> next = p -> next; p -> next = s;
    B: s -> next = q -> next; p -> next = s;
    C: s -> next = q -> next; q -> next = s;
    D: q -> next = s; s -> next = p;