(
PROCEDURE A(p
BEGIN
q:=NIL;
WHILE p<>NIL DO
BEGIN
IF p^
BEGIN
m:=p^
A(m
p^
END;
r:=p^
p^
q:=p;
p:=r
END;
t:=q;
END
(
類似本題的另外敘述有
題目基本相同
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/22779.html
(
PROCEDURE A(p
BEGIN
q:=NIL;
WHILE p<>NIL DO
BEGIN
IF p^
BEGIN
m:=p^
A(m
p^
END;
r:=p^
p^
q:=p;
p:=r
END;
t:=q;
END
(
類似本題的另外敘述有
題目基本相同
[