出个全新的hhkb type-s键盘# Hardware - 计算机硬件
c*2
1 楼
Write a function for a linked list that exchanges the positions
of the nodes after the nodes referenced by two given pointers t and u.
(assume t and u are either in the list or NULL).
Example:
1 2 4 3 6 8 5 7 9 10
Exchange nodes after 2 and 3:
1 2 6 3 4 8 5 7 9 10
1) Don't do it by exchanging data.
2) Consider all possible cases.
of the nodes after the nodes referenced by two given pointers t and u.
(assume t and u are either in the list or NULL).
Example:
1 2 4 3 6 8 5 7 9 10
Exchange nodes after 2 and 3:
1 2 6 3 4 8 5 7 9 10
1) Don't do it by exchanging data.
2) Consider all possible cases.