Browse Source

removing inconsistencies

content-update
lee 5 years ago
parent
commit
0ced0c4665
  1. 13
      subjects/sortedlistmerge.en.md
  2. 13
      subjects/sortlistinsert.en.md

13
subjects/sortedlistmerge.en.md

@ -6,8 +6,6 @@ Write a function `SortedListMerge` that mereges two lists, `n1` and `n2`, but it
- Tip each list as to be already sorted.
- Use pointers when ever you can.
### Expected function and structure
```go
@ -33,13 +31,12 @@ type node = piscine.NodeI
type nodes = piscine.NodeI
func PrintList(l *piscine.NodeI) {
m := l
for m != nil {
fmt.Print(m.Data, " -> ")
m = m.Next
it := l
for it != nil {
fmt.Print(it.Data, " -> ")
it = it.Next
}
fmt.Print(nil)
fmt.Println()
fmt.Print(nil, "\n")
}
func listPushBack(l *piscine.NodeI, data int) *piscine.NodeI {

13
subjects/sortlistinsert.en.md

@ -6,8 +6,6 @@ Write a function `SortListInsert` that inserts `data_ref` in the linked list, bu
- The list as to be alredy sorted.
- Use pointers when ever you can.
### Expected function and structure
```go
@ -30,13 +28,12 @@ import (
)
func PrintList(l *piscine.NodeI) {
m := l
for m != nil {
fmt.Print(m.Data, " -> ")
m = m.Next
it := l
for it != nil {
fmt.Print(it.Data, " -> ")
it = it.Next
}
fmt.Print(nil)
fmt.Println()
fmt.Print(nil, "\n")
}
func listPushBack(l *piscine.NodeI, data int) *piscine.NodeI {

Loading…
Cancel
Save