Browse Source

Merge pull request #212 from 01-edu/fixListClear

fix readme listclear from quest 11
pull/215/head
augusto-mantilla 5 years ago committed by GitHub
parent
commit
42972ae2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      subjects/listclear.en.md

15
subjects/listclear.en.md

@ -9,18 +9,7 @@ Write a function `ListClear` that delets all `nodes` from a linked list, deletin
### Expected function and structure
```go
type Node struct {
Data interface{}
Next *Node
}
type List struct {
Head *Node
Tail *Node
}
func ListClear(l *List) {
}
```
@ -33,11 +22,12 @@ package main
import (
"fmt"
piscine ".."
)
type List = piscine.List
type Node = piscine.Node
type Node = piscine.NodeL
func PrintList(l *List) {
link := l.Head
@ -65,6 +55,7 @@ func main() {
```
And its output :
```console

Loading…
Cancel
Save