单链表反序lua
摘要:local tmp = {v=1,t={v=3,t={v=10,t={v=6}}}}function reverse(list)local tmp;while(list) dotmp={v=list.v,t=tmp}list=list.tendreturn tmpendfunction lpair(
阅读全文
posted @ 2014-09-21 10:30
posted @ 2014-09-21 10:30
posted @ 2014-09-15 15:12
posted @ 2014-09-14 15:50
posted @ 2014-09-14 15:33