Browse Source

change type Node to NodeL

content-update
Augusto 5 years ago
parent
commit
a36cac7175
  1. 8
      subjects/listpushfront.en.md

8
subjects/listpushfront.en.md

@ -7,14 +7,14 @@ Write a function `ListPushBack` that inserts a new element `node` at the beginni
### Expected function and structure ### Expected function and structure
```go ```go
type Node struct { type NodeL struct {
Data interface{} Data interface{}
Next *Node Next *NodeL
} }
type List struct { type List struct {
Head *Node Head *NodeL
Tail *Node Tail *NodeL
} }
func ListPushFront(l *List, data interface{}) { func ListPushFront(l *List, data interface{}) {

Loading…
Cancel
Save