{ printf(
return (
}
/*找第s個元素*/
p= josephus_Link;
for(count=
p=p
printf(
while ( p!=p
{ for(count=
{ pre=p;
p=p
} /*for*/
printf(
pre
free(p);
p=pre
}/*while*/
printf(
free(p);
return
}
該算法時間復雜度是O(n*m )
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23073.html