摘要: local stack = {} stack.__index = stack function stack:new() local temp = {} setmetatable(temp,stack) stack:init() return temp end function stack:init( 阅读全文
posted @ 2018-03-16 16:04 挡不住风霜 阅读(836) 评论(0) 推荐(0) 编辑
摘要: function visitNode(data) print(data) end function Inorder(node) if node.left then node.left:traversal() end visitNode(node.data) if node.right then node.right:tra... 阅读全文
posted @ 2018-03-16 15:58 挡不住风霜 阅读(318) 评论(0) 推荐(0) 编辑