golang實現鏈表數據結構

package main import "fmt" //鏈表結點 type Node struct{ data interface{} next *Node } //鏈表 type LinkList struct{ head *Node tail *Node size int } //新建空鏈表,即建立Node指針head,用來指向鏈表第一個結點,初
相關文章
相關標籤/搜索