Browse Source

Update sortll.en.md

in an exam you cannot import piscine
pull/380/head
Christopher Fremond 5 years ago committed by GitHub
parent
commit
b27b5b4c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      subjects/sortll.en.md

7
subjects/sortll.en.md

@ -19,7 +19,7 @@ Write a function that sorts the list in descending order and return pointer/refe
### Expected function and struct
```go
package piscine
package main
type NodeAddL struct {
Next *NodeAddL
@ -39,19 +39,18 @@ package main
import (
"fmt"
piscine ".."
)
// I implemented pushBack for this
func main() {
num1 := &piscine.NodeAddL{Num: 5}
num1 := &NodeAddL{Num: 5}
num1 = pushBack(num1, 1)
num1 = pushBack(num1, 3)
num1 = pushBack(num1, 1)
num1 = pushBack(num1, 3)
result := piscine.Sortll(num1)
result := Sortll(num1)
for tmp := result; tmp != nil; tmp = tmp.Next {
fmt.Print(tmp.Num)
if tmp.Next != nil {

Loading…
Cancel
Save