1. 首页
  2. 数据库
  3. 其它
  4. golang 链表

golang 链表

上传者: 2021-01-16 20:43:24上传 PDF文件 30.03KB 热度 4次
一.链表的实现 1.1 代码 package Algorithm import ( _ container/list errors fmt ) type Node struct { data interface{} pre *Node next *Node } type List struct { head *Node tail *Node length uint64 } func GetList() *List{ list := &List{ head: nil, tail:nil, length:0, } return list
下载地址
用户评论