From b92d82687e254dd65a20360881eba88a66026dfb Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 25 Feb 2020 12:02:16 +0000 Subject: [PATCH] removing todo-link --- subjects/abort.en.md | 2 +- subjects/abort.fr.md | 2 +- subjects/activebits.en.md | 2 +- subjects/activebits.fr.md | 2 +- subjects/addlinkednumbers.en.md | 44 +++++++-------- subjects/addprimesum.en.md | 4 +- subjects/addprimesum.fr.md | 2 +- subjects/advancedsortwordarr.en.md | 2 +- subjects/advancedsortwordarr.fr.md | 2 +- subjects/alphacount.en.md | 2 +- subjects/alphacount.fr.md | 12 ++--- subjects/anagram.en.md | 22 ++++---- subjects/any.en.md | 4 +- subjects/any.fr.md | 18 +++---- subjects/appendrange.en.md | 2 +- subjects/appendrange.fr.md | 10 ++-- subjects/atoi.en.md | 10 ++-- subjects/atoi.fr.md | 66 +++++++++++------------ subjects/atoibase.en.md | 2 +- subjects/atoibase.fr.md | 22 ++++---- subjects/atoibaseprog.en.md | 8 +-- subjects/atoibaseprog.fr.md | 20 +++---- subjects/atoiprog.en.md | 10 ++-- subjects/basicatoi.en.md | 10 ++-- subjects/basicatoi.fr.md | 32 +++++------ subjects/basicatoi2.en.md | 10 ++-- subjects/basicatoi2.fr.md | 42 +++++++-------- subjects/basicjoin.en.md | 2 +- subjects/basicjoin.fr.md | 2 +- subjects/boolean.en.md | 6 +-- subjects/boolean.fr.md | 6 +-- subjects/brainfuck.en.md | 14 ++--- subjects/brainfuck.fr.md | 14 ++--- subjects/btreeapplybylevel.en.md | 2 +- subjects/btreeapplybylevel.fr.md | 2 +- subjects/btreeapplyinorder.en.md | 6 +-- subjects/btreeapplyinorder.fr.md | 6 +-- subjects/btreeapplypostorder.en.md | 16 +++--- subjects/btreeapplypostorder.fr.md | 6 +-- subjects/btreeapplypreorder.en.md | 2 +- subjects/btreeapplypreorder.fr.md | 2 +- subjects/btreedeletenode.en.md | 2 +- subjects/btreedeletenode.fr.md | 2 +- subjects/btreeinsertdata.en.md | 26 ++++----- subjects/btreeinsertdata.fr.md | 26 ++++----- subjects/btreeisbinary.en.md | 2 +- subjects/btreeisbinary.fr.md | 2 +- subjects/btreelevelcount.en.md | 2 +- subjects/btreelevelcount.fr.md | 2 +- subjects/btreemax.en.md | 2 +- subjects/btreemax.fr.md | 2 +- subjects/btreemin.en.md | 2 +- subjects/btreemin.fr.md | 2 +- subjects/btreeprintroot.en.md | 14 ++--- subjects/btreeprintroot.fr.md | 18 +++---- subjects/btreesearchitem.en.md | 2 +- subjects/btreesearchitem.fr.md | 2 +- subjects/btreetransplant.en.md | 2 +- subjects/btreetransplant.fr.md | 2 +- subjects/capitalize.en.md | 2 +- subjects/capitalize.fr.md | 2 +- subjects/capitalizeprog.en.md | 6 +-- subjects/capitalizeprog.fr.md | 6 +-- subjects/cat.en.md | 14 ++--- subjects/cat.fr.md | 14 ++--- subjects/changeorder.en.md | 34 ++++++------ subjects/cl-camp1.en.md | 10 ++-- subjects/cl-camp1.fr.md | 10 ++-- subjects/cl-camp3.en.md | 6 +-- subjects/cl-camp3.fr.md | 6 +-- subjects/cl-camp4.en.md | 8 +-- subjects/cl-camp4.fr.md | 8 +-- subjects/cl-camp5.en.md | 2 +- subjects/cl-camp5.fr.md | 2 +- subjects/cl.en.md | 10 ++-- subjects/cl.fr.md | 10 ++-- subjects/cleanstr.en.md | 1 + subjects/cleanstr.fr.md | 1 + subjects/collatzcountdown.en.md | 4 +- subjects/collatzcountdown.fr.md | 2 +- subjects/comcheck.en.md | 4 +- subjects/comcheck.fr.md | 4 +- subjects/commandments.en.md | 84 ++++++++++++++--------------- subjects/commandments.fr.md | 84 ++++++++++++++--------------- subjects/compact.en.md | 10 ++-- subjects/compact.fr.md | 6 +-- subjects/compare.en.md | 2 +- subjects/compare.fr.md | 2 +- subjects/concat.en.md | 2 +- subjects/concat.fr.md | 2 +- subjects/concatparams.en.md | 2 +- subjects/concatparams.fr.md | 2 +- subjects/convertbase.en.md | 2 +- subjects/convertbase.fr.md | 2 +- subjects/countif.en.md | 2 +- subjects/countif.fr.md | 2 +- subjects/createelem.en.md | 2 +- subjects/createelem.fr.md | 2 +- subjects/displayfile.en.md | 10 ++-- subjects/displayfile.fr.md | 12 ++--- subjects/divmod.en.md | 12 ++--- subjects/divmod.fr.md | 12 ++--- subjects/enigma.en.md | 10 ++-- subjects/enigma.fr.md | 84 ++++++++++++++--------------- subjects/fibonacci.en.md | 6 +-- subjects/fibonacci.fr.md | 4 +- subjects/findnextprime.en.md | 2 +- subjects/findnextprime.fr.md | 14 ++--- subjects/firstrune.en.md | 2 +- subjects/firstrune.fr.md | 2 +- subjects/firstword.en.md | 6 +-- subjects/firstword.fr.md | 6 +-- subjects/foreach.en.md | 2 +- subjects/foreach.fr.md | 2 +- subjects/foreachprog.en.md | 2 +- subjects/fprime.en.md | 6 +-- subjects/fprime.fr.md | 6 +-- subjects/index.en.md | 2 +- subjects/index.fr.md | 2 +- subjects/inter.en.md | 4 +- subjects/inter.fr.md | 4 +- subjects/isalpha.en.md | 2 +- subjects/isalpha.fr.md | 2 +- subjects/islower.en.md | 2 +- subjects/islower.fr.md | 2 +- subjects/isnegative.en.md | 4 +- subjects/isnegative.fr.md | 4 +- subjects/isnumeric.en.md | 2 +- subjects/isnumeric.fr.md | 2 +- subjects/ispowerof2.en.md | 4 +- subjects/ispowerof2.fr.md | 4 +- subjects/isprime.en.md | 2 +- subjects/isprime.fr.md | 2 +- subjects/isprintable.en.md | 2 +- subjects/isprintable.fr.md | 2 +- subjects/issorted.en.md | 2 +- subjects/issorted.fr.md | 2 +- subjects/isupper.en.md | 2 +- subjects/iterativefactorial.en.md | 2 +- subjects/iterativefactorial.fr.md | 2 +- subjects/iterativepower.en.md | 6 +-- subjects/iterativepower.fr.md | 6 +-- subjects/itoa.en.md | 4 +- subjects/itoa.fr.md | 4 +- subjects/itoabase.en.md | 4 +- subjects/itoabase.fr.md | 4 +- subjects/itoabaseprog.en.md | 4 +- subjects/itoabaseprog.fr.md | 4 +- subjects/itoaprog.en.md | 4 +- subjects/join.en.md | 2 +- subjects/join.fr.md | 2 +- subjects/lastrune.en.md | 2 +- subjects/lastrune.fr.md | 2 +- subjects/lastword.en.md | 6 +-- subjects/lastword.fr.md | 6 +-- subjects/listat.en.md | 4 +- subjects/listat.fr.md | 4 +- subjects/listclear.en.md | 4 +- subjects/listclear.fr.md | 4 +- subjects/listfind.en.md | 4 +- subjects/listfind.fr.md | 4 +- subjects/listforeach.en.md | 6 +-- subjects/listforeach.fr.md | 6 +-- subjects/listforeachif.en.md | 10 ++-- subjects/listforeachif.fr.md | 10 ++-- subjects/listlast.en.md | 2 +- subjects/listlast.fr.md | 2 +- subjects/listmerge.en.md | 4 +- subjects/listmerge.fr.md | 2 +- subjects/listpushback.en.md | 2 +- subjects/listpushback.fr.md | 2 +- subjects/listpushfront.en.md | 2 +- subjects/listpushfront.fr.md | 2 +- subjects/listpushpara.en.md | 2 +- subjects/listpushparams.en.md | 2 +- subjects/listpushparams.fr.md | 2 +- subjects/listremoveif.en.md | 2 +- subjects/listremoveif.fr.md | 2 +- subjects/listremoveifprog.en.md | 2 +- subjects/listreverse.en.md | 2 +- subjects/listreverse.fr.md | 2 +- subjects/listsize.en.md | 2 +- subjects/listsize.fr.md | 2 +- subjects/listsort.en.md | 4 +- subjects/listsort.fr.md | 4 +- subjects/makerange.en.md | 2 +- subjects/makerange.fr.md | 2 +- subjects/map.en.md | 2 +- subjects/map.fr.md | 2 +- subjects/max.en.md | 2 +- subjects/max.fr.md | 2 +- subjects/maxprog.en.md | 2 +- subjects/nrune.en.md | 2 +- subjects/nrune.fr.md | 2 +- subjects/nruneprog.en.md | 2 +- subjects/options.en.md | 14 ++--- subjects/options.fr.md | 12 ++--- subjects/pointone.en.md | 2 +- subjects/pointone.fr.md | 2 +- subjects/printalphabet.en.md | 2 +- subjects/printalphabet.fr.md | 2 +- subjects/printcomb.en.md | 4 +- subjects/printcomb.fr.md | 4 +- subjects/printcomb2.en.md | 4 +- subjects/printcomb2.fr.md | 4 +- subjects/printcombn.en.md | 10 ++-- subjects/printcombn.fr.md | 10 ++-- subjects/printdigits.fr.md | 2 +- subjects/printdigitsprog.en.md | 2 +- subjects/printhex.en.md | 4 +- subjects/printhex.fr.md | 7 ++- subjects/printnbr.en.md | 2 +- subjects/printnbr.fr.md | 2 +- subjects/printnbrbase.en.md | 8 +-- subjects/printnbrbase.fr.md | 8 +-- subjects/printnbrinorder.en.md | 2 +- subjects/printnbrinorder.fr.md | 2 +- subjects/printreversealphabet.fr.md | 2 +- subjects/printstr.en.md | 4 +- subjects/printstr.fr.md | 4 +- subjects/printstrprog.en.md | 2 +- subjects/printwordstables.en.md | 4 +- subjects/printwordstables.fr.md | 4 +- subjects/raid2.en.md | 4 +- subjects/raid2.fr.md | 4 +- subjects/raid3.en.md | 6 +-- subjects/raid3.fr.md | 6 +-- subjects/range.en.md | 6 +-- subjects/range.fr.md | 6 +-- subjects/rectangle.en.md | 12 ++--- subjects/rectangle.fr.md | 12 ++--- subjects/recursivefactorial.en.md | 2 +- subjects/recursivefactorial.fr.md | 2 +- subjects/recursivepower.en.md | 2 +- subjects/recursivepower.fr.md | 2 +- subjects/rot13.en.md | 6 +-- subjects/rot13.fr.md | 6 +-- subjects/rot14.en.md | 2 +- subjects/rot14.fr.md | 2 +- subjects/sametree.en.md | 61 ++++++++++----------- subjects/searchreplace.en.md | 4 +- subjects/searchreplace.fr.md | 4 +- subjects/sortedlistmerge.en.md | 4 +- subjects/sortedlistmerge.fr.md | 4 +- subjects/sortintegertable.en.md | 2 +- subjects/sortlist.en.md | 6 +-- subjects/sortlist.fr.md | 6 +-- subjects/sortlistinsert.en.md | 4 +- subjects/sortlistinsert.fr.md | 4 +- subjects/sortwordarr.en.md | 2 +- subjects/sortwordarr.fr.md | 2 +- subjects/sortwordarrprog.en.md | 2 +- subjects/sortwordarrprog.fr.md | 2 +- subjects/split.en.md | 2 +- subjects/split.fr.md | 2 +- subjects/splitwhitespaces.en.md | 2 +- subjects/sqrt.en.md | 2 +- subjects/sqrt.fr.md | 2 +- subjects/strlen.en.md | 4 +- subjects/strlen.fr.md | 4 +- subjects/strlenprog.en.md | 2 +- subjects/strlenprog.fr.md | 5 +- subjects/strrev.en.md | 6 +-- subjects/strrev.fr.md | 6 +-- subjects/strrevprog.en.md | 2 +- subjects/strrevprog.fr.md | 2 +- subjects/swap.en.md | 4 +- subjects/swapprog.en.md | 2 +- subjects/switchcase.en.md | 6 +-- subjects/switchcase.fr.md | 6 +-- subjects/tabmult.en.md | 2 +- subjects/tabmult.fr.md | 2 +- subjects/tolower.en.md | 2 +- subjects/tolower.fr.md | 2 +- subjects/toupper.en.md | 2 +- subjects/trimatoi.en.md | 14 ++--- subjects/trimatoi.fr.md | 13 +++-- subjects/twosum.en.md | 5 +- subjects/ultimatedivmod.en.md | 14 ++--- subjects/ultimatepointone.en.md | 8 +-- subjects/unmatch.en.md | 4 +- subjects/unmatch.fr.md | 2 +- subjects/ztail.en.md | 10 ++-- 283 files changed, 915 insertions(+), 916 deletions(-) diff --git a/subjects/abort.en.md b/subjects/abort.en.md index dd2db0fe..d7b7be87 100644 --- a/subjects/abort.en.md +++ b/subjects/abort.en.md @@ -14,7 +14,7 @@ func Abort(a, b, c, d, e int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/abort.fr.md b/subjects/abort.fr.md index 96490570..94b837a7 100644 --- a/subjects/abort.fr.md +++ b/subjects/abort.fr.md @@ -14,7 +14,7 @@ func Abort(a, b, c, d, e int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index 4a6e7393..f5e7ad22 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -14,7 +14,7 @@ func ActiveBits(n int) uint { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index 6e396290..b3bbc65f 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -14,7 +14,7 @@ func ActiveBits(n int) uint { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/addlinkednumbers.en.md b/subjects/addlinkednumbers.en.md index 00fea8fc..393f7864 100644 --- a/subjects/addlinkednumbers.en.md +++ b/subjects/addlinkednumbers.en.md @@ -23,8 +23,8 @@ Write a function that adds the two numbers and returns the sum as a linked list package main type NodeAddL struct { - Next *NodeAddL - Num int + Next *NodeAddL + Num int } func AddLinkedNumbers(num1, num1 *NodeAddL) *NodeAddL { @@ -40,7 +40,7 @@ Here is a possible program to test your function: package main import ( - "fmt" + "fmt" ) func pushFront(node *NodeAddL, num int) *NodeAddL { @@ -48,25 +48,25 @@ func pushFront(node *NodeAddL, num int) *NodeAddL { } func main() { - // 3 -> 1 -> 5 - num1 := &NodeAddL{Num:5} - num1 = pushFront(num1, 1) - num1 = pushFront(num1, 3) - - // 5 -> 9 -> 2 - num2 := &NodeAddL{Num:2} - num2 = pushFront(num2, 9) - num2 = pushFront(num2, 5) - - // 9 -> 0 -> 7 - result := AddLinkedNumbers(num1, num2) - for tmp := result; tmp != nil; tmp = tmp.Next { - fmt.Print(tmp.Num) - if tmp.Next != nil { - fmt.Print(" -> ") - } - } - fmt.Println() + // 3 -> 1 -> 5 + num1 := &NodeAddL{Num:5} + num1 = pushFront(num1, 1) + num1 = pushFront(num1, 3) + + // 5 -> 9 -> 2 + num2 := &NodeAddL{Num:2} + num2 = pushFront(num2, 9) + num2 = pushFront(num2, 5) + + // 9 -> 0 -> 7 + result := AddLinkedNumbers(num1, num2) + for tmp := result; tmp != nil; tmp = tmp.Next { + fmt.Print(tmp.Num) + if tmp.Next != nil { + fmt.Print(" -> ") + } + } + fmt.Println() } ``` diff --git a/subjects/addprimesum.en.md b/subjects/addprimesum.en.md index c6c5dafe..418dae55 100644 --- a/subjects/addprimesum.en.md +++ b/subjects/addprimesum.en.md @@ -4,7 +4,7 @@ Write a program that takes a positive integer as argument and displays the sum of all prime numbers inferior or equal to it followed by a newline (`'\n'`). -- If the number of arguments is different from 1, or if the argument is not a positive number, the program displays `0` followed by a newline. +- If the number of arguments is different from 1, or if the argument is not a positive number, the program displays `0` followed by a newline. ### Usage @@ -18,5 +18,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 5 7 0 student@ubuntu:~/[[ROOT]]/test$ ./test 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/addprimesum.fr.md b/subjects/addprimesum.fr.md index c8b06eee..8c431d06 100644 --- a/subjects/addprimesum.fr.md +++ b/subjects/addprimesum.fr.md @@ -4,7 +4,7 @@ Écrire un programme qui prend un entier positif comme argument et qui affiche la somme de tous les nombres premiers inférieurs ou égaux à celui-ci, suivie d'un retour à la ligne (`'\n'`). -- Si le nombre d'arguments est différent de 1, ou si l'argument n'est pas un nombre positif, le programme affiche `0` suivi d'un retour à la ligne. +- Si le nombre d'arguments est différent de 1, ou si l'argument n'est pas un nombre positif, le programme affiche `0` suivi d'un retour à la ligne. ### Utilisation diff --git a/subjects/advancedsortwordarr.en.md b/subjects/advancedsortwordarr.en.md index 56279338..10168e53 100644 --- a/subjects/advancedsortwordarr.en.md +++ b/subjects/advancedsortwordarr.en.md @@ -14,7 +14,7 @@ func AdvancedSortWordArr(array []string, f func(a, b string) int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/advancedsortwordarr.fr.md b/subjects/advancedsortwordarr.fr.md index a1ae8a3b..c4fcb75e 100644 --- a/subjects/advancedsortwordarr.fr.md +++ b/subjects/advancedsortwordarr.fr.md @@ -14,7 +14,7 @@ func AdvancedSortWordArr(array []string, f func(a, b string) int) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/alphacount.en.md b/subjects/alphacount.en.md index 8895e8c2..da478b4f 100644 --- a/subjects/alphacount.en.md +++ b/subjects/alphacount.en.md @@ -17,7 +17,7 @@ func AlphaCount(str string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/alphacount.fr.md b/subjects/alphacount.fr.md index 8895e8c2..32fca1f1 100644 --- a/subjects/alphacount.fr.md +++ b/subjects/alphacount.fr.md @@ -17,20 +17,20 @@ func AlphaCount(str string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - str := "Hello 78 World! 4455 /" - nb := piscine.AlphaCount(str) - fmt.Println(nb) + str := "Hello 78 World! 4455 /" + nb := piscine.AlphaCount(str) + fmt.Println(nb) } ``` diff --git a/subjects/anagram.en.md b/subjects/anagram.en.md index 619eb271..5b41bc90 100644 --- a/subjects/anagram.en.md +++ b/subjects/anagram.en.md @@ -35,22 +35,22 @@ Here is a possible program to test your function: ```go package main import ( - piscine ".." - "fmt" + piscine ".." + "fmt" ) func main() { - test1 := piscine.IsAnagram("listen", "silent") - fmt.Println(test1) + test1 := piscine.IsAnagram("listen", "silent") + fmt.Println(test1) - test2 := piscine.IsAnagram("alem", "school") - fmt.Println(test2) + test2 := piscine.IsAnagram("alem", "school") + fmt.Println(test2) - test3 := piscine.IsAnagram("neat", "a net") - fmt.Println(test3) + test3 := piscine.IsAnagram("neat", "a net") + fmt.Println(test3) - test4 := piscine.IsAnagram("anna madrigal", "a man and a girl") - fmt.Println(test4) + test4 := piscine.IsAnagram("anna madrigal", "a man and a girl") + fmt.Println(test4) } ``` @@ -63,4 +63,4 @@ true false true true -``` \ No newline at end of file +``` diff --git a/subjects/any.en.md b/subjects/any.en.md index 2fcca7fe..8b2f5d36 100644 --- a/subjects/any.en.md +++ b/subjects/any.en.md @@ -4,7 +4,7 @@ Write a function `Any` that returns `true`, for a `string` array : -- if, when that `string` array is passed through an `f` function, at least one element returns `true`. +- if, when that `string` array is passed through an `f` function, at least one element returns `true`. ### Expected function @@ -16,7 +16,7 @@ func Any(f func(string) bool, arr []string) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/any.fr.md b/subjects/any.fr.md index a783a4aa..88820eea 100644 --- a/subjects/any.fr.md +++ b/subjects/any.fr.md @@ -16,25 +16,25 @@ func Any(f func(string) bool, arr []string) bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - tab1 := []string{"Hello", "how", "are", "you"} - tab2 := []string{"This", "is", "4", "you"} + tab1 := []string{"Hello", "how", "are", "you"} + tab2 := []string{"This", "is", "4", "you"} - result1 := piscine.Any(piscine.IsNumeric, tab1) - result2 := piscine.Any(piscine.IsNumeric, tab2) + result1 := piscine.Any(piscine.IsNumeric, tab1) + result2 := piscine.Any(piscine.IsNumeric, tab2) - fmt.Println(result1) - fmt.Println(result2) + fmt.Println(result1) + fmt.Println(result2) } ``` diff --git a/subjects/appendrange.en.md b/subjects/appendrange.en.md index b5bd235a..2029de17 100644 --- a/subjects/appendrange.en.md +++ b/subjects/appendrange.en.md @@ -20,7 +20,7 @@ func AppendRange(min, max int) []int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/appendrange.fr.md b/subjects/appendrange.fr.md index 66968302..c1dc93db 100644 --- a/subjects/appendrange.fr.md +++ b/subjects/appendrange.fr.md @@ -20,19 +20,19 @@ func AppendRange(min, max int) []int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - fmt.Println(piscine.AppendRange(5, 10)) - fmt.Println(piscine.AppendRange(10, 5)) + fmt.Println(piscine.AppendRange(5, 10)) + fmt.Println(piscine.AppendRange(10, 5)) } ``` diff --git a/subjects/atoi.en.md b/subjects/atoi.en.md index 485dd295..5a8738a2 100644 --- a/subjects/atoi.en.md +++ b/subjects/atoi.en.md @@ -2,13 +2,13 @@ ### Instructions -- Write a [function](TODO-LINK) that simulates the behaviour of the `Atoi` function in Go. `Atoi` transforms a number represented as a `string` in a number represented as an `int`. +- Write a function that simulates the behaviour of the `Atoi` function in Go. `Atoi` transforms a number represented as a `string` in a number represented as an `int`. -- `Atoi` returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters. +- `Atoi` returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters. -- For this exercise the handling of the signs + or - **does have** to be taken into account. +- For this exercise the handling of the signs + or - **does have** to be taken into account. -- This function will **only** have to return the `int`. For this exercise the `error` result of atoi is not required. +- This function will **only** have to return the `int`. For this exercise the `error` result of atoi is not required. ### Expected function @@ -20,7 +20,7 @@ func Atoi(s string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/atoi.fr.md b/subjects/atoi.fr.md index 59fe80c4..964d84dd 100644 --- a/subjects/atoi.fr.md +++ b/subjects/atoi.fr.md @@ -2,13 +2,13 @@ ### Instructions -- Écrire une fonction qui reproduit le comportement de la fonction `Atoi` en Go. `Atoi` transforme un nombre représenté en `string` (chaîne de caractères) en `int` (entier). +- Écrire une fonction qui reproduit le comportement de la fonction `Atoi` en Go. `Atoi` transforme un nombre représenté en `string` (chaîne de caractères) en `int` (entier). -- `Atoi` retourne `0` si la `string` n'est pas considéré un nombre valide. Pour cet exercice des **`string` non valides seront testées!**. Certaines contiendront d'autres caractères que des chiffres. +- `Atoi` retourne `0` si la `string` n'est pas considéré un nombre valide. Pour cet exercice des **`string` non valides seront testées!**. Certaines contiendront d'autres caractères que des chiffres. -- Pour cet exercice la gestion des signes + ou - **doit être** prise en compte. +- Pour cet exercice la gestion des signes + ou - **doit être** prise en compte. -- Cette fonction aura **seulement** à retourner l'`int` (entier). Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. +- Cette fonction aura **seulement** à retourner l'`int` (entier). Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. ### Fonction attendue @@ -20,43 +20,43 @@ func Atoi(s string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - s := "12345" - s2 := "0000000012345" - s3 := "012 345" - s4 := "Hello World!" - s5 := "+1234" - s6 := "-1234" - s7 := "++1234" - s8 := "--1234" - - n := piscine.Atoi(s) - n2 := piscine.Atoi(s2) - n3 := piscine.Atoi(s3) - n4 := piscine.Atoi(s4) - n5 := piscine.Atoi(s5) - n6 := piscine.Atoi(s6) - n7 := piscine.Atoi(s7) - n8 := piscine.Atoi(s8) - - fmt.Println(n) - fmt.Println(n2) - fmt.Println(n3) - fmt.Println(n4) - fmt.Println(n5) - fmt.Println(n6) - fmt.Println(n7) - fmt.Println(n8) + s := "12345" + s2 := "0000000012345" + s3 := "012 345" + s4 := "Hello World!" + s5 := "+1234" + s6 := "-1234" + s7 := "++1234" + s8 := "--1234" + + n := piscine.Atoi(s) + n2 := piscine.Atoi(s2) + n3 := piscine.Atoi(s3) + n4 := piscine.Atoi(s4) + n5 := piscine.Atoi(s5) + n6 := piscine.Atoi(s6) + n7 := piscine.Atoi(s7) + n8 := piscine.Atoi(s8) + + fmt.Println(n) + fmt.Println(n2) + fmt.Println(n3) + fmt.Println(n4) + fmt.Println(n5) + fmt.Println(n6) + fmt.Println(n7) + fmt.Println(n8) } ``` diff --git a/subjects/atoibase.en.md b/subjects/atoibase.en.md index 8674ec30..af936db7 100644 --- a/subjects/atoibase.en.md +++ b/subjects/atoibase.en.md @@ -28,7 +28,7 @@ func AtoiBase(s string, base string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/atoibase.fr.md b/subjects/atoibase.fr.md index 334841b6..fbd06a48 100644 --- a/subjects/atoibase.fr.md +++ b/subjects/atoibase.fr.md @@ -8,9 +8,9 @@ Si la base n'est pas valide elle retourne `0`: Règles de validité d'une base : -- Une base doit contenir au moins 2 caractères. -- Chaque caractère d'une base doit être unique. -- Une base ne doit pas contenir les caractères `+` ou `-`. +- Une base doit contenir au moins 2 caractères. +- Chaque caractère d'une base doit être unique. +- Une base ne doit pas contenir les caractères `+` ou `-`. Seuls des nombres en `string` valides seront testés. @@ -26,22 +26,22 @@ func AtoiBase(s string, base string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - fmt.Println(piscine.AtoiBase("125", "0123456789")) - fmt.Println(piscine.AtoiBase("1111101", "01")) - fmt.Println(piscine.AtoiBase("7D", "0123456789ABCDEF")) - fmt.Println(piscine.AtoiBase("uoi", "choumi")) - fmt.Println(piscine.AtoiBase("bbbbbab", "-ab")) + fmt.Println(piscine.AtoiBase("125", "0123456789")) + fmt.Println(piscine.AtoiBase("1111101", "01")) + fmt.Println(piscine.AtoiBase("7D", "0123456789ABCDEF")) + fmt.Println(piscine.AtoiBase("uoi", "choumi")) + fmt.Println(piscine.AtoiBase("bbbbbab", "-ab")) } ``` diff --git a/subjects/atoibaseprog.en.md b/subjects/atoibaseprog.en.md index 9dbc79a8..10746a06 100644 --- a/subjects/atoibaseprog.en.md +++ b/subjects/atoibaseprog.en.md @@ -19,9 +19,9 @@ If the base or the `string` number is not valid it returns `0`: Validity rules for a base : -- A base must contain at least 2 characters. -- Each character of a base must be unique. -- A base should not contain `+` or `-` characters. +- A base must contain at least 2 characters. +- Each character of a base must be unique. +- A base should not contain `+` or `-` characters. Only valid `string` numbers will be tested. @@ -37,7 +37,7 @@ func AtoiBase(s string, base string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/atoibaseprog.fr.md b/subjects/atoibaseprog.fr.md index a3b8a9ad..1e6410d7 100644 --- a/subjects/atoibaseprog.fr.md +++ b/subjects/atoibaseprog.fr.md @@ -19,9 +19,9 @@ Si la base n'est pas valide elle retourne `0`: Règles de validité d'une base : -- Une base doit contenir au moins 2 caractères. -- Chaque caractère d'une base doit être unique. -- Une base ne doit pas contenir les caractères `+` ou `-`. +- Une base doit contenir au moins 2 caractères. +- Chaque caractère d'une base doit être unique. +- Une base ne doit pas contenir les caractères `+` ou `-`. Seuls des nombres en `string` valides seront testés. @@ -37,21 +37,21 @@ func AtoiBase(s string, base string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" + "fmt" ) func main() { - fmt.Println(AtoiBase("125", "0123456789")) - fmt.Println(AtoiBase("1111101", "01")) - fmt.Println(AtoiBase("7D", "0123456789ABCDEF")) - fmt.Println(AtoiBase("uoi", "choumi")) - fmt.Println(AtoiBase("bbbbbab", "-ab")) + fmt.Println(AtoiBase("125", "0123456789")) + fmt.Println(AtoiBase("1111101", "01")) + fmt.Println(AtoiBase("7D", "0123456789ABCDEF")) + fmt.Println(AtoiBase("uoi", "choumi")) + fmt.Println(AtoiBase("bbbbbab", "-ab")) } ``` diff --git a/subjects/atoiprog.en.md b/subjects/atoiprog.en.md index d270f821..54517d73 100644 --- a/subjects/atoiprog.en.md +++ b/subjects/atoiprog.en.md @@ -13,13 +13,13 @@ This means that: ### Instructions -- Write a [function](TODO-LINK) that simulates the behaviour of the `Atoi` function in Go. `Atoi` transforms a number represented as a `string` in a number represented as an `int`. +- Write a [function](TODO-LINK) that simulates the behaviour of the `Atoi` function in Go. `Atoi` transforms a number represented as a `string` in a number represented as an `int`. -- `Atoi` returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters. +- `Atoi` returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters. -- For this exercise the handling of the signs + or - **does have** to be taken into account. +- For this exercise the handling of the signs + or - **does have** to be taken into account. -- This function will **only** have to return the `int`. For this exercise the `error` result of atoi is not required. +- This function will **only** have to return the `int`. For this exercise the `error` result of atoi is not required. ### Expected function @@ -31,7 +31,7 @@ func Atoi(s string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/basicatoi.en.md b/subjects/basicatoi.en.md index a78aa698..6fcca0fc 100644 --- a/subjects/basicatoi.en.md +++ b/subjects/basicatoi.en.md @@ -2,13 +2,13 @@ ### Instructions -- Write a function that simulates the behaviour of the atoi function in Go. Atoi transforms a number defined as a `string` in a number defined as an `int`. +- Write a function that simulates the behaviour of the atoi function in Go. Atoi transforms a number defined as a `string` in a number defined as an `int`. -- Atoi returns `0` if the `string` is not considered as a valid number. For this exercise **only valid** `string` chains will be tested. They will only contain one or several digits as characters. +- Atoi returns `0` if the `string` is not considered as a valid number. For this exercise **only valid** `string` chains will be tested. They will only contain one or several digits as characters. -- For this exercise the handling of the signs `+` or `-` does not have to be taken into account. +- For this exercise the handling of the signs `+` or `-` does not have to be taken into account. -- This function will **only** have to return the `int`. For this exercise the `error` return of atoi is not required. +- This function will **only** have to return the `int`. For this exercise the `error` return of atoi is not required. ### Expected function @@ -20,7 +20,7 @@ func BasicAtoi(s string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/basicatoi.fr.md b/subjects/basicatoi.fr.md index 510cf1be..66f73178 100644 --- a/subjects/basicatoi.fr.md +++ b/subjects/basicatoi.fr.md @@ -2,13 +2,13 @@ ### Instructions -- Écrire une fonction qui reproduit le comportement de la fonction atoi en Go. Atoi transforme un nombre représenté en `string` (chaîne de caractères) en `int` (entier). +- Écrire une fonction qui reproduit le comportement de la fonction atoi en Go. Atoi transforme un nombre représenté en `string` (chaîne de caractères) en `int` (entier). -- Atoi retourne `0` si la `string` n'est pas considéré un nombre valide. Pour cet exercice **seulement des** `string` **valides** seront testées. Elles ne contiendront que un ou plusieurs chiffres comme charact. +- Atoi retourne `0` si la `string` n'est pas considéré un nombre valide. Pour cet exercice **seulement des** `string` **valides** seront testées. Elles ne contiendront que un ou plusieurs chiffres comme charact. -- Pour cet exercice la gestion des signes `+` ou `-` ne doit pas être prise en compte. +- Pour cet exercice la gestion des signes `+` ou `-` ne doit pas être prise en compte. -- Cette fonction aura **seulement** à retourner l'`int` (entier). Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. +- Cette fonction aura **seulement** à retourner l'`int` (entier). Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. ### Fonction attendue @@ -20,28 +20,28 @@ func BasicAtoi(s string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - s := "12345" - s2 := "0000000012345" - s3 := "000000" + s := "12345" + s2 := "0000000012345" + s3 := "000000" - n := piscine.BasicAtoi(s) - n2 := piscine.BasicAtoi(s2) - n3 := piscine.BasicAtoi(s3) + n := piscine.BasicAtoi(s) + n2 := piscine.BasicAtoi(s2) + n3 := piscine.BasicAtoi(s3) - fmt.Println(n) - fmt.Println(n2) - fmt.Println(n3) + fmt.Println(n) + fmt.Println(n2) + fmt.Println(n3) } ``` diff --git a/subjects/basicatoi2.en.md b/subjects/basicatoi2.en.md index 347ea9fd..78a812f5 100644 --- a/subjects/basicatoi2.en.md +++ b/subjects/basicatoi2.en.md @@ -2,13 +2,13 @@ ### Instructions -- Write a function that simulates the behaviour of the atoi function in Go. Atoi transforms a number defined as a `string` in a number defined as an `int`. +- Write a function that simulates the behaviour of the atoi function in Go. Atoi transforms a number defined as a `string` in a number defined as an `int`. -- Atoi returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters. +- Atoi returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters. -- For this exercise the handling of the signs `+` or `-` does not have to be taken into account. +- For this exercise the handling of the signs `+` or `-` does not have to be taken into account. -- This function will **only** have to return the `int`. For this exercise the `error` return of atoi is not required. +- This function will **only** have to return the `int`. For this exercise the `error` return of atoi is not required. ### Expected function @@ -20,7 +20,7 @@ func BasicAtoi2(s string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/basicatoi2.fr.md b/subjects/basicatoi2.fr.md index 61246a18..d3e546f0 100644 --- a/subjects/basicatoi2.fr.md +++ b/subjects/basicatoi2.fr.md @@ -2,13 +2,13 @@ ### Instructions -- Écrire une fonction qui reproduit le comportement de la fonction atoi en Go. Atoi transforme un nombre représenté en `string` (chaîne de caractères) en `int` (entier). +- Écrire une fonction qui reproduit le comportement de la fonction atoi en Go. Atoi transforme un nombre représenté en `string` (chaîne de caractères) en `int` (entier). -- Atoi retourne `0` si la `string` n'est pas considérée comme un nombre valide. Pour cet exercice des **`string` non valides seront testées!**. Certaines contiendront d'autres caractères que des chiffres. +- Atoi retourne `0` si la `string` n'est pas considérée comme un nombre valide. Pour cet exercice des **`string` non valides seront testées!**. Certaines contiendront d'autres caractères que des chiffres. -- Pour cet exercice la gestion des signes `+` ou `-` ne doit pas être prise en compte. +- Pour cet exercice la gestion des signes `+` ou `-` ne doit pas être prise en compte. -- Cette fonction aura **seulement** à retourner l'`int` (entier). Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. +- Cette fonction aura **seulement** à retourner l'`int` (entier). Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. ### Fonction attendue @@ -20,31 +20,31 @@ func BasicAtoi2(s string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - s := "12345" - s2 := "0000000012345" - s3 := "012 345" - s4 := "Hello World!" - - n := piscine.BasicAtoi2(s) - n2 := piscine.BasicAtoi2(s2) - n3 := piscine.BasicAtoi2(s3) - n4 := piscine.BasicAtoi2(s4) - - fmt.Println(n) - fmt.Println(n2) - fmt.Println(n3) - fmt.Println(n4) + s := "12345" + s2 := "0000000012345" + s3 := "012 345" + s4 := "Hello World!" + + n := piscine.BasicAtoi2(s) + n2 := piscine.BasicAtoi2(s2) + n3 := piscine.BasicAtoi2(s3) + n4 := piscine.BasicAtoi2(s4) + + fmt.Println(n) + fmt.Println(n2) + fmt.Println(n3) + fmt.Println(n4) } ``` diff --git a/subjects/basicjoin.en.md b/subjects/basicjoin.en.md index 869c538b..f0410446 100644 --- a/subjects/basicjoin.en.md +++ b/subjects/basicjoin.en.md @@ -14,7 +14,7 @@ func BasicJoin(strs []string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/basicjoin.fr.md b/subjects/basicjoin.fr.md index a350c684..4a4b1a65 100644 --- a/subjects/basicjoin.fr.md +++ b/subjects/basicjoin.fr.md @@ -14,7 +14,7 @@ func BasicJoin(strs []string) string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/boolean.en.md b/subjects/boolean.en.md index c83c2857..cff70f99 100644 --- a/subjects/boolean.en.md +++ b/subjects/boolean.en.md @@ -4,11 +4,11 @@ Create a `.go` file. -- The code below has to be copied in that file. +- The code below has to be copied in that file. -- The necessary changes have to be applied so that the program works. +- The necessary changes have to be applied so that the program works. -- The program must be submitted inside a folder with the name `boolean`. +- The program must be submitted inside a folder with the name `boolean`. ### Code to be copied diff --git a/subjects/boolean.fr.md b/subjects/boolean.fr.md index 1d857336..35314bf7 100644 --- a/subjects/boolean.fr.md +++ b/subjects/boolean.fr.md @@ -4,11 +4,11 @@ Créer un fichier `.go`. -- Le code ci-dessous doit être copié dans ce fichier. +- Le code ci-dessous doit être copié dans ce fichier. -- Les changements nécéssaires doivent être appliqués pour que le programme fonctionne. +- Les changements nécéssaires doivent être appliqués pour que le programme fonctionne. -- Le programme doit être rendu dans un dossier nommé `boolean`. +- Le programme doit être rendu dans un dossier nommé `boolean`. ### Code à copier diff --git a/subjects/brainfuck.en.md b/subjects/brainfuck.en.md index 5cf1dd5e..32cd7830 100644 --- a/subjects/brainfuck.en.md +++ b/subjects/brainfuck.en.md @@ -9,13 +9,13 @@ The code will always be valid, with less than 4096 operations. Every operator consists of a single character : -- '>' increment the pointer -- '<' decrement the pointer -- '+' increment the pointed byte -- '-' decrement the pointed byte -- '.' print the pointed byte on standard output -- '[' go to the matching ']' if the pointed byte is 0 (loop start) -- ']' go to the matching '[' if the pointed byte is not 0 (loop end) +- '>' increment the pointer +- '<' decrement the pointer +- '+' increment the pointed byte +- '-' decrement the pointed byte +- '.' print the pointed byte on standard output +- '[' go to the matching ']' if the pointed byte is 0 (loop start) +- ']' go to the matching '[' if the pointed byte is not 0 (loop end) Any other character is a comment. diff --git a/subjects/brainfuck.fr.md b/subjects/brainfuck.fr.md index 988cec7e..32871e9b 100644 --- a/subjects/brainfuck.fr.md +++ b/subjects/brainfuck.fr.md @@ -9,13 +9,13 @@ Le `Brainfuck` est un langage minimaliste. Il consiste en un slice de `byte` (oc Chaque opérateur consiste en un seul caractère : -- '>' incrémente le pointeur -- '<' décrémente le pointeur -- '+' incrémente le byte pointé -- '-' décrémente le byte pointé -- '.' affiche le byte pointé sur la sortie standard -- '[' se rend à son ']' correspondant si le byte pointé est 0 (début de la boucle) -- ']' se rend à son '[' correspondant si le byte pointé n'est pas 0 (fin de la boucle) +- '>' incrémente le pointeur +- '<' décrémente le pointeur +- '+' incrémente le byte pointé +- '-' décrémente le byte pointé +- '.' affiche le byte pointé sur la sortie standard +- '[' se rend à son ']' correspondant si le byte pointé est 0 (début de la boucle) +- ']' se rend à son '[' correspondant si le byte pointé n'est pas 0 (fin de la boucle) Tout autre caractère est un commentaire. diff --git a/subjects/btreeapplybylevel.en.md b/subjects/btreeapplybylevel.en.md index 7519b0b3..47e6216b 100644 --- a/subjects/btreeapplybylevel.en.md +++ b/subjects/btreeapplybylevel.en.md @@ -14,7 +14,7 @@ func BTreeApplyByLevel(root *TreeNode, f func(...interface{}) (int, error)) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreeapplybylevel.fr.md b/subjects/btreeapplybylevel.fr.md index 49e7d103..5fa5f6dc 100644 --- a/subjects/btreeapplybylevel.fr.md +++ b/subjects/btreeapplybylevel.fr.md @@ -14,7 +14,7 @@ func BTreeApplyByLevel(root *TreeNode, fn interface{}) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/btreeapplyinorder.en.md b/subjects/btreeapplyinorder.en.md index debf4df7..e78f7ea1 100644 --- a/subjects/btreeapplyinorder.en.md +++ b/subjects/btreeapplyinorder.en.md @@ -14,14 +14,14 @@ func BTreeApplyInorder(root *TreeNode, f func(...interface{}) (int, error)) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { diff --git a/subjects/btreeapplyinorder.fr.md b/subjects/btreeapplyinorder.fr.md index 29e9042e..2eba0075 100644 --- a/subjects/btreeapplyinorder.fr.md +++ b/subjects/btreeapplyinorder.fr.md @@ -14,14 +14,14 @@ func BTreeApplyInorder(root *TreeNode, f func(...interface{}) (int, error)) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { diff --git a/subjects/btreeapplypostorder.en.md b/subjects/btreeapplypostorder.en.md index 13f514a6..b2b6c8ad 100644 --- a/subjects/btreeapplypostorder.en.md +++ b/subjects/btreeapplypostorder.en.md @@ -14,22 +14,22 @@ func BTreeApplyPostorder(root *TreeNode, f func(...interface{}) (int, error)) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - root := &piscine.TreeNode{Data: "4"} - piscine.BTreeInsertData(root, "1") - piscine.BTreeInsertData(root, "7") - piscine.BTreeInsertData(root, "5") - piscine.BTreeApplyPostorder(root, fmt.Println) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + piscine.BTreeApplyPostorder(root, fmt.Println) } ``` diff --git a/subjects/btreeapplypostorder.fr.md b/subjects/btreeapplypostorder.fr.md index 297d87ce..3d0a2dc2 100644 --- a/subjects/btreeapplypostorder.fr.md +++ b/subjects/btreeapplypostorder.fr.md @@ -14,14 +14,14 @@ func BTreeApplyPostorder(root *piscine.TreeNode, f func(...interface{}) (int, er ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine "." + "fmt" + piscine "." ) func main() { diff --git a/subjects/btreeapplypreorder.en.md b/subjects/btreeapplypreorder.en.md index 0f3383ab..79518bef 100644 --- a/subjects/btreeapplypreorder.en.md +++ b/subjects/btreeapplypreorder.en.md @@ -14,7 +14,7 @@ func BTreeApplyPreorder(root *TreeNode, f func(...interface{}) (int, error)) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreeapplypreorder.fr.md b/subjects/btreeapplypreorder.fr.md index 55d3c02d..3b8e6373 100644 --- a/subjects/btreeapplypreorder.fr.md +++ b/subjects/btreeapplypreorder.fr.md @@ -14,7 +14,7 @@ func BTreeApplyPreorder(root *TreeNode, f func(...interface{}) (int, error)) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/btreedeletenode.en.md b/subjects/btreedeletenode.en.md index 46389306..2c90da5c 100644 --- a/subjects/btreedeletenode.en.md +++ b/subjects/btreedeletenode.en.md @@ -16,7 +16,7 @@ func BTreeDeleteNode(root, node *TreeNode) *TreeNode { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreedeletenode.fr.md b/subjects/btreedeletenode.fr.md index 008bb0c9..91a8954c 100644 --- a/subjects/btreedeletenode.fr.md +++ b/subjects/btreedeletenode.fr.md @@ -16,7 +16,7 @@ func BTreeDeleteNode(root, node *TreeNode) *TreeNode { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/btreeinsertdata.en.md b/subjects/btreeinsertdata.en.md index fd15db5d..86738577 100644 --- a/subjects/btreeinsertdata.en.md +++ b/subjects/btreeinsertdata.en.md @@ -10,8 +10,8 @@ The nodes must be defined as follows : ```go type TreeNode struct { - Left, Right, Parent *TreeNode - Data string + Left, Right, Parent *TreeNode + Data string } func BTreeInsertData(root *TreeNode, data string) *TreeNode { @@ -21,25 +21,25 @@ func BTreeInsertData(root *TreeNode, data string) *TreeNode { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - root := &piscine.TreeNode{Data: "4"} - piscine.BTreeInsertData(root, "1") - piscine.BTreeInsertData(root, "7") - piscine.BTreeInsertData(root, "5") - fmt.Println(root.Left.Data) - fmt.Println(root.Data) - fmt.Println(root.Right.Left.Data) - fmt.Println(root.Right.Data) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + fmt.Println(root.Left.Data) + fmt.Println(root.Data) + fmt.Println(root.Right.Left.Data) + fmt.Println(root.Right.Data) } ``` diff --git a/subjects/btreeinsertdata.fr.md b/subjects/btreeinsertdata.fr.md index 865200e7..e24f7636 100644 --- a/subjects/btreeinsertdata.fr.md +++ b/subjects/btreeinsertdata.fr.md @@ -10,8 +10,8 @@ Les nodes doivent être définies comme ci-dessous : ```go type TreeNode struct { - Left, Right, Parent *TreeNode - Data string + Left, Right, Parent *TreeNode + Data string } func BTreeInsertData(root *TreeNode, data string) *TreeNode { @@ -21,25 +21,25 @@ func BTreeInsertData(root *TreeNode, data string) *TreeNode { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - root := &piscine.TreeNode{Data: "4"} - piscine.BTreeInsertData(root, "1") - piscine.BTreeInsertData(root, "7") - piscine.BTreeInsertData(root, "5") - fmt.Println(root.Left.Data) - fmt.Println(root.Data) - fmt.Println(root.Right.Left.Data) - fmt.Println(root.Right.Data) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + fmt.Println(root.Left.Data) + fmt.Println(root.Data) + fmt.Println(root.Right.Left.Data) + fmt.Println(root.Right.Data) } ``` diff --git a/subjects/btreeisbinary.en.md b/subjects/btreeisbinary.en.md index efa222f1..ca87f236 100644 --- a/subjects/btreeisbinary.en.md +++ b/subjects/btreeisbinary.en.md @@ -14,7 +14,7 @@ func BTreeIsBinary(root *TreeNode) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreeisbinary.fr.md b/subjects/btreeisbinary.fr.md index b2408959..26ad752a 100644 --- a/subjects/btreeisbinary.fr.md +++ b/subjects/btreeisbinary.fr.md @@ -14,7 +14,7 @@ func BTreeIsBinary(root *TreeNode) bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/btreelevelcount.en.md b/subjects/btreelevelcount.en.md index 762ab299..0d7c47d6 100644 --- a/subjects/btreelevelcount.en.md +++ b/subjects/btreelevelcount.en.md @@ -14,7 +14,7 @@ func BTreeLevelCount(root *TreeNode) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreelevelcount.fr.md b/subjects/btreelevelcount.fr.md index 4e3d0090..20a18f92 100644 --- a/subjects/btreelevelcount.fr.md +++ b/subjects/btreelevelcount.fr.md @@ -14,7 +14,7 @@ func BTreeLevelCount(root *TreeNode) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/btreemax.en.md b/subjects/btreemax.en.md index e7f57175..230c5ac4 100644 --- a/subjects/btreemax.en.md +++ b/subjects/btreemax.en.md @@ -14,7 +14,7 @@ func BTreeMax(root *TreeNode) *TreeNode { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreemax.fr.md b/subjects/btreemax.fr.md index 5d59fba4..60d22364 100644 --- a/subjects/btreemax.fr.md +++ b/subjects/btreemax.fr.md @@ -14,7 +14,7 @@ func BTreeMax(root *TreeNode) *TreeNode { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/btreemin.en.md b/subjects/btreemin.en.md index 64826e84..13bf7a88 100644 --- a/subjects/btreemin.en.md +++ b/subjects/btreemin.en.md @@ -14,7 +14,7 @@ func BTreeMin(root *TreeNode) *TreeNode { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreemin.fr.md b/subjects/btreemin.fr.md index bd6dff01..0161f187 100644 --- a/subjects/btreemin.fr.md +++ b/subjects/btreemin.fr.md @@ -14,7 +14,7 @@ func BTreeMin(root *TreeNode) *TreeNode { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/btreeprintroot.en.md b/subjects/btreeprintroot.en.md index dd689261..91872c95 100644 --- a/subjects/btreeprintroot.en.md +++ b/subjects/btreeprintroot.en.md @@ -20,18 +20,18 @@ func PrintRoot(root *TreeNode){ ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main func main() { - //rootNode initialized with the value "who" - //rootNode1 initialized with the value "are" - //rootNode2 initialized with the value "you" - printRoot(rootNode) - printRoot(rootNode1) - printRoot(rootNode2) + //rootNode initialized with the value "who" + //rootNode1 initialized with the value "are" + //rootNode2 initialized with the value "you" + printRoot(rootNode) + printRoot(rootNode1) + printRoot(rootNode2) } ``` diff --git a/subjects/btreeprintroot.fr.md b/subjects/btreeprintroot.fr.md index 826a2596..1ab42120 100644 --- a/subjects/btreeprintroot.fr.md +++ b/subjects/btreeprintroot.fr.md @@ -9,8 +9,8 @@ Les nodes doivent être définies comme ci-dessous: ```go type TreeNode struct { - left, right *TreeNode - data string + left, right *TreeNode + data string } func PrintRoot(root *TreeNode){ @@ -20,18 +20,18 @@ func PrintRoot(root *TreeNode){ ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main func main() { - //rootNode initialized with the value "who" - //rootNode1 initialized with the value "are" - //rootNode2 initialized with the value "you" - printRoot(rootNode) - printRoot(rootNode1) - printRoot(rootNode2) + //rootNode initialized with the value "who" + //rootNode1 initialized with the value "are" + //rootNode2 initialized with the value "you" + printRoot(rootNode) + printRoot(rootNode1) + printRoot(rootNode2) } ``` diff --git a/subjects/btreesearchitem.en.md b/subjects/btreesearchitem.en.md index 445d63e9..00d13efb 100644 --- a/subjects/btreesearchitem.en.md +++ b/subjects/btreesearchitem.en.md @@ -14,7 +14,7 @@ func BTreeSearchItem(root *TreeNode, elem string) *TreeNode { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreesearchitem.fr.md b/subjects/btreesearchitem.fr.md index faf6c105..9e0e97e3 100644 --- a/subjects/btreesearchitem.fr.md +++ b/subjects/btreesearchitem.fr.md @@ -14,7 +14,7 @@ func BTreeSearchItem(root *TreeNode, elem string) *TreeNode { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/btreetransplant.en.md b/subjects/btreetransplant.en.md index ed15540b..4748db9d 100644 --- a/subjects/btreetransplant.en.md +++ b/subjects/btreetransplant.en.md @@ -14,7 +14,7 @@ func BTreeTransplant(root, node, rplc *TreeNode) *TreeNode { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/btreetransplant.fr.md b/subjects/btreetransplant.fr.md index e1268323..c5a425d6 100644 --- a/subjects/btreetransplant.fr.md +++ b/subjects/btreetransplant.fr.md @@ -14,7 +14,7 @@ func BTreeTransplant(root, node, rplc *TreeNode) *TreeNode { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/capitalize.en.md b/subjects/capitalize.en.md index 8c32b148..24482ce4 100644 --- a/subjects/capitalize.en.md +++ b/subjects/capitalize.en.md @@ -16,7 +16,7 @@ func Capitalize(s string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/capitalize.fr.md b/subjects/capitalize.fr.md index a73e81a1..1cd67916 100644 --- a/subjects/capitalize.fr.md +++ b/subjects/capitalize.fr.md @@ -16,7 +16,7 @@ func Capitalize(s string) string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/capitalizeprog.en.md b/subjects/capitalizeprog.en.md index 49a87b71..0151c867 100644 --- a/subjects/capitalizeprog.en.md +++ b/subjects/capitalizeprog.en.md @@ -4,11 +4,11 @@ Write a program that capitalizes the first letter of each word **and** lowercases the rest of each word of a `string`. -- A word is a sequence of **alphanumerical** characters. +- A word is a sequence of **alphanumerical** characters. -- If there is more than one argument the program should print `Too many arguments`. +- If there is more than one argument the program should print `Too many arguments`. -- If there is no arguments given the program should print a newline ("`\n`"). +- If there is no arguments given the program should print a newline ("`\n`"). ### Usage : diff --git a/subjects/capitalizeprog.fr.md b/subjects/capitalizeprog.fr.md index 521f39c1..1ad465d5 100644 --- a/subjects/capitalizeprog.fr.md +++ b/subjects/capitalizeprog.fr.md @@ -4,11 +4,11 @@ Écrire un programme qui met en majuscule la première lettre de chaque mot et en minuscule les autres lettres du reste du mot d'une `string`. -- Un mot est une suite de caractères **alphanumériques**. +- Un mot est une suite de caractères **alphanumériques**. -- Si il y a plus d'un argument le programme doit afficher `Too many arguments`. +- Si il y a plus d'un argument le programme doit afficher `Too many arguments`. -- Si il n'y a pas d'arguments le programme doit afficher un retour à la ligne (`'\n'`). +- Si il n'y a pas d'arguments le programme doit afficher un retour à la ligne (`'\n'`). ### Utilisation : diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 6667d9a8..bb9b18c1 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -4,23 +4,23 @@ Write a program that has the same behaviour as the system's `cat` command-line. -- The `options` do not have to be handled. +- The `options` do not have to be handled. -- If the program is called without arguments it should take the `input` and print it back (as shown with the "Hello" example below). +- If the program is called without arguments it should take the `input` and print it back (as shown with the "Hello" example below). -- In the program folder create two files named `quest8.txt` and `quest8T.txt`. +- In the program folder create two files named `quest8.txt` and `quest8T.txt`. -- Copy to the `quest8.txt` file the following sentence : +- Copy to the `quest8.txt` file the following sentence : `"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing` -- Copy to the `quest8T.txt` file the following sentence : +- Copy to the `quest8T.txt` file the following sentence : `"Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."` -- In case of error the program should print the error. +- In case of error the program should print the error. -- The program must be submitted inside a folder named `cat`. +- The program must be submitted inside a folder named `cat`. ```console student@ubuntu:~/[[ROOT]]/cat$ go build diff --git a/subjects/cat.fr.md b/subjects/cat.fr.md index dba3f97c..4629e309 100644 --- a/subjects/cat.fr.md +++ b/subjects/cat.fr.md @@ -4,23 +4,23 @@ Écrire un programme qui a le même comportement que la ligne de commande `cat`. -- Les `options` ne doivent pas être gérés. +- Les `options` ne doivent pas être gérés. -- Si le programme est éxécuté sans arguments il doit prendre l'`input` et l'afficher. +- Si le programme est éxécuté sans arguments il doit prendre l'`input` et l'afficher. -- Dans le dossier du programme créer deux fichiers nommés `quest8.txt` et `quest8T.txt`. +- Dans le dossier du programme créer deux fichiers nommés `quest8.txt` et `quest8T.txt`. -- Copier dans le fichier `quest8.txt` la phrase suivante : +- Copier dans le fichier `quest8.txt` la phrase suivante : `"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing` -- Copier dans le fichier `quest8T.txt` la phrase suivante : +- Copier dans le fichier `quest8T.txt` la phrase suivante : `"Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."` -- En cas d'erreur le programme doit afficher l'erreur. +- En cas d'erreur le programme doit afficher l'erreur. -- Le programme doit être rendu dans un dossier nommé `cat`. +- Le programme doit être rendu dans un dossier nommé `cat`. ### Utilisation: diff --git a/subjects/changeorder.en.md b/subjects/changeorder.en.md index 0c56c564..7f044ba0 100644 --- a/subjects/changeorder.en.md +++ b/subjects/changeorder.en.md @@ -24,8 +24,8 @@ You have to return pointer/reference to the beginning of new list package main type NodeAddL struct { - Next *NodeAddL - Num int + Next *NodeAddL + Num int } func Changeorder(node *NodeAddL) *NodeAddL { @@ -41,26 +41,26 @@ Here is a possible program to test your function: package main import ( - "fmt" + "fmt" ) // I implemented pushBack for this func main() { - num1 := &NodeAddL{Num: 1} - num1 = pushBack(num1, 2) - num1 = pushBack(num1, 3) - num1 = pushBack(num1, 4) - num1 = pushBack(num1, 5) - - result := Changeorder(num1) - for tmp := result; tmp != nil; tmp = tmp.Next { - fmt.Print(tmp.Num) - if tmp.Next != nil { - fmt.Print(" -> ") - } - } - fmt.Println() + num1 := &NodeAddL{Num: 1} + num1 = pushBack(num1, 2) + num1 = pushBack(num1, 3) + num1 = pushBack(num1, 4) + num1 = pushBack(num1, 5) + + result := Changeorder(num1) + for tmp := result; tmp != nil; tmp = tmp.Next { + fmt.Print(tmp.Num) + if tmp.Next != nil { + fmt.Print(" -> ") + } + } + fmt.Println() } ``` diff --git a/subjects/cl-camp1.en.md b/subjects/cl-camp1.en.md index c03a15d2..d559cec0 100644 --- a/subjects/cl-camp1.en.md +++ b/subjects/cl-camp1.en.md @@ -10,11 +10,11 @@ The instincts are coming back... Put in a file `mastertheLS` the command line that will: -- list the files and directories of the current directory. -- Ignore the hidden files, the "." and the "..". -- Separates the resuls with commas. -- Order them by ascending order of creation date. -- Have the directories ends with a `/`. +- list the files and directories of the current directory. +- Ignore the hidden files, the "." and the "..". +- Separates the resuls with commas. +- Order them by ascending order of creation date. +- Have the directories ends with a `/`. ### Hint diff --git a/subjects/cl-camp1.fr.md b/subjects/cl-camp1.fr.md index 6f63db48..8ffabc99 100644 --- a/subjects/cl-camp1.fr.md +++ b/subjects/cl-camp1.fr.md @@ -10,11 +10,11 @@ Les instincts resurgissent... Mettez dans un fichier `mastertheLS` la ligne de commande qui: -- listera les fichiers et dossiers dans le dossier courant. -- Ignorera les fichiers cachés, le "." et le "..". -- Separarera le resultat avec des virgules. -- Les triera pas ordre croissant de date de création. -- Placera un `/` en face des dossiers. +- listera les fichiers et dossiers dans le dossier courant. +- Ignorera les fichiers cachés, le "." et le "..". +- Separarera le resultat avec des virgules. +- Les triera pas ordre croissant de date de création. +- Placera un `/` en face des dossiers. ### Indice diff --git a/subjects/cl-camp3.en.md b/subjects/cl-camp3.en.md index 5372dcba..9e6f12a2 100644 --- a/subjects/cl-camp3.en.md +++ b/subjects/cl-camp3.en.md @@ -6,9 +6,9 @@ Create a file `look`, which will look for and show, in the current directory and its sub-folders all the files : -- starting with an `a` or, -- all the files ending with a `z` or, -- all files starting with `z` and ending with `a!`. +- starting with an `a` or, +- all the files ending with a `z` or, +- all files starting with `z` and ending with `a!`. ### Hint diff --git a/subjects/cl-camp3.fr.md b/subjects/cl-camp3.fr.md index d96b147e..558e16b6 100644 --- a/subjects/cl-camp3.fr.md +++ b/subjects/cl-camp3.fr.md @@ -6,9 +6,9 @@ Créer un fichier `look`, qui cherchera et montrera, dans le répertoire courant et ses sous-répertoires, tous les fichiers qui: -- commence avec `a` et, -- tous les fichiers qui se terminent avec `z` et, -- tous les fichiers qui commencent avec `z` et qui se finissent avec `a!`. +- commence avec `a` et, +- tous les fichiers qui se terminent avec `z` et, +- tous les fichiers qui commencent avec `z` et qui se finissent avec `a!`. ### Indice diff --git a/subjects/cl-camp4.en.md b/subjects/cl-camp4.en.md index 7ebb9bb4..7033b310 100644 --- a/subjects/cl-camp4.en.md +++ b/subjects/cl-camp4.en.md @@ -6,13 +6,13 @@ Create a file `myfamily.sh`, which will show a subject's family (key: relatives). -- The quotes have to be removed. +- The quotes have to be removed. -- The subject will be decided depending on his ID which will be contained in the environment variable HERO_ID. +- The subject will be decided depending on his ID which will be contained in the environment variable HERO_ID. -* Where to look : https://[[DOMAIN]]/assets/superhero/all.json +* Where to look : https://[[DOMAIN]]/assets/superhero/all.json -* What to use : curl, jq and others... +* What to use : curl, jq and others... ### Usage diff --git a/subjects/cl-camp4.fr.md b/subjects/cl-camp4.fr.md index b9a6d09e..0b2305f6 100644 --- a/subjects/cl-camp4.fr.md +++ b/subjects/cl-camp4.fr.md @@ -6,13 +6,13 @@ Créer un fichier `myfamily.sh`, qui affichera la famille d'un individu (clef: relatives). -- Les guillemets doivent être enlevés. +- Les guillemets doivent être enlevés. -- L'individu sera choisi en fonction de son ID qui sera contenu dans la variable d'environment HERO_ID. +- L'individu sera choisi en fonction de son ID qui sera contenu dans la variable d'environment HERO_ID. -* Où chercher : https://[[DOMAIN]]/assets/superhero/all.json +* Où chercher : https://[[DOMAIN]]/assets/superhero/all.json -* Quoi utiliser : `curl`, `jq` et d'autres... +* Quoi utiliser : `curl`, `jq` et d'autres... ### Utilisation diff --git a/subjects/cl-camp5.en.md b/subjects/cl-camp5.en.md index 7b68ade9..37210ce3 100644 --- a/subjects/cl-camp5.en.md +++ b/subjects/cl-camp5.en.md @@ -6,7 +6,7 @@ Create a file `lookagain.sh`, which will look for, from the current directory and its sub-folders all the files: -- all the files ending with `.sh`. +- all the files ending with `.sh`. That command will only show the name of the files without the `.sh`. diff --git a/subjects/cl-camp5.fr.md b/subjects/cl-camp5.fr.md index ec919d71..10595ab7 100644 --- a/subjects/cl-camp5.fr.md +++ b/subjects/cl-camp5.fr.md @@ -6,7 +6,7 @@ Créer un fichier `lookagain.sh`, qui cherchera et montrera, dans le répertoire courant et ses sous-répertoires, tous les fichiers qui: -- qui finissent avec `.sh`. +- qui finissent avec `.sh`. Cette commande montrera le nom des fichiers sans le`.sh`. diff --git a/subjects/cl.en.md b/subjects/cl.en.md index 2aea2c97..ef81d490 100644 --- a/subjects/cl.en.md +++ b/subjects/cl.en.md @@ -10,11 +10,11 @@ The instincts are coming back... Put in a file `mastertheLS` the command line that will: -- list the files and folders of the current folder. -- Ignore the hidden files, the "." and the "..". -- Separates the resuls with commas. -- Order them by ascending order of creation date. -- Have the folders have a `/` in front of them. +- list the files and folders of the current folder. +- Ignore the hidden files, the "." and the "..". +- Separates the results with commas. +- Order them by ascending order of creation date. +- Have the folders have a `/` in front of them. ### Hint diff --git a/subjects/cl.fr.md b/subjects/cl.fr.md index 2aea2c97..ef81d490 100644 --- a/subjects/cl.fr.md +++ b/subjects/cl.fr.md @@ -10,11 +10,11 @@ The instincts are coming back... Put in a file `mastertheLS` the command line that will: -- list the files and folders of the current folder. -- Ignore the hidden files, the "." and the "..". -- Separates the resuls with commas. -- Order them by ascending order of creation date. -- Have the folders have a `/` in front of them. +- list the files and folders of the current folder. +- Ignore the hidden files, the "." and the "..". +- Separates the results with commas. +- Order them by ascending order of creation date. +- Have the folders have a `/` in front of them. ### Hint diff --git a/subjects/cleanstr.en.md b/subjects/cleanstr.en.md index 418ca119..1cf0283d 100644 --- a/subjects/cleanstr.en.md +++ b/subjects/cleanstr.en.md @@ -3,6 +3,7 @@ ### Instructions Write a **program** that takes a `string`, and displays this `string` with exactly: + - one space between words. - without spaces nor tabs at the beginning nor at the end. - with the result followed by a newline ("`\n`"). diff --git a/subjects/cleanstr.fr.md b/subjects/cleanstr.fr.md index a55ac162..5f7c17f8 100644 --- a/subjects/cleanstr.fr.md +++ b/subjects/cleanstr.fr.md @@ -3,6 +3,7 @@ ### Instructions Écrire un programme qui prend une `string`, et qui affiche cette `string` avec exactement: + - un espace entre les mots. - aucun espace ni de tabulation ni au début ni à la fin. - le résultat avecsuivi d'un saut de ligne("`\n`"). diff --git a/subjects/collatzcountdown.en.md b/subjects/collatzcountdown.en.md index 6c0581f1..e6759c81 100644 --- a/subjects/collatzcountdown.en.md +++ b/subjects/collatzcountdown.en.md @@ -4,7 +4,7 @@ Write a function, `CollatzCountdown`, that returns the number of steps necessary to reach 1 using the collatz countdown. -- It must return `-1` if `start` is equal to `0` or negative. +- It must return `-1` if `start` is equal to `0` or negative. ### Expected function @@ -16,7 +16,7 @@ func CollatzCountdown(start int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/collatzcountdown.fr.md b/subjects/collatzcountdown.fr.md index 1650ff29..d6baaa0a 100644 --- a/subjects/collatzcountdown.fr.md +++ b/subjects/collatzcountdown.fr.md @@ -16,7 +16,7 @@ func CollatzCountdown(start int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/comcheck.en.md b/subjects/comcheck.en.md index fb7472f1..19d14407 100644 --- a/subjects/comcheck.en.md +++ b/subjects/comcheck.en.md @@ -4,9 +4,9 @@ Write a program `comcheck` that displays on the standard output `Alert!!!` followed by newline (`'\n'`) if at least one of the arguments passed in parameter matches the `string`: -- `01`, `galaxy` or `galaxy 01`. +- `01`, `galaxy` or `galaxy 01`. -- If none of the parameters match, the program displays a nothing. +- If none of the parameters match, the program displays a nothing. ### Usage diff --git a/subjects/comcheck.fr.md b/subjects/comcheck.fr.md index d2a24d0d..d0352491 100644 --- a/subjects/comcheck.fr.md +++ b/subjects/comcheck.fr.md @@ -4,9 +4,9 @@ écrire un programme `comcheck` qui affiche sur la sortie standard `Alert!!!` suivi d'un retour à la ligne (`'\n'`) si au moins un des arguments passé ne paramètre correspond aux `string`: -- `01`, `galaxy` ou `galaxy 01`. +- `01`, `galaxy` ou `galaxy 01`. -- si aucun des paramètres correspond, le programme affiche rien. +- si aucun des paramètres correspond, le programme affiche rien. ### Usage diff --git a/subjects/commandments.en.md b/subjects/commandments.en.md index 9081d208..e2fe4082 100644 --- a/subjects/commandments.en.md +++ b/subjects/commandments.en.md @@ -16,89 +16,89 @@ A few basic principles to follow ### The Commandements _(read them)_ -- Le numérique est ta passion. +- Le numérique est ta passion. -- Ton objectif à 42 : développer ton talent et tes compétences pour le marché du numérique. +- Ton objectif à 42 : développer ton talent et tes compétences pour le marché du numérique. -- L’objectif de 42 pour toi : te faire accéder au marché de l’emploi, à une longue et pérenne carrière dans le numérique, et te faire progresser socialement. +- L’objectif de 42 pour toi : te faire accéder au marché de l’emploi, à une longue et pérenne carrière dans le numérique, et te faire progresser socialement. -- L’ambition de 42 pour toi : être un pionnier du numérique de demain. +- L’ambition de 42 pour toi : être un pionnier du numérique de demain. -- Il est de ta responsabilité de gérer ta progression : 42 te propose un parcours individualisé adapté à ton rythme. +- Il est de ta responsabilité de gérer ta progression : 42 te propose un parcours individualisé adapté à ton rythme. -- Des challenges jalonnent ton parcours. 42 ne fournira aucun élément de solution. C’est ton rôle de chercher et trouver par toi-même ces solutions pour atteindre l’objectif. +- Des challenges jalonnent ton parcours. 42 ne fournira aucun élément de solution. C’est ton rôle de chercher et trouver par toi-même ces solutions pour atteindre l’objectif. -- Sois actif. N’attend pas que les choses se fassent pour toi. 42 est un parcours 100% pratique. +- Sois actif. N’attend pas que les choses se fassent pour toi. 42 est un parcours 100% pratique. -- Sois autonome dans ton cursus. N’attend pas que l’on te dise quoi faire. +- Sois autonome dans ton cursus. N’attend pas que l’on te dise quoi faire. -- Sois collaboratif, autant sur les projets solos que les projets de groupe. Face aux challenges à resoudre, l’échange et le debat sont tes meilleures armes. +- Sois collaboratif, autant sur les projets solos que les projets de groupe. Face aux challenges à resoudre, l’échange et le debat sont tes meilleures armes. -- Ne "crois" pas. Sois sûr. Techniquement, relationnelement, organisationellement, administrativement. +- Ne "crois" pas. Sois sûr. Techniquement, relationnelement, organisationellement, administrativement. -- Pour être sûr, teste, contrôle. +- Pour être sûr, teste, contrôle. -- N’ai pas peur de te tromper, d’échouer. L’échec est une étape normale vers le succès. +- N’ai pas peur de te tromper, d’échouer. L’échec est une étape normale vers le succès. -- Teste à nouveau. Collabore davantage pour tester davantage. +- Teste à nouveau. Collabore davantage pour tester davantage. -- Ose. Le risque est de se tromper. Voir le commandement 12. +- Ose. Le risque est de se tromper. Voir le commandement 12. -- Sois rigoureux dans ton travail. +- Sois rigoureux dans ton travail. -- Sois investi dans ton cursus : 50 heures par semaine est un minimum. Ta capacité de travail est une valeur. L’école est ouverte 24h/24 et 7j/7. +- Sois investi dans ton cursus : 50 heures par semaine est un minimum. Ta capacité de travail est une valeur. L’école est ouverte 24h/24 et 7j/7. -- Sois régulier dans ton travail. Un jour oui, un jour non, un coup nocturne, un coup diurne... le chaos t’empêche d’avancer. +- Sois régulier dans ton travail. Un jour oui, un jour non, un coup nocturne, un coup diurne... le chaos t’empêche d’avancer. -- Prévois un groupe de travail large et hétérogène pour y trouver facilement des idées neuves et des groupes de projet. +- Prévois un groupe de travail large et hétérogène pour y trouver facilement des idées neuves et des groupes de projet. -- Pour tes collaborations et ton travail en groupe, privilégie des étudiants qui n’ont pas déjà la solution au problème. +- Pour tes collaborations et ton travail en groupe, privilégie des étudiants qui n’ont pas déjà la solution au problème. -- Sois investi dans ton groupe de projet, et ne le laisse pas faire ton travail à ta place. +- Sois investi dans ton groupe de projet, et ne le laisse pas faire ton travail à ta place. -- Ton groupe de projet est solidaire, son succès comme son échec est de la responsabilité de tous, et les conflits se règlent en interne. +- Ton groupe de projet est solidaire, son succès comme son échec est de la responsabilité de tous, et les conflits se règlent en interne. -- Travaille à l’école. Faire du peer-learning, collaborer, cela demande d’être physiquement avec les autres. A distance cela ne fonctionne pas. +- Travaille à l’école. Faire du peer-learning, collaborer, cela demande d’être physiquement avec les autres. A distance cela ne fonctionne pas. -- Implique toi dans les évaluations de tes projets. Elles te permettent de prendre du recul. +- Implique toi dans les évaluations de tes projets. Elles te permettent de prendre du recul. -- Implique toi dans tes évaluations des projets des autres. La qualité de la communauté en dépend. +- Implique toi dans tes évaluations des projets des autres. La qualité de la communauté en dépend. -- Sois juste et teste rigoureusement tes projets comme ceux des autres en évaluation avec tes propres jeux de tests. +- Sois juste et teste rigoureusement tes projets comme ceux des autres en évaluation avec tes propres jeux de tests. -- Joue pleinement le jeu de ta scolarité dans l’état d’esprit demandé, fait tous les exercices et projets demandés. +- Joue pleinement le jeu de ta scolarité dans l’état d’esprit demandé, fait tous les exercices et projets demandés. -- Ne cherche pas des biais et des failles dans le système. Tu vas fausser ta propre formation et ta valeur sur le marché. +- Ne cherche pas des biais et des failles dans le système. Tu vas fausser ta propre formation et ta valeur sur le marché. -- Ne triche pas intentionellement. C’est amoral, cela contredit le commandement 12, et c’est du temps inutilement passé à ne pas développer tes compétences pour faire croire aux autres que tu sais coder alors que ce n’est pas le cas. +- Ne triche pas intentionellement. C’est amoral, cela contredit le commandement 12, et c’est du temps inutilement passé à ne pas développer tes compétences pour faire croire aux autres que tu sais coder alors que ce n’est pas le cas. -- Ne rends pas un projet que tu ne serais pas capable de reproduire seul à huis clos. Même si c’est parfois involontaire, c’est aussi de la triche. +- Ne rends pas un projet que tu ne serais pas capable de reproduire seul à huis clos. Même si c’est parfois involontaire, c’est aussi de la triche. -- C’est pas pour tes parents que tu travailles, ni pour le staff. C’est pour toi. +- C’est pas pour tes parents que tu travailles, ni pour le staff. C’est pour toi. -- Participe à la vie de la communauté, à son épanouissement, et sa qualité en sortie de formation. +- Participe à la vie de la communauté, à son épanouissement, et sa qualité en sortie de formation. -- Aide au respect de ces commandements par la communauté. +- Aide au respect de ces commandements par la communauté. -- Sois bienveillant et empathique vis à vis de tes camarades comme des personnes avec qui tu interagis, échanges, débats. +- Sois bienveillant et empathique vis à vis de tes camarades comme des personnes avec qui tu interagis, échanges, débats. -- N’ai pas peur du monde professionnel. +- N’ai pas peur du monde professionnel. -- Respecte le matériel. Des consignes spécifiques sont données en ce sens. +- Respecte le matériel. Des consignes spécifiques sont données en ce sens. -- Respecte les locaux. Des consignes spécifiques sont données en ce sens. +- Respecte les locaux. Des consignes spécifiques sont données en ce sens. -- Respecte les gens, étudiants, staffs, partenaires, visiteurs. +- Respecte les gens, étudiants, staffs, partenaires, visiteurs. -- Respecte la loi en vigueur dans le pays. +- Respecte la loi en vigueur dans le pays. -- Respecte les lois et consignes en vigueur liées à la consommation d’alcool. +- Respecte les lois et consignes en vigueur liées à la consommation d’alcool. -- Respecte les lois et consignes en vigueur liées à la consommation de tabac, stupéfiants, ou produits assimilés. +- Respecte les lois et consignes en vigueur liées à la consommation de tabac, stupéfiants, ou produits assimilés. -- N’hésite pas à interagir avec le staff, pour parler de tes problèmes, pour remonter des problèmes dans le cursus, pour contribuer au cursus. +- N’hésite pas à interagir avec le staff, pour parler de tes problèmes, pour remonter des problèmes dans le cursus, pour contribuer au cursus. -- Si tu t’interroges ou ne comprends pas nos choix pédagogiques, demande nous. On ne fait généralement rien au hasard. +- Si tu t’interroges ou ne comprends pas nos choix pédagogiques, demande nous. On ne fait généralement rien au hasard. ### Required diff --git a/subjects/commandments.fr.md b/subjects/commandments.fr.md index 9081d208..e2fe4082 100644 --- a/subjects/commandments.fr.md +++ b/subjects/commandments.fr.md @@ -16,89 +16,89 @@ A few basic principles to follow ### The Commandements _(read them)_ -- Le numérique est ta passion. +- Le numérique est ta passion. -- Ton objectif à 42 : développer ton talent et tes compétences pour le marché du numérique. +- Ton objectif à 42 : développer ton talent et tes compétences pour le marché du numérique. -- L’objectif de 42 pour toi : te faire accéder au marché de l’emploi, à une longue et pérenne carrière dans le numérique, et te faire progresser socialement. +- L’objectif de 42 pour toi : te faire accéder au marché de l’emploi, à une longue et pérenne carrière dans le numérique, et te faire progresser socialement. -- L’ambition de 42 pour toi : être un pionnier du numérique de demain. +- L’ambition de 42 pour toi : être un pionnier du numérique de demain. -- Il est de ta responsabilité de gérer ta progression : 42 te propose un parcours individualisé adapté à ton rythme. +- Il est de ta responsabilité de gérer ta progression : 42 te propose un parcours individualisé adapté à ton rythme. -- Des challenges jalonnent ton parcours. 42 ne fournira aucun élément de solution. C’est ton rôle de chercher et trouver par toi-même ces solutions pour atteindre l’objectif. +- Des challenges jalonnent ton parcours. 42 ne fournira aucun élément de solution. C’est ton rôle de chercher et trouver par toi-même ces solutions pour atteindre l’objectif. -- Sois actif. N’attend pas que les choses se fassent pour toi. 42 est un parcours 100% pratique. +- Sois actif. N’attend pas que les choses se fassent pour toi. 42 est un parcours 100% pratique. -- Sois autonome dans ton cursus. N’attend pas que l’on te dise quoi faire. +- Sois autonome dans ton cursus. N’attend pas que l’on te dise quoi faire. -- Sois collaboratif, autant sur les projets solos que les projets de groupe. Face aux challenges à resoudre, l’échange et le debat sont tes meilleures armes. +- Sois collaboratif, autant sur les projets solos que les projets de groupe. Face aux challenges à resoudre, l’échange et le debat sont tes meilleures armes. -- Ne "crois" pas. Sois sûr. Techniquement, relationnelement, organisationellement, administrativement. +- Ne "crois" pas. Sois sûr. Techniquement, relationnelement, organisationellement, administrativement. -- Pour être sûr, teste, contrôle. +- Pour être sûr, teste, contrôle. -- N’ai pas peur de te tromper, d’échouer. L’échec est une étape normale vers le succès. +- N’ai pas peur de te tromper, d’échouer. L’échec est une étape normale vers le succès. -- Teste à nouveau. Collabore davantage pour tester davantage. +- Teste à nouveau. Collabore davantage pour tester davantage. -- Ose. Le risque est de se tromper. Voir le commandement 12. +- Ose. Le risque est de se tromper. Voir le commandement 12. -- Sois rigoureux dans ton travail. +- Sois rigoureux dans ton travail. -- Sois investi dans ton cursus : 50 heures par semaine est un minimum. Ta capacité de travail est une valeur. L’école est ouverte 24h/24 et 7j/7. +- Sois investi dans ton cursus : 50 heures par semaine est un minimum. Ta capacité de travail est une valeur. L’école est ouverte 24h/24 et 7j/7. -- Sois régulier dans ton travail. Un jour oui, un jour non, un coup nocturne, un coup diurne... le chaos t’empêche d’avancer. +- Sois régulier dans ton travail. Un jour oui, un jour non, un coup nocturne, un coup diurne... le chaos t’empêche d’avancer. -- Prévois un groupe de travail large et hétérogène pour y trouver facilement des idées neuves et des groupes de projet. +- Prévois un groupe de travail large et hétérogène pour y trouver facilement des idées neuves et des groupes de projet. -- Pour tes collaborations et ton travail en groupe, privilégie des étudiants qui n’ont pas déjà la solution au problème. +- Pour tes collaborations et ton travail en groupe, privilégie des étudiants qui n’ont pas déjà la solution au problème. -- Sois investi dans ton groupe de projet, et ne le laisse pas faire ton travail à ta place. +- Sois investi dans ton groupe de projet, et ne le laisse pas faire ton travail à ta place. -- Ton groupe de projet est solidaire, son succès comme son échec est de la responsabilité de tous, et les conflits se règlent en interne. +- Ton groupe de projet est solidaire, son succès comme son échec est de la responsabilité de tous, et les conflits se règlent en interne. -- Travaille à l’école. Faire du peer-learning, collaborer, cela demande d’être physiquement avec les autres. A distance cela ne fonctionne pas. +- Travaille à l’école. Faire du peer-learning, collaborer, cela demande d’être physiquement avec les autres. A distance cela ne fonctionne pas. -- Implique toi dans les évaluations de tes projets. Elles te permettent de prendre du recul. +- Implique toi dans les évaluations de tes projets. Elles te permettent de prendre du recul. -- Implique toi dans tes évaluations des projets des autres. La qualité de la communauté en dépend. +- Implique toi dans tes évaluations des projets des autres. La qualité de la communauté en dépend. -- Sois juste et teste rigoureusement tes projets comme ceux des autres en évaluation avec tes propres jeux de tests. +- Sois juste et teste rigoureusement tes projets comme ceux des autres en évaluation avec tes propres jeux de tests. -- Joue pleinement le jeu de ta scolarité dans l’état d’esprit demandé, fait tous les exercices et projets demandés. +- Joue pleinement le jeu de ta scolarité dans l’état d’esprit demandé, fait tous les exercices et projets demandés. -- Ne cherche pas des biais et des failles dans le système. Tu vas fausser ta propre formation et ta valeur sur le marché. +- Ne cherche pas des biais et des failles dans le système. Tu vas fausser ta propre formation et ta valeur sur le marché. -- Ne triche pas intentionellement. C’est amoral, cela contredit le commandement 12, et c’est du temps inutilement passé à ne pas développer tes compétences pour faire croire aux autres que tu sais coder alors que ce n’est pas le cas. +- Ne triche pas intentionellement. C’est amoral, cela contredit le commandement 12, et c’est du temps inutilement passé à ne pas développer tes compétences pour faire croire aux autres que tu sais coder alors que ce n’est pas le cas. -- Ne rends pas un projet que tu ne serais pas capable de reproduire seul à huis clos. Même si c’est parfois involontaire, c’est aussi de la triche. +- Ne rends pas un projet que tu ne serais pas capable de reproduire seul à huis clos. Même si c’est parfois involontaire, c’est aussi de la triche. -- C’est pas pour tes parents que tu travailles, ni pour le staff. C’est pour toi. +- C’est pas pour tes parents que tu travailles, ni pour le staff. C’est pour toi. -- Participe à la vie de la communauté, à son épanouissement, et sa qualité en sortie de formation. +- Participe à la vie de la communauté, à son épanouissement, et sa qualité en sortie de formation. -- Aide au respect de ces commandements par la communauté. +- Aide au respect de ces commandements par la communauté. -- Sois bienveillant et empathique vis à vis de tes camarades comme des personnes avec qui tu interagis, échanges, débats. +- Sois bienveillant et empathique vis à vis de tes camarades comme des personnes avec qui tu interagis, échanges, débats. -- N’ai pas peur du monde professionnel. +- N’ai pas peur du monde professionnel. -- Respecte le matériel. Des consignes spécifiques sont données en ce sens. +- Respecte le matériel. Des consignes spécifiques sont données en ce sens. -- Respecte les locaux. Des consignes spécifiques sont données en ce sens. +- Respecte les locaux. Des consignes spécifiques sont données en ce sens. -- Respecte les gens, étudiants, staffs, partenaires, visiteurs. +- Respecte les gens, étudiants, staffs, partenaires, visiteurs. -- Respecte la loi en vigueur dans le pays. +- Respecte la loi en vigueur dans le pays. -- Respecte les lois et consignes en vigueur liées à la consommation d’alcool. +- Respecte les lois et consignes en vigueur liées à la consommation d’alcool. -- Respecte les lois et consignes en vigueur liées à la consommation de tabac, stupéfiants, ou produits assimilés. +- Respecte les lois et consignes en vigueur liées à la consommation de tabac, stupéfiants, ou produits assimilés. -- N’hésite pas à interagir avec le staff, pour parler de tes problèmes, pour remonter des problèmes dans le cursus, pour contribuer au cursus. +- N’hésite pas à interagir avec le staff, pour parler de tes problèmes, pour remonter des problèmes dans le cursus, pour contribuer au cursus. -- Si tu t’interroges ou ne comprends pas nos choix pédagogiques, demande nous. On ne fait généralement rien au hasard. +- Si tu t’interroges ou ne comprends pas nos choix pédagogiques, demande nous. On ne fait généralement rien au hasard. ### Required diff --git a/subjects/compact.en.md b/subjects/compact.en.md index 1ba21131..51b4527e 100644 --- a/subjects/compact.en.md +++ b/subjects/compact.en.md @@ -5,9 +5,9 @@ Write a function `Compact` that takes a pointer to a slice of strings as the argument. This function must: -- Return the number of elements with non-`nil`. +- Return the number of elements with non-`nil`. -- Compact, i.e., delete the elements with `nil` in the slice. +- Compact, i.e., delete the elements with `nil` in the slice. ### Expected functions @@ -19,15 +19,15 @@ func Compact(ptr *[]string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( - "fmt" + "fmt" - piscine ".." + piscine ".." ) const N = 6 diff --git a/subjects/compact.fr.md b/subjects/compact.fr.md index 9a1e4a5d..16b094d9 100644 --- a/subjects/compact.fr.md +++ b/subjects/compact.fr.md @@ -19,15 +19,15 @@ func Compact(ptr *[]string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" + "fmt" - piscine ".." + piscine ".." ) const N = 6 diff --git a/subjects/compare.en.md b/subjects/compare.en.md index 9a543e0c..d1bb0ea1 100644 --- a/subjects/compare.en.md +++ b/subjects/compare.en.md @@ -14,7 +14,7 @@ func Compare(a, b string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/compare.fr.md b/subjects/compare.fr.md index 8805720d..67f08cab 100644 --- a/subjects/compare.fr.md +++ b/subjects/compare.fr.md @@ -14,7 +14,7 @@ func Compare(a, b string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/concat.en.md b/subjects/concat.en.md index eff5227d..7e0c1a04 100644 --- a/subjects/concat.en.md +++ b/subjects/concat.en.md @@ -14,7 +14,7 @@ func Concat(str1 string, str2 string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/concat.fr.md b/subjects/concat.fr.md index c8720d77..948ef1de 100644 --- a/subjects/concat.fr.md +++ b/subjects/concat.fr.md @@ -14,7 +14,7 @@ func Concat(str1 string, str2 string) string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/concatparams.en.md b/subjects/concatparams.en.md index 18289c17..62f28732 100644 --- a/subjects/concatparams.en.md +++ b/subjects/concatparams.en.md @@ -16,7 +16,7 @@ func ConcatParams(args []string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/concatparams.fr.md b/subjects/concatparams.fr.md index 1cd22cd6..01cfb074 100644 --- a/subjects/concatparams.fr.md +++ b/subjects/concatparams.fr.md @@ -16,7 +16,7 @@ func ConcatParams(args []string) string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/convertbase.en.md b/subjects/convertbase.en.md index 8e29bc79..5ef8ef57 100644 --- a/subjects/convertbase.en.md +++ b/subjects/convertbase.en.md @@ -18,7 +18,7 @@ func ConvertBase(nbr, baseFrom, baseTo string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/convertbase.fr.md b/subjects/convertbase.fr.md index 4f705088..545abdf8 100644 --- a/subjects/convertbase.fr.md +++ b/subjects/convertbase.fr.md @@ -18,7 +18,7 @@ func ConvertBase(nbr, baseFrom, baseTo string) string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/countif.en.md b/subjects/countif.en.md index 576a3d2f..05e84754 100644 --- a/subjects/countif.en.md +++ b/subjects/countif.en.md @@ -14,7 +14,7 @@ func CountIf(f func(string) bool, tab []string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/countif.fr.md b/subjects/countif.fr.md index 92d3d3b9..591e99bf 100644 --- a/subjects/countif.fr.md +++ b/subjects/countif.fr.md @@ -14,7 +14,7 @@ func CountIf(f func(string) bool, tab []string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/createelem.en.md b/subjects/createelem.en.md index dcb80f1d..13bae744 100644 --- a/subjects/createelem.en.md +++ b/subjects/createelem.en.md @@ -18,7 +18,7 @@ func CreateElem(n *Node, value int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/createelem.fr.md b/subjects/createelem.fr.md index ddfaa30a..efae0c95 100644 --- a/subjects/createelem.fr.md +++ b/subjects/createelem.fr.md @@ -18,7 +18,7 @@ func CreateElem(n *Node, value int) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/displayfile.en.md b/subjects/displayfile.en.md index e1302846..ceff0440 100644 --- a/subjects/displayfile.en.md +++ b/subjects/displayfile.en.md @@ -4,13 +4,13 @@ Write a program that displays, on the standard output, the content of a file given as argument. -- Create a file `quest8.txt` and write into it the sentence `Almost there!!` +- Create a file `quest8.txt` and write into it the sentence `Almost there!!` -- The argument of the program in this case should be, `quest8.txt`. +- The argument of the program in this case should be, `quest8.txt`. -- In case of error the program should print one the below messages accordingly: - - `File name missing`. - - `Too many arguments`. +- In case of error the program should print one the below messages accordingly: + - `File name missing`. + - `Too many arguments`. ### Usage : diff --git a/subjects/displayfile.fr.md b/subjects/displayfile.fr.md index c98641e6..3460b566 100644 --- a/subjects/displayfile.fr.md +++ b/subjects/displayfile.fr.md @@ -4,15 +4,15 @@ Écrire un programme qui affiche, sur la sortie standard, le contenu d'un fichier donné en argument. -- Créer un fichier `quest8.txt` et écrire dedans la phrase `Almost there!!` +- Créer un fichier `quest8.txt` et écrire dedans la phrase `Almost there!!` -- L'argument pour ce programme sera, dans ce cas, `quest8.txt`. +- L'argument pour ce programme sera, dans ce cas, `quest8.txt`. -- En cas d'erreur le programme doit afficher un des deux messages suivants de manière approprié: - - `File name missing`. - - `Too many arguments`. +- En cas d'erreur le programme doit afficher un des deux messages suivants de manière approprié: + - `File name missing`. + - `Too many arguments`. -### Utilisation: +### Utilisation : ```console student@ubuntu:~/[[ROOT]]/test$ go build diff --git a/subjects/divmod.en.md b/subjects/divmod.en.md index 06714df3..fbebb930 100644 --- a/subjects/divmod.en.md +++ b/subjects/divmod.en.md @@ -12,20 +12,20 @@ func DivMod(a int, b int, div *int, mod *int) { } ``` -- This function will divide the int **a** and **b**. -- The result of this division will be stored in the int pointed by **div**. -- The remainder of this division will be stored in the int pointed by **mod**. +- This function will divide the int **a** and **b**. +- The result of this division will be stored in the int pointed by **div**. +- The remainder of this division will be stored in the int pointed by **mod**. ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { diff --git a/subjects/divmod.fr.md b/subjects/divmod.fr.md index 5f586d30..125db71c 100644 --- a/subjects/divmod.fr.md +++ b/subjects/divmod.fr.md @@ -12,20 +12,20 @@ func DivMod(a int, b int, div *int, mod *int) { } ``` -- Cette fonction divisera les int **a** et **b**. -- Le résultat de la division sera stocké dans l'int pointé par **div**. -- Le reste de cette division sera stocké dans l'int pointé par **mod**. +- Cette fonction divisera les int **a** et **b**. +- Le résultat de la division sera stocké dans l'int pointé par **div**. +- Le reste de cette division sera stocké dans l'int pointé par **mod**. ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { diff --git a/subjects/enigma.en.md b/subjects/enigma.en.md index c3da457e..426254e4 100644 --- a/subjects/enigma.en.md +++ b/subjects/enigma.en.md @@ -6,10 +6,10 @@ Write a function called `Enigma` that receives pointers to as arguments and move This function will put : -- `a` into `c`. -- `c` into `d`. -- `d` into `b`. -- `b` into `a`. +- `a` into `c`. +- `c` into `d`. +- `d` into `b`. +- `b` into `a`. ### Expected function @@ -21,7 +21,7 @@ func Enigma(a ***int, b *int, c *******int, d ****int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/enigma.fr.md b/subjects/enigma.fr.md index 72b024ca..8b268587 100644 --- a/subjects/enigma.fr.md +++ b/subjects/enigma.fr.md @@ -5,10 +5,10 @@ Écrire une fonction nommé `Enigma` qui prends des pointeurs comme arguments et qui interchanges leurs valeurs pour les cacher. Cette fonction déplacera : -- `a` dans `c`. -- `c` dans `d`. -- `d` dans `b`. -- `b` dans `a`. +- `a` dans `c`. +- `c` dans `d`. +- `d` dans `b`. +- `b` dans `a`. ### Fonction attendue @@ -20,52 +20,52 @@ func Enigma(a ***int, b *int, c *******int, d ****int) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - x := 5 - y := &x - z := &y - a := &z - - w := 2 - b := &w - - u := 7 - e := &u - f := &e - g := &f - h := &g - i := &h - j := &i - c := &j - - k := 6 - l := &k - m := &l - n := &m - d := &n - - fmt.Println(***a) - fmt.Println(*b) - fmt.Println(*******c) - fmt.Println(****d) - - student.Enigma(a, b, c, d) - - fmt.Println("After using Enigma") - fmt.Println(***a) - fmt.Println(*b) - fmt.Println(*******c) - fmt.Println(****d) + x := 5 + y := &x + z := &y + a := &z + + w := 2 + b := &w + + u := 7 + e := &u + f := &e + g := &f + h := &g + i := &h + j := &i + c := &j + + k := 6 + l := &k + m := &l + n := &m + d := &n + + fmt.Println(***a) + fmt.Println(*b) + fmt.Println(*******c) + fmt.Println(****d) + + student.Enigma(a, b, c, d) + + fmt.Println("After using Enigma") + fmt.Println(***a) + fmt.Println(*b) + fmt.Println(*******c) + fmt.Println(****d) } ``` diff --git a/subjects/fibonacci.en.md b/subjects/fibonacci.en.md index 96059c76..6b7b298e 100644 --- a/subjects/fibonacci.en.md +++ b/subjects/fibonacci.en.md @@ -24,14 +24,14 @@ func Fibonacci(index int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( -        "fmt" -        piscine ".." + "fmt" + piscine ".." ) func main() { diff --git a/subjects/fibonacci.fr.md b/subjects/fibonacci.fr.md index 173f6ae4..8d05b3ef 100644 --- a/subjects/fibonacci.fr.md +++ b/subjects/fibonacci.fr.md @@ -30,8 +30,8 @@ Voici un éventuel `main.go` : package main import ( -        "fmt" -        piscine ".." + "fmt" + piscine ".." ) func main() { diff --git a/subjects/findnextprime.en.md b/subjects/findnextprime.en.md index 9ceeab00..79cfc578 100644 --- a/subjects/findnextprime.en.md +++ b/subjects/findnextprime.en.md @@ -16,7 +16,7 @@ func FindNextPrime(nb int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/findnextprime.fr.md b/subjects/findnextprime.fr.md index 5ca59276..2cfc2323 100644 --- a/subjects/findnextprime.fr.md +++ b/subjects/findnextprime.fr.md @@ -16,21 +16,21 @@ func FindNextPrime(nb int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( -        "fmt" -        piscine ".." + "fmt" + piscine ".." ) func main() { - arg1 := 5 - arg2 := 4 - fmt.Println(piscine.FindNextPrime(arg1)) - fmt.Println(piscine.FindNextPrime(arg2)) + arg1 := 5 + arg2 := 4 + fmt.Println(piscine.FindNextPrime(arg1)) + fmt.Println(piscine.FindNextPrime(arg2)) } ``` diff --git a/subjects/firstrune.en.md b/subjects/firstrune.en.md index 848882db..971d5ffd 100644 --- a/subjects/firstrune.en.md +++ b/subjects/firstrune.en.md @@ -14,7 +14,7 @@ func FirstRune(s string) rune { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/firstrune.fr.md b/subjects/firstrune.fr.md index 341311e7..17b39e4e 100644 --- a/subjects/firstrune.fr.md +++ b/subjects/firstrune.fr.md @@ -14,7 +14,7 @@ func FirstRune(s string) rune { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/firstword.en.md b/subjects/firstword.en.md index 971862b3..06a5df88 100644 --- a/subjects/firstword.en.md +++ b/subjects/firstword.en.md @@ -4,11 +4,11 @@ Write a program that takes a `string` and displays its first word, followed by a newline (`'\n'`). -- A word is a section of `string` delimited by spaces or by the start/end of the `string`. +- A word is a section of `string` delimited by spaces or by the start/end of the `string`. -- The output will be followed by a newline (`'\n'`). +- The output will be followed by a newline (`'\n'`). -- If the number of parameters is not 1, or if there are no words, the program displays a newline (`'\n'`). +- If the number of parameters is not 1, or if there are no words, the program displays a newline (`'\n'`). ### Usage diff --git a/subjects/firstword.fr.md b/subjects/firstword.fr.md index aeb27f8f..5bca5b64 100644 --- a/subjects/firstword.fr.md +++ b/subjects/firstword.fr.md @@ -4,11 +4,11 @@ Écrire un programme qui prend une `string` et qui affiche son premier mot, suivi d'un retour à la ligne (`'\n'`). -- Un mot est une section de `string` délimité par des espace ou par le début/fin d'une `string`. +- Un mot est une section de `string` délimité par des espace ou par le début/fin d'une `string`. -- L'output sera suivi d'un retour à la ligne (`'\n'`). +- L'output sera suivi d'un retour à la ligne (`'\n'`). -- Si le nombre de paramètres n'est pas 1, ou si il n'y a pas de mots, le programme affiche un retour à la ligne (`'\n'`). +- Si le nombre de paramètres n'est pas 1, ou si il n'y a pas de mots, le programme affiche un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/foreach.en.md b/subjects/foreach.en.md index a89661b1..afd1a34d 100644 --- a/subjects/foreach.en.md +++ b/subjects/foreach.en.md @@ -14,7 +14,7 @@ func ForEach(f func(int), arr []int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/foreach.fr.md b/subjects/foreach.fr.md index c3935562..6f69a27b 100644 --- a/subjects/foreach.fr.md +++ b/subjects/foreach.fr.md @@ -14,7 +14,7 @@ func ForEach(f func(int), arr []int) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/foreachprog.en.md b/subjects/foreachprog.en.md index b24e45c8..0465bdb8 100644 --- a/subjects/foreachprog.en.md +++ b/subjects/foreachprog.en.md @@ -25,7 +25,7 @@ func ForEach(f func(int), arr []int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/fprime.en.md b/subjects/fprime.en.md index 2e99ae99..db2c2a60 100644 --- a/subjects/fprime.en.md +++ b/subjects/fprime.en.md @@ -4,11 +4,11 @@ Write a program that takes a positive `int` and displays its prime factors, followed by a newline (`'\n'`). -- Factors must be displayed in ascending order and separated by `*`. +- Factors must be displayed in ascending order and separated by `*`. -- If the number of parameters is different from 1, the program displays a newline. +- If the number of parameters is different from 1, the program displays a newline. -- The input, when there is one, will always be valid. +- The input, when there is one, will always be valid. ### Usage diff --git a/subjects/fprime.fr.md b/subjects/fprime.fr.md index 7a226490..7dbb7f7b 100644 --- a/subjects/fprime.fr.md +++ b/subjects/fprime.fr.md @@ -4,11 +4,11 @@ Écrire un programme qui prend un `int` positif et qui affiche ses facteurs premiers sur la sortie standard, suivi d'un retour à la ligne (`'\n'`). -- Les facteurs doivent être affichés en ordre croissant et séparés par `*`. +- Les facteurs doivent être affichés en ordre croissant et séparés par `*`. -- Si le nombre de paramètres est différent de 1, le programme affiche un retour à la ligne. +- Si le nombre de paramètres est différent de 1, le programme affiche un retour à la ligne. -- L'input (l'entrée), quand il y en a un, sera toujours valide. +- L'input (l'entrée), quand il y en a un, sera toujours valide. ### Utilisation diff --git a/subjects/index.en.md b/subjects/index.en.md index d948e165..d1a21760 100644 --- a/subjects/index.en.md +++ b/subjects/index.en.md @@ -14,7 +14,7 @@ func Index(s string, toFind string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/index.fr.md b/subjects/index.fr.md index 059ad7ea..28b64b12 100644 --- a/subjects/index.fr.md +++ b/subjects/index.fr.md @@ -14,7 +14,7 @@ func Index(s string, toFind string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/inter.en.md b/subjects/inter.en.md index 3a293d05..eb825758 100644 --- a/subjects/inter.en.md +++ b/subjects/inter.en.md @@ -4,9 +4,9 @@ Write a program that takes two `string` and displays, without doubles, the characters that appear in both `string`, in the order they appear in the first one. -- The display will be followed by a newline (`'\n'`). +- The display will be followed by a newline (`'\n'`). -- If the number of arguments is different from 2, the program displays a newline (`'\n'`). +- If the number of arguments is different from 2, the program displays a newline (`'\n'`). ### Usage diff --git a/subjects/inter.fr.md b/subjects/inter.fr.md index 5f297414..f5aa5ff0 100644 --- a/subjects/inter.fr.md +++ b/subjects/inter.fr.md @@ -4,9 +4,9 @@ Écrire un programme qui prend deux `string` et qui affiche, sans doublons, les caractères qui apparaissent dans les deux `string`, dans l'ordre dans lequel ils apparaissent dans la première. -- L'affichage sera suivi d'un retour à la ligne (`'\n'`). +- L'affichage sera suivi d'un retour à la ligne (`'\n'`). -- Si le nombre d'arguments est différent de 2, le programme affiche un retour à la ligne (`'\n'`). +- Si le nombre d'arguments est différent de 2, le programme affiche un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/isalpha.en.md b/subjects/isalpha.en.md index 79a0913b..6fefc896 100644 --- a/subjects/isalpha.en.md +++ b/subjects/isalpha.en.md @@ -14,7 +14,7 @@ func IsAlpha(str string) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/isalpha.fr.md b/subjects/isalpha.fr.md index 2de841d2..f410a82a 100644 --- a/subjects/isalpha.fr.md +++ b/subjects/isalpha.fr.md @@ -14,7 +14,7 @@ func IsAlpha(str string) bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/islower.en.md b/subjects/islower.en.md index 8cab6d15..1e4ebd06 100644 --- a/subjects/islower.en.md +++ b/subjects/islower.en.md @@ -14,7 +14,7 @@ func IsLower(str string) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/islower.fr.md b/subjects/islower.fr.md index 21d0af35..a0657d8d 100644 --- a/subjects/islower.fr.md +++ b/subjects/islower.fr.md @@ -14,7 +14,7 @@ func IsLower(str string) bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programmes pour tester votre fonction : ```go package main diff --git a/subjects/isnegative.en.md b/subjects/isnegative.en.md index 22b7f448..661bd32c 100644 --- a/subjects/isnegative.en.md +++ b/subjects/isnegative.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a [function](TODO-LINK) that prints `'T'` (true) on a single line if the `int` passed as parameter is negative, otherwise it prints `'F'` (false). +Write a function that prints `'T'` (true) on a single line if the `int` passed as parameter is negative, otherwise it prints `'F'` (false). ### Expected function @@ -14,7 +14,7 @@ func IsNegative(nb int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/isnegative.fr.md b/subjects/isnegative.fr.md index 55638c04..3633b5fd 100644 --- a/subjects/isnegative.fr.md +++ b/subjects/isnegative.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire une [fonction](TODO-LINK) qui affiche `'T'` (true) sur une seule ligne si l'`int` passé en paramètre est négatif, sinon elle affiche `'F'` (false). +Écrire une fonction qui affiche `'T'` (true) sur une seule ligne si l'`int` passé en paramètre est négatif, sinon elle affiche `'F'` (false). ### Fonction attendue @@ -14,7 +14,7 @@ func IsNegative(nb int) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/isnumeric.en.md b/subjects/isnumeric.en.md index 7e0bab04..ff88e7c0 100644 --- a/subjects/isnumeric.en.md +++ b/subjects/isnumeric.en.md @@ -14,7 +14,7 @@ func IsNumeric(str string) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/isnumeric.fr.md b/subjects/isnumeric.fr.md index a2db51ef..6ff3b314 100644 --- a/subjects/isnumeric.fr.md +++ b/subjects/isnumeric.fr.md @@ -14,7 +14,7 @@ func IsNumeric(str string) bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/ispowerof2.en.md b/subjects/ispowerof2.en.md index ea16e5f1..b88fac2b 100644 --- a/subjects/ispowerof2.en.md +++ b/subjects/ispowerof2.en.md @@ -6,9 +6,9 @@ Write a program that determines if a given number is a power of 2. This program must print `true` if the given number is a power of 2, otherwise it prints `false`. -- If there is more than one or no argument the program should print a newline ("`\n`"). +- If there is more than one or no argument the program should print a newline ("`\n`"). -- When there is only 1 argument, it will always be a positive valid int. +- When there is only 1 argument, it will always be a positive valid int. ### Usage : diff --git a/subjects/ispowerof2.fr.md b/subjects/ispowerof2.fr.md index 89964496..257a0fa8 100644 --- a/subjects/ispowerof2.fr.md +++ b/subjects/ispowerof2.fr.md @@ -6,9 +6,9 @@ Ce programme doit afficher `true` si le nombre donné est une puissance de 2, autrement il affiche `false`. -- Si il y a plus d'un ou aucun argument le programme doit afficher un retour à la ligne (`'\n'`). +- Si il y a plus d'un ou aucun argument le programme doit afficher un retour à la ligne (`'\n'`). -- WSi il n'y a qu'un seul argument, ce sera toujours un int positif. +- WSi il n'y a qu'un seul argument, ce sera toujours un int positif. ### Usage : diff --git a/subjects/isprime.en.md b/subjects/isprime.en.md index 3e2d0d08..5da1d49f 100644 --- a/subjects/isprime.en.md +++ b/subjects/isprime.en.md @@ -16,7 +16,7 @@ func IsPrime(nb int) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/isprime.fr.md b/subjects/isprime.fr.md index c2347325..fb488387 100644 --- a/subjects/isprime.fr.md +++ b/subjects/isprime.fr.md @@ -16,7 +16,7 @@ func IsPrime(nb int) bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/isprintable.en.md b/subjects/isprintable.en.md index da19c3a9..599592ce 100644 --- a/subjects/isprintable.en.md +++ b/subjects/isprintable.en.md @@ -14,7 +14,7 @@ func IsPrintable(str string) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/isprintable.fr.md b/subjects/isprintable.fr.md index c96ae4de..cd886477 100644 --- a/subjects/isprintable.fr.md +++ b/subjects/isprintable.fr.md @@ -14,7 +14,7 @@ func IsPrintable(str string) bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/issorted.en.md b/subjects/issorted.en.md index d0ee9333..5c6f8824 100644 --- a/subjects/issorted.en.md +++ b/subjects/issorted.en.md @@ -19,7 +19,7 @@ func IsSorted(f func(a, b int) int, tab []int) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function (without `f`): +Here is a possible program to test your function (without `f`): ```go package main diff --git a/subjects/issorted.fr.md b/subjects/issorted.fr.md index 176eb4f3..54bfdbe0 100644 --- a/subjects/issorted.fr.md +++ b/subjects/issorted.fr.md @@ -18,7 +18,7 @@ func IsSorted(f func(a, b int) int, tab []int) bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction (sans `f`) : +Voici un éventuel programme pour tester votre fonction (sans `f`) : ```go package main diff --git a/subjects/isupper.en.md b/subjects/isupper.en.md index 80359b98..1fe7432e 100644 --- a/subjects/isupper.en.md +++ b/subjects/isupper.en.md @@ -14,7 +14,7 @@ func IsUpper(str string) bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/iterativefactorial.en.md b/subjects/iterativefactorial.en.md index a27c1ee6..2d58f5c5 100644 --- a/subjects/iterativefactorial.en.md +++ b/subjects/iterativefactorial.en.md @@ -16,7 +16,7 @@ func IterativeFactorial(nb int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/iterativefactorial.fr.md b/subjects/iterativefactorial.fr.md index 81e01817..bb25fcc8 100644 --- a/subjects/iterativefactorial.fr.md +++ b/subjects/iterativefactorial.fr.md @@ -16,7 +16,7 @@ func IterativeFactorial(nb int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/iterativepower.en.md b/subjects/iterativepower.en.md index dbc928c9..99be7810 100644 --- a/subjects/iterativepower.en.md +++ b/subjects/iterativepower.en.md @@ -16,14 +16,14 @@ func IterativePower(nb int, power int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( -        "fmt" -        piscine ".." + "fmt" + piscine ".." ) diff --git a/subjects/iterativepower.fr.md b/subjects/iterativepower.fr.md index 654478ba..6aba45db 100644 --- a/subjects/iterativepower.fr.md +++ b/subjects/iterativepower.fr.md @@ -16,14 +16,14 @@ func IterativePower(nb int, power int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( -        "fmt" -        piscine ".." + "fmt" + piscine ".." ) diff --git a/subjects/itoa.en.md b/subjects/itoa.en.md index f32591be..f613beb4 100644 --- a/subjects/itoa.en.md +++ b/subjects/itoa.en.md @@ -2,9 +2,9 @@ ### Instructions -- Write a function that simulates the behaviour of the `Itoa` function in Go. `Itoa` transforms a number represented as an`int` in a number represented as a `string`. +- Write a function that simulates the behaviour of the `Itoa` function in Go. `Itoa` transforms a number represented as an`int` in a number represented as a `string`. -- For this exercise the handling of the signs + or - **does have** to be taken into account. +- For this exercise the handling of the signs + or - **does have** to be taken into account. ## Expected function diff --git a/subjects/itoa.fr.md b/subjects/itoa.fr.md index e7b8a100..e6e0bad6 100644 --- a/subjects/itoa.fr.md +++ b/subjects/itoa.fr.md @@ -2,9 +2,9 @@ ### Instructions -- Écrire une fonction qui reproduit le comportement de la fonction `Itoa` en Go. `Itoa` transforme un nombre représenté en `int` (entier) en `string` (chaîne de caractères). +- Écrire une fonction qui reproduit le comportement de la fonction `Itoa` en Go. `Itoa` transforme un nombre représenté en `int` (entier) en `string` (chaîne de caractères). -- Pour cet exercice la gestion des signes + ou - **doit être** prise en compte. +- Pour cet exercice la gestion des signes + ou - **doit être** prise en compte. ## Fonction attendue diff --git a/subjects/itoabase.en.md b/subjects/itoabase.en.md index 33338b16..17ee139e 100644 --- a/subjects/itoabase.en.md +++ b/subjects/itoabase.en.md @@ -4,8 +4,8 @@ Write a function that: -- converts an `int` value to a `string` using the specified base in the argument -- and that returns this `string` +- converts an `int` value to a `string` using the specified base in the argument +- and that returns this `string` The base is expressed as an `int`, from 2 to 16. The characters comprising the base are the digits from 0 to 9, followed by uppercase letters from A to F. diff --git a/subjects/itoabase.fr.md b/subjects/itoabase.fr.md index ed183942..30ed68b0 100644 --- a/subjects/itoabase.fr.md +++ b/subjects/itoabase.fr.md @@ -4,8 +4,8 @@ Écrire une fonction qui: -- convertit une valeur `int` en `string` en utilisant la base spécifiée en argument -- et qui retourne cette `string` +- convertit une valeur `int` en `string` en utilisant la base spécifiée en argument +- et qui retourne cette `string` Cette base est exprimée comme un `int`, de 2 à 16. Les caractères compris dans la base sont les chiffres de 0 à 9, suivis des lettres majuscules de A à F. diff --git a/subjects/itoabaseprog.en.md b/subjects/itoabaseprog.en.md index ec8d29fd..e97b8cd9 100644 --- a/subjects/itoabaseprog.en.md +++ b/subjects/itoabaseprog.en.md @@ -15,8 +15,8 @@ This means that: Write a function that: -- converts an `int` value to a `string` using the specified base in the argument -- and that returns this `string` +- converts an `int` value to a `string` using the specified base in the argument +- and that returns this `string` The base is expressed as an `int`, from 2 to 16. The characters comprising the base are the digits from 0 to 9, followed by uppercase letters from A to F. diff --git a/subjects/itoabaseprog.fr.md b/subjects/itoabaseprog.fr.md index 4af0cf4f..d4a91fdd 100644 --- a/subjects/itoabaseprog.fr.md +++ b/subjects/itoabaseprog.fr.md @@ -15,8 +15,8 @@ Cela signifie que: Écrire une fonction qui: -- convertit une valeur `int` en `string` en utilisant la base spécifiée en argument -- et qui retourne cette `string` +- convertit une valeur `int` en `string` en utilisant la base spécifiée en argument +- et qui retourne cette `string` Cette base est exprimée comme un `int`, de 2 à 16. Les caractères compris dans la base sont les chiffres de 0 à 9, suivis des lettres majuscules de A à F. diff --git a/subjects/itoaprog.en.md b/subjects/itoaprog.en.md index ee3f824d..90202597 100644 --- a/subjects/itoaprog.en.md +++ b/subjects/itoaprog.en.md @@ -13,9 +13,9 @@ This means that: ### Instructions -- Write a function that simulates the behaviour of the `Itoa` function in Go. `Itoa` transforms a number represented as an`int` in a number represented as a `string`. +- Write a function that simulates the behaviour of the `Itoa` function in Go. `Itoa` transforms a number represented as an`int` in a number represented as a `string`. -- For this exercise the handling of the signs + or - **does have** to be taken into account. +- For this exercise the handling of the signs + or - **does have** to be taken into account. ## Expected function diff --git a/subjects/join.en.md b/subjects/join.en.md index fb53fa66..94851e3c 100644 --- a/subjects/join.en.md +++ b/subjects/join.en.md @@ -14,7 +14,7 @@ func Join(strs []string, sep string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/join.fr.md b/subjects/join.fr.md index 3d0f9b46..6c36ae4a 100644 --- a/subjects/join.fr.md +++ b/subjects/join.fr.md @@ -14,7 +14,7 @@ func Join(strs []string, sep string) string{ ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/lastrune.en.md b/subjects/lastrune.en.md index dbc7e466..d2678a69 100644 --- a/subjects/lastrune.en.md +++ b/subjects/lastrune.en.md @@ -14,7 +14,7 @@ func LastRune(s string) rune { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/lastrune.fr.md b/subjects/lastrune.fr.md index 99ab87c7..2f30f71b 100644 --- a/subjects/lastrune.fr.md +++ b/subjects/lastrune.fr.md @@ -14,7 +14,7 @@ func LastRune(s string) rune { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/lastword.en.md b/subjects/lastword.en.md index faf259c1..d79d23e3 100644 --- a/subjects/lastword.en.md +++ b/subjects/lastword.en.md @@ -4,11 +4,11 @@ Write a program that takes a `string` and displays its last word, followed by a newline (`'\n'`). -- A word is a section of `string` delimited by spaces or by the start/end of the `string`. +- A word is a section of `string` delimited by spaces or by the start/end of the `string`. -- The output will be followed by a newline (`'\n'`). +- The output will be followed by a newline (`'\n'`). -- If the number of parameters is different from 1, or if there are no word, the program displays a newline (`'\n'`). +- If the number of parameters is different from 1, or if there are no word, the program displays a newline (`'\n'`). ### Usage diff --git a/subjects/lastword.fr.md b/subjects/lastword.fr.md index fba0f407..b7a1e4ee 100644 --- a/subjects/lastword.fr.md +++ b/subjects/lastword.fr.md @@ -4,11 +4,11 @@ Écrire un programme qui prend une `string` et qui affiche son dernier mot, suivi d'un retour à la ligne (`'\n'`). -- Un mot est une section de `string` délimitée par des espaces ou par le début/fin d'une `string`. +- Un mot est une section de `string` délimitée par des espaces ou par le début/fin d'une `string`. -- L'output sera suivi d'un retour à la ligne (`'\n'`). +- L'output sera suivi d'un retour à la ligne (`'\n'`). -- Si le nombre de paramètres est différent de 1, ou si il n'y a pas de mot, le programme affiche un retour à la ligne (`'\n'`). +- Si le nombre de paramètres est différent de 1, ou si il n'y a pas de mot, le programme affiche un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/listat.en.md b/subjects/listat.en.md index c9ed4d2f..05a1a675 100644 --- a/subjects/listat.en.md +++ b/subjects/listat.en.md @@ -4,7 +4,7 @@ Write a function `ListAt` that takes a pointer to the list `l` and an `int pos` as parameters. This function should return the `NodeL` in the position `pos` of the linked list `l`. -- In case of error the function should return `nil`. +- In case of error the function should return `nil`. ### Expected function and structure @@ -22,7 +22,7 @@ func ListAt(l *NodeL, pos int) *NodeL{ ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listat.fr.md b/subjects/listat.fr.md index 53a2537d..e84afc9a 100644 --- a/subjects/listat.fr.md +++ b/subjects/listat.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `ListAt` qui prend un pointeur sur la liste `l` et un `int pos` comme paramètres. Cette fonction devra afficher la `NodeL` à la position `pos` de la liste chaînée `l`. -- En cas d'erreur la fonction affichera `nil`. +- En cas d'erreur la fonction affichera `nil`. ### Fonction et structure attendues @@ -22,7 +22,7 @@ func ListAt(l *NodeL, pos int) *NodeL{ ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listclear.en.md b/subjects/listclear.en.md index d9d9e036..e62b3e0d 100644 --- a/subjects/listclear.en.md +++ b/subjects/listclear.en.md @@ -4,7 +4,7 @@ Write a function `ListClear` that deletes all `nodes` from a linked list `l`. -- Tip: assign the list's pointer to `nil`. +- Tip: assign the list's pointer to `nil`. ### Expected function and structure @@ -16,7 +16,7 @@ func ListClear(l *List) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listclear.fr.md b/subjects/listclear.fr.md index b4175b85..5cbfab0e 100644 --- a/subjects/listclear.fr.md +++ b/subjects/listclear.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `ListClear` qui efface toutes les `nodes` d'une liste chaînée `l`. -- Indice: assigner le pointeur de la liste à `nil`. +- Indice: assigner le pointeur de la liste à `nil`. ### Fonction et structure attendues @@ -16,7 +16,7 @@ func ListClear(l *List) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listfind.en.md b/subjects/listfind.en.md index 3386e7e7..861c5fa6 100644 --- a/subjects/listfind.en.md +++ b/subjects/listfind.en.md @@ -4,7 +4,7 @@ Write a function `ListFind` that returns the address of the first node in the list `l` that is determined to be equal to `ref` by the function `CompStr`. -- For this exercise the function `CompStr` must be used. +- For this exercise the function `CompStr` must be used. ### Expected function and structure @@ -30,7 +30,7 @@ func ListFind(l *List, ref interface{}, comp func(a, b interface{}) bool) *inter ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listfind.fr.md b/subjects/listfind.fr.md index 2841556d..8415665e 100644 --- a/subjects/listfind.fr.md +++ b/subjects/listfind.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `ListFind` qui retourne l'adresse de la première node dans la liste `l` qui est déterminée comme étant égale à `ref` par la fonction `CompStr`. -- Pour cet exercice la fonction `CompStr` doit être utilisée. +- Pour cet exercice la fonction `CompStr` doit être utilisée. ### Fonction et structure attendues @@ -30,7 +30,7 @@ func ListFind(l *List, ref interface{}, comp func(a, b interface{}) bool) *inter ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listforeach.en.md b/subjects/listforeach.en.md index e785be33..7c6ef708 100644 --- a/subjects/listforeach.en.md +++ b/subjects/listforeach.en.md @@ -4,9 +4,9 @@ Write a function `ListForEach` that applies a function given as argument to the data within each node of the list `l`. -- The function given as argument must have a pointer as argument: `l *List` +- The function given as argument must have a pointer as argument: `l *List` -- Copy the functions `Add2_node` and `Subtract3_node` in the same file as the function `ListForEach` is defined. +- Copy the functions `Add2_node` and `Subtract3_node` in the same file as the function `ListForEach` is defined. ### Expected function and structure @@ -45,7 +45,7 @@ func Subtract3_node(node *NodeL) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listforeach.fr.md b/subjects/listforeach.fr.md index bf20c9aa..729f85ab 100644 --- a/subjects/listforeach.fr.md +++ b/subjects/listforeach.fr.md @@ -4,9 +4,9 @@ Écrire une fonction `ListForEach` qui applique un fonction donnée en argument à la data contenue dans chacune des nodes d'une liste `l`. -- La fonction donnée en argument doit avoir un pointeur comme argument: `l *List` +- La fonction donnée en argument doit avoir un pointeur comme argument: `l *List` -- Copier les fonctions `Add2_node` et `Subtract3_node` dans le même fichier où la fonction `ListForEach` est définie. +- Copier les fonctions `Add2_node` et `Subtract3_node` dans le même fichier où la fonction `ListForEach` est définie. ### Fonction et struture attendues @@ -45,7 +45,7 @@ func Subtract3_node(node *NodeL) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listforeachif.en.md b/subjects/listforeachif.en.md index 63fdb41e..d2fe3f25 100644 --- a/subjects/listforeachif.en.md +++ b/subjects/listforeachif.en.md @@ -4,13 +4,13 @@ Write a function `ListForEachIf` that applies a function given as argument to the data within some of the nodes of the list `l`. -- This function receives two functions: +- This function receives two functions: - - `f` is a function that is applied to the node. + - `f` is a function that is applied to the node. - - `cond` is a function that returns a `boolean` and it will be used to determine if the function `f` should be applied to the node. + - `cond` is a function that returns a `boolean` and it will be used to determine if the function `f` should be applied to the node. -- The function given as argument must have a pointer `*NodeL` as argument. +- The function given as argument must have a pointer `*NodeL` as argument. ### Expected function and structure @@ -62,7 +62,7 @@ func ListForEachIf(l *List, f func(*NodeL), cond func(*NodeL) bool) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listforeachif.fr.md b/subjects/listforeachif.fr.md index bb0087c2..e2afd2e6 100644 --- a/subjects/listforeachif.fr.md +++ b/subjects/listforeachif.fr.md @@ -4,13 +4,13 @@ Écrire une fonction `ListForEachIf` qui applique un fonction donnée en argument à la data contenue dans certaines des nodes d'une liste `l`. -- Cette fonction reçoit deux fonctions: +- Cette fonction reçoit deux fonctions: - - `f` est la fonction qui est appliqué à la node. + - `f` est la fonction qui est appliqué à la node. - - `cond` est une fonction qui retourne un `boolean` et qui sera utilisée pour déterminer si la fonction`f` doit être appliquée à la node. + - `cond` est une fonction qui retourne un `boolean` et qui sera utilisée pour déterminer si la fonction`f` doit être appliquée à la node. -- La fonction donnée en argument doit avoir un pointeur `*NodeL` comme argument. +- La fonction donnée en argument doit avoir un pointeur `*NodeL` comme argument. ### Fonction et structure attendues @@ -62,7 +62,7 @@ func ListForEachIf(l *List, f func(*NodeL), cond func(*NodeL) bool) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listlast.en.md b/subjects/listlast.en.md index 26b1ce0e..3c72f13b 100644 --- a/subjects/listlast.en.md +++ b/subjects/listlast.en.md @@ -24,7 +24,7 @@ func ListLast(l *List) interface{} { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listlast.fr.md b/subjects/listlast.fr.md index c9b400b8..480addd4 100644 --- a/subjects/listlast.fr.md +++ b/subjects/listlast.fr.md @@ -24,7 +24,7 @@ func ListLast(l *List) interface{} { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listmerge.en.md b/subjects/listmerge.en.md index 7714cfec..69af3a38 100644 --- a/subjects/listmerge.en.md +++ b/subjects/listmerge.en.md @@ -4,7 +4,7 @@ Write a function `ListMerge` that places elements of a list `l2` at the end of another list `l1`. -- New elements should not be created! +- New elements should not be created! ### Expected function and structure @@ -26,7 +26,7 @@ func ListMerge(l1 *List, l2 *List) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listmerge.fr.md b/subjects/listmerge.fr.md index 3d68628a..702b926e 100644 --- a/subjects/listmerge.fr.md +++ b/subjects/listmerge.fr.md @@ -26,7 +26,7 @@ func ListMerge(l1 *List, l2 *List) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listpushback.en.md b/subjects/listpushback.en.md index 2067a375..4902b101 100644 --- a/subjects/listpushback.en.md +++ b/subjects/listpushback.en.md @@ -24,7 +24,7 @@ func ListPushBack(l *List, data interface{}) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listpushback.fr.md b/subjects/listpushback.fr.md index 5f55dd67..e76314f7 100644 --- a/subjects/listpushback.fr.md +++ b/subjects/listpushback.fr.md @@ -24,7 +24,7 @@ func ListPushBack(l *List, data interface{}) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listpushfront.en.md b/subjects/listpushfront.en.md index 938a5872..5ae98e00 100644 --- a/subjects/listpushfront.en.md +++ b/subjects/listpushfront.en.md @@ -24,7 +24,7 @@ func ListPushFront(l *List, data interface{}) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listpushfront.fr.md b/subjects/listpushfront.fr.md index a077dd5e..93d33569 100644 --- a/subjects/listpushfront.fr.md +++ b/subjects/listpushfront.fr.md @@ -24,7 +24,7 @@ func ListPushFront(l *List, data interface{}) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listpushpara.en.md b/subjects/listpushpara.en.md index 98716369..5ba32e48 100644 --- a/subjects/listpushpara.en.md +++ b/subjects/listpushpara.en.md @@ -4,7 +4,7 @@ Write a program that creates a new linked list and includes each command-line argument in to the list. -- The first argument should be at the end of the list +- The first argument should be at the end of the list And its output : diff --git a/subjects/listpushparams.en.md b/subjects/listpushparams.en.md index 8ff23cfc..b1aa8b5e 100644 --- a/subjects/listpushparams.en.md +++ b/subjects/listpushparams.en.md @@ -4,7 +4,7 @@ Write a program that creates a new linked list and includes each command-line argument in to the list. -- The first argument should be at the end of the list +- The first argument should be at the end of the list ```` diff --git a/subjects/listpushparams.fr.md b/subjects/listpushparams.fr.md index 92d3d3b9..591e99bf 100644 --- a/subjects/listpushparams.fr.md +++ b/subjects/listpushparams.fr.md @@ -14,7 +14,7 @@ func CountIf(f func(string) bool, tab []string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listremoveif.en.md b/subjects/listremoveif.en.md index 427bfd27..6336f898 100644 --- a/subjects/listremoveif.en.md +++ b/subjects/listremoveif.en.md @@ -24,7 +24,7 @@ func ListRemoveIf(l *List, data_ref interface{}) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listremoveif.fr.md b/subjects/listremoveif.fr.md index 65203567..610f9857 100644 --- a/subjects/listremoveif.fr.md +++ b/subjects/listremoveif.fr.md @@ -24,7 +24,7 @@ func ListRemoveIf(l *List, data_ref interface{}) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listremoveifprog.en.md b/subjects/listremoveifprog.en.md index 7064813a..db00c0c5 100644 --- a/subjects/listremoveifprog.en.md +++ b/subjects/listremoveifprog.en.md @@ -31,4 +31,4 @@ type List struct { func ListRemoveIf(l *List, data_ref interface{}) { } -``` \ No newline at end of file +``` diff --git a/subjects/listreverse.en.md b/subjects/listreverse.en.md index 4c1a1ed8..a64b5cc0 100644 --- a/subjects/listreverse.en.md +++ b/subjects/listreverse.en.md @@ -24,7 +24,7 @@ func ListReverse(l *List) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listreverse.fr.md b/subjects/listreverse.fr.md index 0ea58d91..5bc676be 100644 --- a/subjects/listreverse.fr.md +++ b/subjects/listreverse.fr.md @@ -24,7 +24,7 @@ func ListReverse(l *List) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listsize.en.md b/subjects/listsize.en.md index e59e9774..42bef0a8 100644 --- a/subjects/listsize.en.md +++ b/subjects/listsize.en.md @@ -24,7 +24,7 @@ func ListSize(l *List) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listsize.fr.md b/subjects/listsize.fr.md index bc5d8495..de0dd961 100644 --- a/subjects/listsize.fr.md +++ b/subjects/listsize.fr.md @@ -24,7 +24,7 @@ func ListSize(l *List) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/listsort.en.md b/subjects/listsort.en.md index b7242d72..48ea4d19 100644 --- a/subjects/listsort.en.md +++ b/subjects/listsort.en.md @@ -4,7 +4,7 @@ Write a function `ListSort` that sorts the nodes of a linked list by ascending order. -- The `NodeI` structure will be the only one used. +- The `NodeI` structure will be the only one used. ### Expected function and structure @@ -21,7 +21,7 @@ func ListSort(l *NodeI) *NodeI { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/listsort.fr.md b/subjects/listsort.fr.md index 9f888c67..f1bd1b17 100644 --- a/subjects/listsort.fr.md +++ b/subjects/listsort.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `ListSort` qui trie les nodes d'une liste chaînée par ordre croissant. -- La structure `NodeI` sera la seule utilisée. +- La structure `NodeI` sera la seule utilisée. ### Fonction et structure attendues @@ -21,7 +21,7 @@ func ListSort(l *NodeI) *NodeI { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/makerange.en.md b/subjects/makerange.en.md index b25cabe0..4e3e4594 100644 --- a/subjects/makerange.en.md +++ b/subjects/makerange.en.md @@ -21,7 +21,7 @@ func MakeRange(min, max int) []int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/makerange.fr.md b/subjects/makerange.fr.md index b1894ba8..003f1c51 100644 --- a/subjects/makerange.fr.md +++ b/subjects/makerange.fr.md @@ -20,7 +20,7 @@ func MakeRange(min, max int) []int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/map.en.md b/subjects/map.en.md index 675602a3..3d6b1ddc 100644 --- a/subjects/map.en.md +++ b/subjects/map.en.md @@ -14,7 +14,7 @@ func Map(f func(int) bool, arr []int) []bool { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/map.fr.md b/subjects/map.fr.md index 9fdd634a..2be10700 100644 --- a/subjects/map.fr.md +++ b/subjects/map.fr.md @@ -14,7 +14,7 @@ func Map(f func(int) bool, arr []int) []bool { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/max.en.md b/subjects/max.en.md index 652438d1..52638b8a 100644 --- a/subjects/max.en.md +++ b/subjects/max.en.md @@ -14,7 +14,7 @@ func Max(arr []int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/max.fr.md b/subjects/max.fr.md index 1ebf4cf5..67fba091 100644 --- a/subjects/max.fr.md +++ b/subjects/max.fr.md @@ -14,7 +14,7 @@ func Max(arr []int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/maxprog.en.md b/subjects/maxprog.en.md index b4c20529..42cccadb 100644 --- a/subjects/maxprog.en.md +++ b/subjects/maxprog.en.md @@ -25,7 +25,7 @@ func Max(arr []int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/nrune.en.md b/subjects/nrune.en.md index 3f33a063..92f7c398 100644 --- a/subjects/nrune.en.md +++ b/subjects/nrune.en.md @@ -16,7 +16,7 @@ func NRune(s string, n int) rune { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/nrune.fr.md b/subjects/nrune.fr.md index 0589bd06..0c9b2db8 100644 --- a/subjects/nrune.fr.md +++ b/subjects/nrune.fr.md @@ -14,7 +14,7 @@ func NRune(s string, n int) rune { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/nruneprog.en.md b/subjects/nruneprog.en.md index c1c9f916..95197740 100644 --- a/subjects/nruneprog.en.md +++ b/subjects/nruneprog.en.md @@ -27,7 +27,7 @@ func NRune(s string, n int) rune { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/options.en.md b/subjects/options.en.md index dd6e38c7..6a04e8c2 100644 --- a/subjects/options.en.md +++ b/subjects/options.en.md @@ -4,19 +4,19 @@ Write a program that takes an undefined number of arguments which could be considered as `options` and writes on the standard output a representation of those `options` as groups of `bytes` followed by a newline (`'\n'`). -- An `option` is an argument that begins with a `-` and that can have multiple characters which could be : +- An `option` is an argument that begins with a `-` and that can have multiple characters which could be : -abcdefghijklmnopqrstuvwxyz -- All `options` are stocked in a single `int` and each `options` represents a bit of that `int`, and should be stocked like this : +- All `options` are stocked in a single `int` and each `options` represents a bit of that `int`, and should be stocked like this : - - 00000000 00000000 00000000 00000000 - - ******zy xwvutsrq ponmlkji hgfedcba + - 00000000 00000000 00000000 00000000 + - ******zy xwvutsrq ponmlkji hgfedcba -- Launching the program without arguments or with the `-h` flag activated must print all the valid `options` on the standard output, as shown on one of the following examples. +- Launching the program without arguments or with the `-h` flag activated must print all the valid `options` on the standard output, as shown on one of the following examples. -- Please note the `-h` flag has priority over the others flags when it is called first in one of the arguments. (See the examples) +- Please note the `-h` flag has priority over the others flags when it is called first in one of the arguments. (See the examples) -- A wrong `option` must print `Invalid Option` followed by a newline. +- A wrong `option` must print `Invalid Option` followed by a newline. ## Usage diff --git a/subjects/options.fr.md b/subjects/options.fr.md index a523f64c..6f3ad919 100644 --- a/subjects/options.fr.md +++ b/subjects/options.fr.md @@ -4,17 +4,17 @@ Écrire un programme qui prend un nombre indéfini d'arguments qui peuvent être considérés comme des `options` et qui affiche sur la sortie standard une représentation de ces `options` comme groupes de `bytes`(octets) suivi d'un retour à la ligne (`'\n'`). -- Une `option` est un argument qui commence avec un `-` et qui peux avoir de multiples caractères qui peuvent être : +- Une `option` est un argument qui commence avec un `-` et qui peux avoir de multiples caractères qui peuvent être : -abcdefghijklmnopqrstuvwxyz -- Toutes les `options` sont stockées dans un seul `int` et chaque `option` représente un bit de cet `int`, et doit être stocké comme ci-dessous : +- Toutes les `options` sont stockées dans un seul `int` et chaque `option` représente un bit de cet `int`, et doit être stocké comme ci-dessous : - - 00000000 00000000 00000000 00000000 - - ******zy xwvutsrq ponmlkji hgfedcba + - 00000000 00000000 00000000 00000000 + - ******zy xwvutsrq ponmlkji hgfedcba -- L'éxécution du programme sans argument ou avec l'option `-h` activée doit afficher toutes les `options` valides sur la sortie standard, comme montré dans un des exemples ci-dessous. +- L'éxécution du programme sans argument ou avec l'option `-h` activée doit afficher toutes les `options` valides sur la sortie standard, comme montré dans un des exemples ci-dessous. -- Une mauvaise `option` doit afficher `Invalid Option` suivi d'un retour à la ligne. +- Une mauvaise `option` doit afficher `Invalid Option` suivi d'un retour à la ligne. ## Utilisation diff --git a/subjects/pointone.en.md b/subjects/pointone.en.md index ddd2d74d..24d0a2ca 100644 --- a/subjects/pointone.en.md +++ b/subjects/pointone.en.md @@ -14,7 +14,7 @@ func PointOne(n *int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/pointone.fr.md b/subjects/pointone.fr.md index c3966655..f7e135a3 100644 --- a/subjects/pointone.fr.md +++ b/subjects/pointone.fr.md @@ -14,7 +14,7 @@ func PointOne(n *int) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/printalphabet.en.md b/subjects/printalphabet.en.md index e676a275..b682a208 100644 --- a/subjects/printalphabet.en.md +++ b/subjects/printalphabet.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a [program](TODO-LINK) that prints the Latin alphabet in lowercase on a single line. +Write a program that prints the Latin alphabet in lowercase on a single line. A line is a sequence of characters preceding the [end of line](https://en.wikipedia.org/wiki/Newline) character (`'\n'`). diff --git a/subjects/printalphabet.fr.md b/subjects/printalphabet.fr.md index 5501368a..12a03c65 100644 --- a/subjects/printalphabet.fr.md +++ b/subjects/printalphabet.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un [programme](TODO-LINK) qui affiche l'alphabet latin en minuscule sur une seule ligne. +Écrire un programme qui affiche l'alphabet latin en minuscule sur une seule ligne. Une ligne est une suite de caractères précédant le caractère [fin de ligne](https://en.wikipedia.org/wiki/Newline) (`'\n'`). diff --git a/subjects/printcomb.en.md b/subjects/printcomb.en.md index c55575f3..280ce5b5 100644 --- a/subjects/printcomb.en.md +++ b/subjects/printcomb.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a [function](TODO-LINK) that prints in ascending order on a single line all unique combinations of three different digits so that the first digit is lower than the second and the second is lower than the third. +Write a function that prints in ascending order on a single line all unique combinations of three different digits so that the first digit is lower than the second and the second is lower than the third. These combinations are separated by a comma and a space. @@ -16,7 +16,7 @@ func PrintComb() { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/printcomb.fr.md b/subjects/printcomb.fr.md index 714344d4..53bae5e6 100644 --- a/subjects/printcomb.fr.md +++ b/subjects/printcomb.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire une [fonction](TODO-LINK) qui affiche sur une seule ligne dans l'ordre croissant toutes les combinaisons possibles de trois chiffres différents tels que le premier est inférieur au second et le second est inférieur au troisième. +Écrire une fonction qui affiche sur une seule ligne dans l'ordre croissant toutes les combinaisons possibles de trois chiffres différents tels que le premier est inférieur au second et le second est inférieur au troisième. Les combinaisons sont séparées par une virgule et un espace. @@ -16,7 +16,7 @@ func PrintComb() { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/printcomb2.en.md b/subjects/printcomb2.en.md index e287e481..becea725 100644 --- a/subjects/printcomb2.en.md +++ b/subjects/printcomb2.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a [function](TODO-LINK) that prints in ascending order on a single line all possible combinations of two different two-digit numbers. +Write a function that prints in ascending order on a single line all possible combinations of two different two-digit numbers. These combinations are separated by a comma and a space. @@ -16,7 +16,7 @@ func PrintComb2() { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/printcomb2.fr.md b/subjects/printcomb2.fr.md index 7c640405..cf52e375 100644 --- a/subjects/printcomb2.fr.md +++ b/subjects/printcomb2.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire une [fonction](TODO-LINK) qui affiche sur une seule ligne dans l'ordre croissant toutes les combinaisons possibles de deux nombres différents à deux chiffres. +Écrire une fonction qui affiche sur une seule ligne dans l'ordre croissant toutes les combinaisons possibles de deux nombres différents à deux chiffres. Les combinaisons sont séparées par une virgule et un espace. @@ -16,7 +16,7 @@ func PrintComb2() { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/printcombn.en.md b/subjects/printcombn.en.md index 80fb42b7..c26caa0d 100644 --- a/subjects/printcombn.en.md +++ b/subjects/printcombn.en.md @@ -2,15 +2,15 @@ ### Instructions -- Write a function that prints all possible combinations of **n** different digits in ascending order. +- Write a function that prints all possible combinations of **n** different digits in ascending order. -- n will be defined as : 0 < n < 10 +- n will be defined as : 0 < n < 10 below are your references for the **printing format** expected. -- (for n = 1) '0, 1, 2, 3, ...8, 9' +- (for n = 1) '0, 1, 2, 3, ...8, 9' -- (for n = 3) '012, 013, 014, 015, 016, 017, 018, 019, 023,...689, 789' +- (for n = 3) '012, 013, 014, 015, 016, 017, 018, 019, 023,...689, 789' ### Expected function @@ -22,7 +22,7 @@ func PrintCombN(n int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/printcombn.fr.md b/subjects/printcombn.fr.md index e6fe2018..0e377667 100644 --- a/subjects/printcombn.fr.md +++ b/subjects/printcombn.fr.md @@ -2,15 +2,15 @@ ### Instructions -- Écrire une fonction qui affiche toutes les combinaisons possibles de **n** chiffres différents en ordre croissant. +- Écrire une fonction qui affiche toutes les combinaisons possibles de **n** chiffres différents en ordre croissant. -- n sera défini tel que: 0 < n < 10 +- n sera défini tel que: 0 < n < 10 ci-dessous vos références pour le **format d'affichage** attendu. -- (pour n = 1) '0, 1, 2, 3, ...8, 9' +- (pour n = 1) '0, 1, 2, 3, ...8, 9' -- (pour n = 3) '012, 013, 014, 015, 016, 017, 018, 019, 023,...689, 789' +- (pour n = 3) '012, 013, 014, 015, 016, 017, 018, 019, 023,...689, 789' ### Fonction attendue @@ -22,7 +22,7 @@ func PrintCombN(n int) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/printdigits.fr.md b/subjects/printdigits.fr.md index cfa96dca..948e31d3 100644 --- a/subjects/printdigits.fr.md +++ b/subjects/printdigits.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un [programme](TODO-LINK) qui affiche les chiffres décimaux dans l'ordre croissant (de `0` à `9`) sur une seule ligne. +Écrire un programme qui affiche les chiffres décimaux dans l'ordre croissant (de `0` à `9`) sur une seule ligne. Une ligne est une suite de caractères précédant le caractère [fin de ligne](https://en.wikipedia.org/wiki/Newline) (`'\n'`). diff --git a/subjects/printdigitsprog.en.md b/subjects/printdigitsprog.en.md index a0f50a9c..ce5f387f 100644 --- a/subjects/printdigitsprog.en.md +++ b/subjects/printdigitsprog.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a [program](TODO-LINK) that prints the decimal digits in ascending order (from `0` to `9`) on a single line. +Write a program that prints the decimal digits in ascending order (from `0` to `9`) on a single line. A line is a sequence of characters preceding the [end of line](https://en.wikipedia.org/wiki/Newline) character (`'\n'`). diff --git a/subjects/printhex.en.md b/subjects/printhex.en.md index eaaffc5f..122aea0b 100644 --- a/subjects/printhex.en.md +++ b/subjects/printhex.en.md @@ -4,8 +4,8 @@ Write a program that takes a positive (or zero) number expressed in base 10, and displays it in base 16 (with lowercase letters) followed by a newline (`'\n'`). -- If the number of parameters is different from 1, the program displays a newline. -- Error cases have to be handled as shown in the example below. +- If the number of parameters is different from 1, the program displays a newline. +- Error cases have to be handled as shown in the example below. ### Usage diff --git a/subjects/printhex.fr.md b/subjects/printhex.fr.md index 59b3a274..4727fe9d 100644 --- a/subjects/printhex.fr.md +++ b/subjects/printhex.fr.md @@ -4,9 +4,8 @@ Écrire un programme qui prend un nombre positif (ou zéro) écrit en base 10, et qui l'affiche en base 16 (avec les lettres en minuscule) suivi d'un retour à la ligne (`'\n'`). -- Si le nombre de paramètres est différent de 1, le programme affiche un retour à la ligne. -- Les cas d'erreurs doivent être gérés comme montré dans l'exemple ci-dessous. - +- Si le nombre de paramètres est différent de 1, le programme affiche un retour à la ligne. +- Les cas d'erreurs doivent être gérés comme montré dans l'exemple ci-dessous. ### Utilisation @@ -22,5 +21,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/[[ROOT]]/test$ ./test "123 132 1" | cat -e 0$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/printnbr.en.md b/subjects/printnbr.en.md index 8bd39168..7f5233b4 100644 --- a/subjects/printnbr.en.md +++ b/subjects/printnbr.en.md @@ -16,7 +16,7 @@ func PrintNbr(n int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/printnbr.fr.md b/subjects/printnbr.fr.md index a1594082..e3c97f97 100644 --- a/subjects/printnbr.fr.md +++ b/subjects/printnbr.fr.md @@ -16,7 +16,7 @@ func PrintNbr(n int) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/printnbrbase.en.md b/subjects/printnbrbase.en.md index 840e35f7..616da104 100644 --- a/subjects/printnbrbase.en.md +++ b/subjects/printnbrbase.en.md @@ -8,9 +8,9 @@ If the base is not valid, the function prints `NV` (Not Valid): Validity rules for a base : -- A base must contain at least 2 characters. -- Each character of a base must be unique. -- A base should not contain `+` or `-` characters. +- A base must contain at least 2 characters. +- Each character of a base must be unique. +- A base should not contain `+` or `-` characters. The function has to manage negative numbers. (as shown in the example) @@ -24,7 +24,7 @@ func PrintNbrBase(nbr int, base string) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/printnbrbase.fr.md b/subjects/printnbrbase.fr.md index 49195b9b..76d817ba 100644 --- a/subjects/printnbrbase.fr.md +++ b/subjects/printnbrbase.fr.md @@ -8,9 +8,9 @@ Si la base n'est pas valide, la fonction affiche `NV` (Not Valid): Règles de validité d'une base : -- Une base doit contenir au moins 2 caractères. -- Chaque caractère d'une base doit être unique. -- Une base ne doit pas contenir les caractères `+` ou `-`. +- Une base doit contenir au moins 2 caractères. +- Chaque caractère d'une base doit être unique. +- Une base ne doit pas contenir les caractères `+` ou `-`. La fonction doit gérer les nombres négatifs (comme montré sur l'exemple). @@ -24,7 +24,7 @@ func PrintNbrBase(nbr int, base string) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/printnbrinorder.en.md b/subjects/printnbrinorder.en.md index 63b23bd8..832b6cb7 100644 --- a/subjects/printnbrinorder.en.md +++ b/subjects/printnbrinorder.en.md @@ -16,7 +16,7 @@ func PrintNbrInOrder(n int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/printnbrinorder.fr.md b/subjects/printnbrinorder.fr.md index 63b23bd8..832b6cb7 100644 --- a/subjects/printnbrinorder.fr.md +++ b/subjects/printnbrinorder.fr.md @@ -16,7 +16,7 @@ func PrintNbrInOrder(n int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/printreversealphabet.fr.md b/subjects/printreversealphabet.fr.md index b02d0d12..382930e0 100644 --- a/subjects/printreversealphabet.fr.md +++ b/subjects/printreversealphabet.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un [programme](TODO-LINK) qui affiche l'alphabet latin en minuscule dans l'ordre inverse (de `'z'` à `'a'`) sur une seule ligne. +Écrire un programme qui affiche l'alphabet latin en minuscule dans l'ordre inverse (de `'z'` à `'a'`) sur une seule ligne. Une ligne est une suite de caractères précédant le caractère [fin de ligne](https://en.wikipedia.org/wiki/Newline) (`'\n'`). diff --git a/subjects/printstr.en.md b/subjects/printstr.en.md index d85bb81d..cd630b09 100644 --- a/subjects/printstr.en.md +++ b/subjects/printstr.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a function that prints one by one the characters of a `string` on the screen. +- Write a function that prints one by one the characters of a `string` on the screen. ### Expected function @@ -14,7 +14,7 @@ func PrintStr(str string) { ### Hints -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/printstr.fr.md b/subjects/printstr.fr.md index 6860b089..270f3145 100644 --- a/subjects/printstr.fr.md +++ b/subjects/printstr.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire une fonction qui affiche un à un les caractères d'une `string` à l'écran. +- Écrire une fonction qui affiche un à un les caractères d'une `string` à l'écran. ### Fonction attendue @@ -14,7 +14,7 @@ func PrintStr(str string) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/printstrprog.en.md b/subjects/printstrprog.en.md index 59ff2a33..addf0f42 100644 --- a/subjects/printstrprog.en.md +++ b/subjects/printstrprog.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a program that prints one by one the characters of a `string` passed as an argument of the program. +- Write a program that prints one by one the characters of a `string` passed as an argument of the program. ### Expected output : diff --git a/subjects/printwordstables.en.md b/subjects/printwordstables.en.md index fb92ca6c..dc2f7141 100644 --- a/subjects/printwordstables.en.md +++ b/subjects/printwordstables.en.md @@ -18,12 +18,12 @@ func PrintWordsTables(table []string) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main -import piscine ".." +import piscine ".." func main() { str := "Hello how are you?" diff --git a/subjects/printwordstables.fr.md b/subjects/printwordstables.fr.md index e5be061c..c636bc56 100644 --- a/subjects/printwordstables.fr.md +++ b/subjects/printwordstables.fr.md @@ -18,12 +18,12 @@ func PrintWordsTables(table []string) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main -import piscine ".." +import piscine ".." func main() { diff --git a/subjects/raid2.en.md b/subjects/raid2.en.md index 3313f028..e22f7752 100644 --- a/subjects/raid2.en.md +++ b/subjects/raid2.en.md @@ -2,9 +2,9 @@ ### Instructions -- Create a program that resolves a sudoku. +- Create a program that resolves a sudoku. -- A valid sudoku has only one possible solution. +- A valid sudoku has only one possible solution. ### Usage diff --git a/subjects/raid2.fr.md b/subjects/raid2.fr.md index b39fb9bc..ff843ad3 100644 --- a/subjects/raid2.fr.md +++ b/subjects/raid2.fr.md @@ -2,9 +2,9 @@ ### Instructions -- Créer un programme qui résout un sudoku. +- Créer un programme qui résout un sudoku. -- Un sudoku valide a seulement une solution possible. +- Un sudoku valide a seulement une solution possible. ### Usage diff --git a/subjects/raid3.en.md b/subjects/raid3.en.md index f207f221..a2eea0cc 100644 --- a/subjects/raid3.en.md +++ b/subjects/raid3.en.md @@ -6,11 +6,11 @@ This raid is based on the `raid1` functions. Create a program `raid3` that takes a `string` as an argument and displays the name of the matching `raid1` and its dimensions. -- If the argument is not a `raid1` the program should print `Not a Raid function`. +- If the argument is not a `raid1` the program should print `Not a Raid function`. -- All answers must end with a newline (`'\n'`). +- All answers must end with a newline (`'\n'`). -- If there is more than one `raid1` matches, the program must display them all alphabetically ordered and separated by a `||`. +- If there is more than one `raid1` matches, the program must display them all alphabetically ordered and separated by a `||`. ### Usage diff --git a/subjects/raid3.fr.md b/subjects/raid3.fr.md index 733bd773..8bb400df 100644 --- a/subjects/raid3.fr.md +++ b/subjects/raid3.fr.md @@ -6,11 +6,11 @@ Ce raid est basé sur les fonctions du `raid1`. Créer un programme `raid3` qui prend une `string` comme argument et qui affiche le nom du `raid1` correspondant et ses dimensions. -- Si l'argument n'est pas un des `raid1` le programme affiche `Not a Raid function`. +- Si l'argument n'est pas un des `raid1` le programme affiche `Not a Raid function`. -- Toutes les réponses doivent se terminer avec un retour à la ligne (`'\n'`). +- Toutes les réponses doivent se terminer avec un retour à la ligne (`'\n'`). -- Si il y a plus d'un `raid1` correspondant, le programme doit les afficher tous en ordre alphabétique et séparé par un `||`. +- Si il y a plus d'un `raid1` correspondant, le programme doit les afficher tous en ordre alphabétique et séparé par un `||`. ### Utilisation diff --git a/subjects/range.en.md b/subjects/range.en.md index 18acdb1d..cdee44ce 100644 --- a/subjects/range.en.md +++ b/subjects/range.en.md @@ -4,11 +4,11 @@ Write a program which must: -- **Allocate (with `make`)** an array of integers. +- **Allocate (with `make`)** an array of integers. -- Fill it with consecutive values that begins at the first argument and end at the second argument (Including the values of thoses arguments !). +- Fill it with consecutive values that begins at the first argument and end at the second argument (Including the values of thoses arguments !). -- That prints the array. +- That prints the array. Errors should be handled. diff --git a/subjects/range.fr.md b/subjects/range.fr.md index 46974c03..cd5bedde 100644 --- a/subjects/range.fr.md +++ b/subjects/range.fr.md @@ -4,11 +4,11 @@ Écrire un programme qui doit: -- Allouer (avec `make`) une slice d'entiers. +- Allouer (avec `make`) une slice d'entiers. -- Le remplir avec des valeurs consécutives qui commencent au premier argument et qui finissent au deuxième (En incluant les valeurs des deux arguments !) +- Le remplir avec des valeurs consécutives qui commencent au premier argument et qui finissent au deuxième (En incluant les valeurs des deux arguments !) -- Et qui affiche cette slice. +- Et qui affiche cette slice. Les erreurs doivent être gérées. diff --git a/subjects/rectangle.en.md b/subjects/rectangle.en.md index 85f5fe23..be3bd786 100644 --- a/subjects/rectangle.en.md +++ b/subjects/rectangle.en.md @@ -5,15 +5,15 @@ Consider that a point is defined by its coordinates and that a rectangle is defined by the points of the upper left and lower right corners. -- Define two structures named, `point` and `rectangle`. +- Define two structures named, `point` and `rectangle`. -- The struct `point` has to have two variables, `x` and `y`, type `int`. +- The struct `point` has to have two variables, `x` and `y`, type `int`. -- The struct `rectangle` has to have two variables, `upLeft` and `downRight` type `point`. +- The struct `rectangle` has to have two variables, `upLeft` and `downRight` type `point`. -- The goal is to make a program that: - - Given a slice of points of size `n` returns the smallest rectangle that contains all the points in the vector of points. The name of that function is `defineRectangle`. - - And which calculates and prints the area of that rectangle you define. +- The goal is to make a program that: + - Given a slice of points of size `n` returns the smallest rectangle that contains all the points in the vector of points. The name of that function is `defineRectangle`. + - And which calculates and prints the area of that rectangle you define. ### Expected main and function for the program diff --git a/subjects/rectangle.fr.md b/subjects/rectangle.fr.md index 0797dea5..038f378e 100644 --- a/subjects/rectangle.fr.md +++ b/subjects/rectangle.fr.md @@ -4,15 +4,15 @@ Considérer qu'un point est défini par ses coordonnées et qu'un rectangle est défini par les points de son coin du haut à gauche et son coin du bas à droite. -- Définir deux structures nommées, `point` et `rectangle`. +- Définir deux structures nommées, `point` et `rectangle`. -- La structure `point` doit avoir deux variables, `x` et `y`, de type `int`. +- La structure `point` doit avoir deux variables, `x` et `y`, de type `int`. -- La structure `rectangle` doit avoir deux variables, `upLeft` et `downRight` de type `point`. +- La structure `rectangle` doit avoir deux variables, `upLeft` et `downRight` de type `point`. -- Le but est de faire un programme qui: - - Avec une slice de points donnée de taille `n` retournes le plus petit rectangle qui contient tous les points dans le vecteur de points0. Le nom de cette fonction est `defineRectangle`. - - Et qui calcules et affiche l'airethe de ce rectangle défini. +- Le but est de faire un programme qui: + - Avec une slice de points donnée de taille `n` retournes le plus petit rectangle qui contient tous les points dans le vecteur de points0. Le nom de cette fonction est `defineRectangle`. + - Et qui calcules et affiche l'airethe de ce rectangle défini. ### Main et fonctions attendues pour ce programme diff --git a/subjects/recursivefactorial.en.md b/subjects/recursivefactorial.en.md index 7013a415..84f21234 100644 --- a/subjects/recursivefactorial.en.md +++ b/subjects/recursivefactorial.en.md @@ -18,7 +18,7 @@ func RecursiveFactorial(nb int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/recursivefactorial.fr.md b/subjects/recursivefactorial.fr.md index 182500f6..4d64e80b 100644 --- a/subjects/recursivefactorial.fr.md +++ b/subjects/recursivefactorial.fr.md @@ -18,7 +18,7 @@ func RecursiveFactorial(nb int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/recursivepower.en.md b/subjects/recursivepower.en.md index a8e8a7eb..9f83dbdf 100644 --- a/subjects/recursivepower.en.md +++ b/subjects/recursivepower.en.md @@ -18,7 +18,7 @@ func RecursivePower(nb int, power int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/recursivepower.fr.md b/subjects/recursivepower.fr.md index f7182344..5d3bdc4d 100644 --- a/subjects/recursivepower.fr.md +++ b/subjects/recursivepower.fr.md @@ -18,7 +18,7 @@ func RecursivePower(nb int, power int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/rot13.en.md b/subjects/rot13.en.md index d21f41cc..f1da5b6e 100644 --- a/subjects/rot13.en.md +++ b/subjects/rot13.en.md @@ -5,11 +5,11 @@ Write a program that takes a `string` and displays it, replacing each of its letters by the letter 13 spaces ahead in alphabetical order. -- 'z' becomes 'm' and 'Z' becomes 'M'. Case remains unaffected. +- 'z' becomes 'm' and 'Z' becomes 'M'. Case remains unaffected. -- The output will be followed by a newline (`'\n'`). +- The output will be followed by a newline (`'\n'`). -- If the number of arguments is different from 1, the program displays a newline (`'\n'`). +- If the number of arguments is different from 1, the program displays a newline (`'\n'`). ### Usage diff --git a/subjects/rot13.fr.md b/subjects/rot13.fr.md index 6174cb69..a17a91e0 100644 --- a/subjects/rot13.fr.md +++ b/subjects/rot13.fr.md @@ -4,11 +4,11 @@ Écrire un programme qui prend une `string` et qui l'affiche, en remplaçant chacune de ses lettres par la lettre qui est 13 positions plus loin dans l'ordre alphabétique. -- 'z' devient 'm' et 'Z' devient 'M'. Les majuscules restent des majuscules, de même pour les minuscules. +- 'z' devient 'm' et 'Z' devient 'M'. Les majuscules restent des majuscules, de même pour les minuscules. -- l'output sera suivi d'un retour à la ligne (`'\n'`). +- l'output sera suivi d'un retour à la ligne (`'\n'`). -- Si le nombre d'arguments est différent de 1, le programme affiche un retour à la ligne (`'\n'`). +- Si le nombre d'arguments est différent de 1, le programme affiche un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/rot14.en.md b/subjects/rot14.en.md index 482df7c8..db6880ee 100644 --- a/subjects/rot14.en.md +++ b/subjects/rot14.en.md @@ -14,7 +14,7 @@ func Rot14(str string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/rot14.fr.md b/subjects/rot14.fr.md index a277fd2b..62777343 100644 --- a/subjects/rot14.fr.md +++ b/subjects/rot14.fr.md @@ -16,7 +16,7 @@ func Rot14(str string) string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/sametree.en.md b/subjects/sametree.en.md index 9418f2d1..7750c133 100644 --- a/subjects/sametree.en.md +++ b/subjects/sametree.en.md @@ -38,51 +38,52 @@ Example 1: Input: - 1 - / \ - 2 3 + 1 + / \ + 2 3 - [1,2,3] + [1,2,3] - 1 - / \ - 2 3 - - [1,2,3] + 1 + / \ + 2 3 + + [1,2,3] Output: true Input: - 1 - / - 2 - - [1,2], + 1 + / + 2 + + [1,2] + + 1 + \ + 2 - 1 - \ - 2 - - [1,null,2] + [1,null,2] Output: false Input: ``` - 1 - / \ - 2 1 - - [1,2,1], - - 1 - / \ - 1 2 - - [1,1,2] + 1 + / \ + 2 1 + + [1,2,1] + + 1 + / \ + 1 2 + + [1,1,2] ``` + Output: false ### Usage diff --git a/subjects/searchreplace.en.md b/subjects/searchreplace.en.md index d7a7158f..275a7253 100644 --- a/subjects/searchreplace.en.md +++ b/subjects/searchreplace.en.md @@ -4,9 +4,9 @@ Write a program that takes 3 arguments, the first argument is a `string` in which to replace a letter (the 2nd argument) by another one (the 3rd argument). -- If the number of arguments is different from 3, the program displays a newline (`'\n'`). +- If the number of arguments is different from 3, the program displays a newline (`'\n'`). -- If the second argument is not contained in the first one (the string) then the program rewrites the `string` followed by a newline (`'\n'`). +- If the second argument is not contained in the first one (the string) then the program rewrites the `string` followed by a newline (`'\n'`). ### Usage diff --git a/subjects/searchreplace.fr.md b/subjects/searchreplace.fr.md index 2dc772ce..de0e90a5 100644 --- a/subjects/searchreplace.fr.md +++ b/subjects/searchreplace.fr.md @@ -4,9 +4,9 @@ Écrire un programme qui prends 3 arguments, le premier argument est une `string` dans laquelle une lettre (le 2éme argument) est remplacée par une autre (3éme argument). -- Si le nombre d'aruments n'est pas 3, le programme affiche un retour à la ligne (`'\n'`). +- Si le nombre d'aruments n'est pas 3, le programme affiche un retour à la ligne (`'\n'`). -- Si le second argument n'est pas contenu dans le premier (la `string`) alors le programme réécris la `string` suivi d'un retour à la ligne (`'\n'`). +- Si le second argument n'est pas contenu dans le premier (la `string`) alors le programme réécris la `string` suivi d'un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/sortedlistmerge.en.md b/subjects/sortedlistmerge.en.md index a04d27dd..bc0428fa 100644 --- a/subjects/sortedlistmerge.en.md +++ b/subjects/sortedlistmerge.en.md @@ -4,7 +4,7 @@ Write a function `SortedListMerge` that merges two lists `n1` and `n2` in ascending order. -- During the tests `n1` and `n2` will already be initially sorted. +- During the tests `n1` and `n2` will already be initially sorted. ### Expected function and structure @@ -16,7 +16,7 @@ func SortedListMerge(n1 *NodeI, n2 *NodeI) *NodeI { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/sortedlistmerge.fr.md b/subjects/sortedlistmerge.fr.md index 542774e0..64c39c8b 100644 --- a/subjects/sortedlistmerge.fr.md +++ b/subjects/sortedlistmerge.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `SortedListMerge` qui merge deux listes `n1` et `n2` en ordre ascendant. -- Pendant les tests `n1` et `n2` seront déjà triées. +- Pendant les tests `n1` et `n2` seront déjà triées. ### Fonction et structure attendues @@ -16,7 +16,7 @@ func SortedListMerge(n1 *NodeI, n2 *NodeI) *NodeI { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/sortintegertable.en.md b/subjects/sortintegertable.en.md index 7d5494e4..2167cb3c 100644 --- a/subjects/sortintegertable.en.md +++ b/subjects/sortintegertable.en.md @@ -14,7 +14,7 @@ func SortIntegerTable(table []int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/sortlist.en.md b/subjects/sortlist.en.md index 53f9d8cc..fc054af1 100644 --- a/subjects/sortlist.en.md +++ b/subjects/sortlist.en.md @@ -4,9 +4,9 @@ Write a function that must: -- Sort the list given as a parameter, using the function cmp to select the order to apply, +- Sort the list given as a parameter, using the function cmp to select the order to apply, -- Return a pointer to the first element of the sorted list. +- Return a pointer to the first element of the sorted list. Duplications must remain. @@ -29,7 +29,7 @@ func SortList (l *NodeList, cmp func(a,b int) bool) *NodeList{ } ``` -- For example, the following function used as `cmp` will sort the list in ascending order : +- For example, the following function used as `cmp` will sort the list in ascending order : ```go func ascending(a, b int) bool{ diff --git a/subjects/sortlist.fr.md b/subjects/sortlist.fr.md index e6a9ff7a..c7b52e18 100644 --- a/subjects/sortlist.fr.md +++ b/subjects/sortlist.fr.md @@ -4,9 +4,9 @@ Écrire une fonction qui doit : -- Trier la liste donnée en paramètre en utilisant la fonction cmp pour sélectionner l'ordre à appliquer, +- Trier la liste donnée en paramètre en utilisant la fonction cmp pour sélectionner l'ordre à appliquer, -- Retourner un pointeur au premier élément de la liste triée. +- Retourner un pointeur au premier élément de la liste triée. Les duplications doivent rester. @@ -29,7 +29,7 @@ func SortList (l *NodeList, cmp func(a,b int) bool) *NodeList{ } ``` -- Par exemple, la fonction suivante utilisée comme `cmp` triera la liste dans l'ordre croissant : +- Par exemple, la fonction suivante utilisée comme `cmp` triera la liste dans l'ordre croissant : ```go func ascending(a, b int) bool{ diff --git a/subjects/sortlistinsert.en.md b/subjects/sortlistinsert.en.md index ec51d44f..027eb9b7 100644 --- a/subjects/sortlistinsert.en.md +++ b/subjects/sortlistinsert.en.md @@ -4,7 +4,7 @@ Write a function `SortListInsert` that inserts `data_ref` in the linked list `l` while keeping the list sorted in ascending order. -- During the tests the list passed as an argument will be already sorted. +- During the tests the list passed as an argument will be already sorted. ### Expected function and structure @@ -16,7 +16,7 @@ func SortListInsert(l *NodeI, data_ref int) *NodeI{ ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/sortlistinsert.fr.md b/subjects/sortlistinsert.fr.md index 952d87d5..c6e2112c 100644 --- a/subjects/sortlistinsert.fr.md +++ b/subjects/sortlistinsert.fr.md @@ -5,7 +5,7 @@ Écrire une fonction `SortListInsert` qui insère `data_ref` dans la liste chaînée `l` tout en gardant cette liste triée par ordre croissant. -- Pendant les tests la liste passée en argument sera déjà triée. +- Pendant les tests la liste passée en argument sera déjà triée. ### Fonction et structure attendues @@ -17,7 +17,7 @@ func SortListInsert(l *NodeI, data_ref int) *NodeI{ ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/sortwordarr.en.md b/subjects/sortwordarr.en.md index 0d5b270d..5960ce31 100644 --- a/subjects/sortwordarr.en.md +++ b/subjects/sortwordarr.en.md @@ -14,7 +14,7 @@ func SortWordArr(array []string) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/sortwordarr.fr.md b/subjects/sortwordarr.fr.md index 097a95c0..07f0379e 100644 --- a/subjects/sortwordarr.fr.md +++ b/subjects/sortwordarr.fr.md @@ -14,7 +14,7 @@ func SortWordArr(array []string) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/sortwordarrprog.en.md b/subjects/sortwordarrprog.en.md index 23914ad3..af3f0e02 100644 --- a/subjects/sortwordarrprog.en.md +++ b/subjects/sortwordarrprog.en.md @@ -25,7 +25,7 @@ func SortWordArr(array []string) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/sortwordarrprog.fr.md b/subjects/sortwordarrprog.fr.md index 17b2f777..639d8336 100644 --- a/subjects/sortwordarrprog.fr.md +++ b/subjects/sortwordarrprog.fr.md @@ -25,7 +25,7 @@ func SortWordArr(array []string) { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/split.en.md b/subjects/split.en.md index 3f1a14ec..fd8e6e46 100644 --- a/subjects/split.en.md +++ b/subjects/split.en.md @@ -16,7 +16,7 @@ func Split(str, charset string) []string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/split.fr.md b/subjects/split.fr.md index 69cb3efb..0a6d4f31 100644 --- a/subjects/split.fr.md +++ b/subjects/split.fr.md @@ -16,7 +16,7 @@ func Split(str, charset string) []string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/splitwhitespaces.en.md b/subjects/splitwhitespaces.en.md index 14ba16c1..d2f29673 100644 --- a/subjects/splitwhitespaces.en.md +++ b/subjects/splitwhitespaces.en.md @@ -16,7 +16,7 @@ func SplitWhiteSpaces(str string) []string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/sqrt.en.md b/subjects/sqrt.en.md index ead4759d..dbfe7c80 100644 --- a/subjects/sqrt.en.md +++ b/subjects/sqrt.en.md @@ -14,7 +14,7 @@ func Sqrt(nb int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/sqrt.fr.md b/subjects/sqrt.fr.md index 1df230ea..e0c34b05 100644 --- a/subjects/sqrt.fr.md +++ b/subjects/sqrt.fr.md @@ -14,7 +14,7 @@ func Sqrt(nb int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/strlen.en.md b/subjects/strlen.en.md index 34269909..bea50067 100644 --- a/subjects/strlen.en.md +++ b/subjects/strlen.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a function that counts the `runes` of a `string` and that returns that count. +- Write a function that counts the `runes` of a `string` and that returns that count. ### Expected function @@ -14,7 +14,7 @@ func StrLen(str string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/strlen.fr.md b/subjects/strlen.fr.md index fc343e71..1a45ba32 100644 --- a/subjects/strlen.fr.md +++ b/subjects/strlen.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire une fonction qui compte le nombre de `runes` d'une `string` et qui retourne le nombre trouvé. +- Écrire une fonction qui compte le nombre de `runes` d'une `string` et qui retourne le nombre trouvé. ### Fonction attendue @@ -14,7 +14,7 @@ func StrLen(str string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/strlenprog.en.md b/subjects/strlenprog.en.md index e89484f3..c69e90d5 100644 --- a/subjects/strlenprog.en.md +++ b/subjects/strlenprog.en.md @@ -25,7 +25,7 @@ func StrLen(str string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/strlenprog.fr.md b/subjects/strlenprog.fr.md index ce520580..27e81301 100644 --- a/subjects/strlenprog.fr.md +++ b/subjects/strlenprog.fr.md @@ -25,19 +25,18 @@ func StrLen(str string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main import ( "fmt" - piscine ".." ) func main() { str := "Hello World!" - nb := piscine.StrLen(str) + nb := StrLen(str) fmt.Println(nb) } ``` diff --git a/subjects/strrev.en.md b/subjects/strrev.en.md index e2183405..ff47f90e 100644 --- a/subjects/strrev.en.md +++ b/subjects/strrev.en.md @@ -2,9 +2,9 @@ ### Instructions -- Write a function that reverses a `string`. +- Write a function that reverses a `string`. -- This function will **return** the s `string`. +- This function will **return** the s `string`. ### Expected function @@ -16,7 +16,7 @@ func StrRev(s string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/strrev.fr.md b/subjects/strrev.fr.md index 1babd18f..0ba8c64e 100644 --- a/subjects/strrev.fr.md +++ b/subjects/strrev.fr.md @@ -2,9 +2,9 @@ ### Instructions -- Écrire une fonction qui inverse une chaîne de caractères(`string`). +- Écrire une fonction qui inverse une chaîne de caractères(`string`). -- Cette fonction **retournera** la chaîne de caractères s(`string`). +- Cette fonction **retournera** la chaîne de caractères s(`string`). ### Fonction attendue @@ -16,7 +16,7 @@ func StrRev(s string) string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/strrevprog.en.md b/subjects/strrevprog.en.md index 6b4a3400..c6f6574e 100644 --- a/subjects/strrevprog.en.md +++ b/subjects/strrevprog.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a program that reverses a `string` and prints it in the standard output. +- Write a program that reverses a `string` and prints it in the standard output. ### Expected output : diff --git a/subjects/strrevprog.fr.md b/subjects/strrevprog.fr.md index 1233a6ef..48581f8d 100644 --- a/subjects/strrevprog.fr.md +++ b/subjects/strrevprog.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire un programme qui inverse une `string` et qui l'affiche dans la sortie standard. +- Écrire un programme qui inverse une `string` et qui l'affiche dans la sortie standard. ### Utilisation : diff --git a/subjects/swap.en.md b/subjects/swap.en.md index 39d7ad70..09af35d9 100644 --- a/subjects/swap.en.md +++ b/subjects/swap.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a function that swaps the contents of two **pointers to an int** (`*int`). +- Write a function that swaps the contents of two **pointers to an int** (`*int`). ### Expected function @@ -14,7 +14,7 @@ func Swap(a *int, b *int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/swapprog.en.md b/subjects/swapprog.en.md index 01e2f925..74ff5472 100644 --- a/subjects/swapprog.en.md +++ b/subjects/swapprog.en.md @@ -13,7 +13,7 @@ This means that: ### Instructions -- Write a function that swaps the contents of two **pointers to an int** (`*int`). +- Write a function that swaps the contents of two **pointers to an int** (`*int`). ### Expected function diff --git a/subjects/switchcase.en.md b/subjects/switchcase.en.md index 8301402e..d915a088 100644 --- a/subjects/switchcase.en.md +++ b/subjects/switchcase.en.md @@ -4,11 +4,11 @@ Write a program that takes a `string` and reverses the case of all its letters. -- Other characters remain unchanged. +- Other characters remain unchanged. -- The result must be followed by a newline (`'\n'`). +- The result must be followed by a newline (`'\n'`). -- If the number of arguments is different from 1, the program displays a newline (`'\n'`). +- If the number of arguments is different from 1, the program displays a newline (`'\n'`). ### Usage diff --git a/subjects/switchcase.fr.md b/subjects/switchcase.fr.md index 81f7b227..a8c00648 100644 --- a/subjects/switchcase.fr.md +++ b/subjects/switchcase.fr.md @@ -4,11 +4,11 @@ Écrire un programme qui prend une `string` et qui inverses les majuscules en minuscules et vice-versa. -- Tout autre caractère reste inchangé. +- Tout autre caractère reste inchangé. -- Le résultat doit être suivi d'un retour à la ligne (`'\n'`). +- Le résultat doit être suivi d'un retour à la ligne (`'\n'`). -- Si le nombre d'arguments est différent de 1, le programme affiche un retour à la ligne (`'\n'`). +- Si le nombre d'arguments est différent de 1, le programme affiche un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/tabmult.en.md b/subjects/tabmult.en.md index 0d1e73a2..0141a733 100644 --- a/subjects/tabmult.en.md +++ b/subjects/tabmult.en.md @@ -4,7 +4,7 @@ Write a program that displays a number's multiplication table. -- The parameter will always be a strictly positive number that fits in an `int`. Said number multiplied by 9 will also fit in an `int`. +- The parameter will always be a strictly positive number that fits in an `int`. Said number multiplied by 9 will also fit in an `int`. ### Usage diff --git a/subjects/tabmult.fr.md b/subjects/tabmult.fr.md index 66cc27f2..fa47c11d 100644 --- a/subjects/tabmult.fr.md +++ b/subjects/tabmult.fr.md @@ -4,7 +4,7 @@ Écrire un programme qui affiche la table de multiplication d'un nombre. -- Le paramètre sera toujours un nombre strictement positif qui rentre dans un `int`. Ce paramètre multiplié par 9 rentrera aussi dans un `int`. +- Le paramètre sera toujours un nombre strictement positif qui rentre dans un `int`. Ce paramètre multiplié par 9 rentrera aussi dans un `int`. ### Utilisation diff --git a/subjects/tolower.en.md b/subjects/tolower.en.md index a6c1f98f..0d509cd5 100644 --- a/subjects/tolower.en.md +++ b/subjects/tolower.en.md @@ -14,7 +14,7 @@ func ToLower(s string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/tolower.fr.md b/subjects/tolower.fr.md index c6863c9c..918a0bd6 100644 --- a/subjects/tolower.fr.md +++ b/subjects/tolower.fr.md @@ -14,7 +14,7 @@ func ToLower(s string) string { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/toupper.en.md b/subjects/toupper.en.md index 3a6a27a0..193239c1 100644 --- a/subjects/toupper.en.md +++ b/subjects/toupper.en.md @@ -14,7 +14,7 @@ func ToUpper(s string) string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/trimatoi.en.md b/subjects/trimatoi.en.md index ba6571cf..af0f39a8 100644 --- a/subjects/trimatoi.en.md +++ b/subjects/trimatoi.en.md @@ -2,13 +2,13 @@ ### Instructions -- Write a [function](TODO-LINK) that transforms a number within a `string` in a number represented as an `int`. +- Write a function that transforms a number within a `string` in a number represented as an `int`. -- For this exercise the handling of the signs + or - **has** to be taken into account. If one of the signs is encountered before any number it should determine the sign of the returned `int`. +- For this exercise the handling of the signs + or - **has** to be taken into account. If one of the signs is encountered before any number it should determine the sign of the returned `int`. -- This function will **only** have to return the `int`. In case of invalid input, the function should return `0`. +- This function will **only** have to return the `int`. In case of invalid input, the function should return `0`. -- Note: There will never be more than one sign by string in the tests. +- Note: There will never be more than one sign by string in the tests. ### Expected function @@ -20,7 +20,7 @@ func TrimAtoi(s string) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main @@ -36,8 +36,8 @@ func main() { s3 := "012 345" s4 := "Hello World!" s5 := "sd+x1fa2W3s4" - s6 := "sd-x1fa2W3s4" - s7 := "sdx1-fa2W3s4" + s6 := "sd-x1fa2W3s4" + s7 := "sdx1-fa2W3s4" n := piscine.TrimAtoi(s) n2 := piscine.TrimAtoi(s2) diff --git a/subjects/trimatoi.fr.md b/subjects/trimatoi.fr.md index 7c1059e2..e150ada1 100644 --- a/subjects/trimatoi.fr.md +++ b/subjects/trimatoi.fr.md @@ -2,11 +2,11 @@ ### Instructions -- 'Écrire une [function](TODO-LINK) qui transforme un nombre dans une `string` en un nombre représenté en `int`(entier). +- 'Écrire une function qui transforme un nombre dans une `string` en un nombre représenté en `int`(entier). -- Pour cet exercice la gestion des signes + ou - **doit être** prise en compte. Si un des signes se situe avant un chiffre alors il déterminera le signe de l'`int` retourné. +- Pour cet exercice la gestion des signes + ou - **doit être** prise en compte. Si un des signes se situe avant un chiffre alors il déterminera le signe de l'`int` retourné. -- Cette fonction aura **seulement** à retourner l'`int` (entier). En cas d'input invalide, la fonction devra retourné `0`. +- Cette fonction aura **seulement** à retourner l'`int` (entier). En cas d'input invalide, la fonction devra retourné `0`. ### Fonction attendue @@ -18,8 +18,7 @@ func TrimAtoi(s string) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : - +Voici un éventuel programme pour tester votre fonction : ```go package main @@ -35,8 +34,8 @@ func main() { s3 := "012 345" s4 := "Hello World!" s5 := "sd+x1fa2W3s4" - s6 := "sd-x1fa2W3s4" - s7 := "sdx1-fa2W3s4" + s6 := "sd-x1fa2W3s4" + s7 := "sdx1-fa2W3s4" n := piscine.TrimAtoi(s) n2 := piscine.TrimAtoi(s2) diff --git a/subjects/twosum.en.md b/subjects/twosum.en.md index 6b86cdcf..bbf043fd 100644 --- a/subjects/twosum.en.md +++ b/subjects/twosum.en.md @@ -26,19 +26,18 @@ func TwoSum(nums []int, target int) []int { } ``` -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( "fmt" - piscine ".." ) func main() { case1 := []int{1, 2, 3, 4} - out := piscine.TwoSum(case1, 5) + out := TwoSum(case1, 5) fmt.Println(out) } ``` diff --git a/subjects/ultimatedivmod.en.md b/subjects/ultimatedivmod.en.md index 3b618547..dc02d9cf 100644 --- a/subjects/ultimatedivmod.en.md +++ b/subjects/ultimatedivmod.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a function that will be formatted as below. +- Write a function that will be formatted as below. ### Expected function @@ -12,20 +12,20 @@ func UltimateDivMod(a *int, b *int) { } ``` -- This function will divide the int **a** and **b**. -- The result of this division will be stored in the int pointed by **a**. -- The remainder of this division will be stored in the int pointed by **b**. +- This function will divide the int **a** and **b**. +- The result of this division will be stored in the int pointed by **a**. +- The remainder of this division will be stored in the int pointed by **b**. ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { diff --git a/subjects/ultimatepointone.en.md b/subjects/ultimatepointone.en.md index af9c6609..e556c621 100644 --- a/subjects/ultimatepointone.en.md +++ b/subjects/ultimatepointone.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a function that takes a **pointer to a pointer to a pointer to an int** as argument and gives to this int the value of 1. +- Write a function that takes a **pointer to a pointer to a pointer to an int** as argument and gives to this int the value of 1. ### Expected function @@ -14,14 +14,14 @@ func UltimatePointOne(n ***int) { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { diff --git a/subjects/unmatch.en.md b/subjects/unmatch.en.md index ba6cc6ae..d28f63bb 100644 --- a/subjects/unmatch.en.md +++ b/subjects/unmatch.en.md @@ -4,7 +4,7 @@ Write a function, `Unmatch`, that returns the element of the slice (arr) that does not have a correspondent pair. -- If all the number have a correspondent pair, it shoud return `-1`. +- If all the number have a correspondent pair, it shoud return `-1`. ### Expected function @@ -16,7 +16,7 @@ func Unmatch(arr []int) int { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/unmatch.fr.md b/subjects/unmatch.fr.md index 5f959cfd..41c370a1 100644 --- a/subjects/unmatch.fr.md +++ b/subjects/unmatch.fr.md @@ -14,7 +14,7 @@ func Unmatch(arr []int) int { ### Utilisation -Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : +Voici un éventuel programme pour tester votre fonction : ```go package main diff --git a/subjects/ztail.en.md b/subjects/ztail.en.md index 93670787..ade99f11 100644 --- a/subjects/ztail.en.md +++ b/subjects/ztail.en.md @@ -4,15 +4,15 @@ Write a program called `ztail` that has the same behaviour as the system command `tail`, but which takes at least one file as argument. -- The only option to be handled is `-c`. This option will be used in all tests. +- The only option to be handled is `-c`. This option will be used in all tests. -- For this program the "os" package can be used. +- For this program the "os" package can be used. -- For the program to pass the tests the convention for the return code of program in Unix systems should be followed (see os.Exit). +- For the program to pass the tests the convention for the return code of program in Unix systems should be followed (see os.Exit). -- Handle the errors and output the same error messages as `tail`. +- Handle the errors and output the same error messages as `tail`. -- For more information consult the man page for `tail`. +- For more information consult the man page for `tail`. ### Note: