Browse Source

adding L to Node

pull/324/head
lee 5 years ago committed by Christopher Fremond
parent
commit
5dff25e934
  1. 8
      subjects/listlast.en.md
  2. 6
      subjects/listlast.fr.md

8
subjects/listlast.en.md

@ -7,14 +7,14 @@ Write a function `ListLast` that returns the last element of a linked list `l`.
### Expected function and structure
```go
type Node struct {
type NodeL struct {
Data interface{}
Next *Node
Next *NodeL
}
type List struct {
Head *Node
Tail *Node
Head *NodeL
Tail *NodeL
}
func ListLast(l *List) interface{} {

6
subjects/listlast.fr.md

@ -9,12 +9,12 @@
```go
type Node struct {
Data interface{}
Next *Node
Next *NodeL
}
type List struct {
Head *Node
Tail *Node
Head *NodeL
Tail *NodeL
}
func ListLast(l *List) interface{} {

Loading…
Cancel
Save