From c1df5a81abb735343f502c2171fe45223aaba0f4 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Wed, 9 Oct 2019 23:42:35 +0200 Subject: [PATCH] 250 --- subjects/addprimesum.en.md | 4 +- subjects/addprimesum.fr.md | 4 +- subjects/advancedsortwordarr.en.md | 1 + subjects/advancedsortwordarr.fr.md | 1 + subjects/alphamirror.en.md | 18 +++---- subjects/alphamirror.fr.md | 16 +++--- subjects/any.en.md | 5 +- subjects/any.fr.md | 5 +- subjects/appendrange.en.md | 3 +- subjects/appendrange.fr.md | 2 +- subjects/atoi.en.md | 8 +-- subjects/atoi.fr.md | 8 +-- subjects/atoibase.en.md | 6 +-- subjects/atoibase.fr.md | 6 +-- subjects/basicatoi.en.md | 8 +-- subjects/basicatoi.fr.md | 8 +-- subjects/basicatoi2.en.md | 10 ++-- subjects/basicatoi2.fr.md | 8 +-- subjects/boolean.en.md | 14 ++--- subjects/boolean.fr.md | 14 ++--- subjects/brackets.en.md | 24 ++++----- subjects/brackets.fr.md | 21 ++++---- subjects/brainfuck.en.md | 30 +++++------ subjects/brainfuck.fr.md | 32 ++++++------ subjects/btreeapplybylevel.en.md | 6 +-- subjects/btreeapplybylevel.fr.md | 6 +-- subjects/btreeapplyinorder.en.md | 3 +- subjects/btreeapplyinorder.fr.md | 3 +- subjects/btreeapplypostorder.fr.md | 2 +- subjects/btreeapplypreorder.fr.md | 2 +- subjects/btreedeletenode.en.md | 7 ++- subjects/btreedeletenode.fr.md | 7 ++- subjects/btreeinsertdata.en.md | 6 +-- subjects/btreeinsertdata.fr.md | 5 +- subjects/btreeisbinary.en.md | 6 +-- subjects/btreeisbinary.fr.md | 6 +-- subjects/btreelevelcount.en.md | 6 +-- subjects/btreelevelcount.fr.md | 6 +-- subjects/btreemax.en.md | 6 +-- subjects/btreemax.fr.md | 6 +-- subjects/btreemin.en.md | 6 +-- subjects/btreemin.fr.md | 6 +-- subjects/btreetransplant.en.md | 6 +-- subjects/btreetransplant.fr.md | 6 +-- subjects/capitalizeprog.en.md | 6 +-- subjects/capitalizeprog.fr.md | 6 +-- subjects/cat.en.md | 23 ++++---- subjects/cat.fr.md | 23 ++++---- 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/collatzcountdown.en.md | 2 +- subjects/collatzcountdown.fr.md | 2 +- subjects/comcheck.en.md | 6 +-- subjects/comcheck.fr.md | 6 +-- subjects/commandments.en.md | 84 +++++++++++++++--------------- subjects/commandments.fr.md | 84 +++++++++++++++--------------- subjects/compact.en.md | 4 +- subjects/compact.fr.md | 6 +-- subjects/compareprog.en.md | 2 +- subjects/compareprog.fr.md | 2 +- subjects/concatparams.en.md | 2 +- subjects/concatparams.fr.md | 1 + subjects/convertbase.en.md | 1 + subjects/convertbase.fr.md | 1 + subjects/countdown.en.md | 3 +- subjects/countdown.fr.md | 2 +- subjects/countif.en.md | 1 + subjects/countif.fr.md | 1 + subjects/displaya.en.md | 6 +-- subjects/displaya.fr.md | 2 +- subjects/displayalpham.en.md | 8 +-- subjects/displayalpham.fr.md | 8 +-- subjects/displayalrevm.en.md | 8 +-- subjects/displayalrevm.fr.md | 8 +-- subjects/displayfile.en.md | 18 +++---- subjects/displayfile.fr.md | 18 +++---- subjects/displayfirstparam.en.md | 2 +- subjects/displayfirstparam.fr.md | 2 +- subjects/displaylastparam.en.md | 2 +- subjects/displaylastparam.fr.md | 2 +- subjects/displayz.en.md | 5 +- subjects/displayz.fr.md | 2 +- subjects/divmod.en.md | 8 +-- subjects/divmod.fr.md | 8 +-- subjects/doop.en.md | 6 +-- subjects/doop.fr.md | 6 +-- subjects/enigma.en.md | 8 +-- subjects/enigma.fr.md | 8 +-- subjects/expandstr.en.md | 14 ++--- subjects/expandstr.fr.md | 16 +++--- subjects/fibonacci.fr.md | 1 - subjects/firstword.en.md | 8 +-- subjects/firstword.fr.md | 8 +-- subjects/foreach.en.md | 1 + subjects/foreach.fr.md | 1 + subjects/fprime.en.md | 8 +-- subjects/fprime.fr.md | 8 +-- subjects/gcd.en.md | 21 ++++---- subjects/gcd.fr.md | 22 ++++---- subjects/hello.en.md | 2 +- subjects/hello.fr.md | 2 +- subjects/hiddenp.en.md | 18 +++---- subjects/hiddenp.fr.md | 19 ++++--- subjects/inter.en.md | 6 +-- subjects/inter.fr.md | 6 +-- subjects/ispowerof2.en.md | 4 +- subjects/ispowerof2.fr.md | 4 +- subjects/issorted.en.md | 1 + subjects/issorted.fr.md | 1 + subjects/itoa.en.md | 4 +- subjects/itoa.fr.md | 4 +- subjects/itoabase.en.md | 4 +- subjects/itoabase.fr.md | 4 +- subjects/lastword.en.md | 22 ++++---- subjects/lastword.fr.md | 22 ++++---- subjects/listat.en.md | 3 +- subjects/listat.fr.md | 3 +- subjects/listclear.en.md | 4 +- subjects/listclear.fr.md | 4 +- subjects/listfind.en.md | 4 +- subjects/listfind.fr.md | 4 +- subjects/listforeach.en.md | 4 +- subjects/listforeach.fr.md | 4 +- subjects/listforeachif.en.md | 8 +-- subjects/listforeachif.fr.md | 8 +-- subjects/listlast.en.md | 2 +- subjects/listlast.fr.md | 2 +- subjects/listmerge.en.md | 2 +- subjects/listmerge.fr.md | 2 +- subjects/listpushback.en.md | 1 + subjects/listpushback.fr.md | 1 + subjects/listpushfront.en.md | 1 + subjects/listpushfront.fr.md | 1 + subjects/listpushpara.en.md | 2 +- subjects/listpushparams.en.md | 2 +- subjects/listpushparams.fr.md | 1 + subjects/listremoveif.en.md | 1 - subjects/listremoveif.fr.md | 1 - subjects/listreverse.en.md | 1 + subjects/listreverse.fr.md | 1 + subjects/listsize.en.md | 1 - subjects/listsize.fr.md | 1 - subjects/listsort.en.md | 2 +- subjects/listsort.fr.md | 2 +- subjects/makerange.en.md | 1 + subjects/makerange.fr.md | 1 + subjects/map.en.md | 1 + subjects/map.fr.md | 1 + subjects/options.en.md | 16 +++--- subjects/options.fr.md | 16 +++--- subjects/paramcount.en.md | 12 ++--- subjects/paramcount.fr.md | 14 ++--- subjects/point.en.md | 6 +-- subjects/point.fr.md | 8 +-- subjects/pointone.en.md | 2 +- subjects/pointone.fr.md | 2 +- subjects/printbits.en.md | 2 +- subjects/printbits.fr.md | 2 +- subjects/printcombn.en.md | 8 +-- subjects/printcombn.fr.md | 8 +-- subjects/printhex.en.md | 4 +- subjects/printhex.fr.md | 4 +- subjects/printnbrbase.en.md | 6 +-- subjects/printnbrbase.fr.md | 6 +-- subjects/printstr.en.md | 2 +- subjects/printstr.fr.md | 2 +- subjects/printstrprog.en.md | 2 +- subjects/printstrprog.fr.md | 2 +- subjects/printwordstables.en.md | 1 + subjects/printwordstables.fr.md | 1 + subjects/raid1a.en.md | 24 ++++----- subjects/raid1a.fr.md | 24 ++++----- subjects/raid1b.en.md | 24 ++++----- subjects/raid1b.fr.md | 24 ++++----- subjects/raid1c.en.md | 24 ++++----- subjects/raid1c.fr.md | 24 ++++----- subjects/raid1d.en.md | 24 ++++----- subjects/raid1d.fr.md | 24 ++++----- subjects/raid1e.en.md | 24 ++++----- subjects/raid1e.fr.md | 24 ++++----- subjects/raid2.en.md | 18 +++---- subjects/raid2.fr.md | 18 +++---- subjects/raid3.en.md | 26 ++++----- subjects/raid3.fr.md | 26 ++++----- subjects/range.en.md | 6 +-- subjects/range.fr.md | 8 +-- subjects/rectangle.en.md | 12 ++--- subjects/rectangle.fr.md | 12 ++--- subjects/repeatalpha.en.md | 18 +++---- subjects/repeatalpha.fr.md | 18 +++---- subjects/reverserange.en.md | 6 +-- subjects/reverserange.fr.md | 8 +-- subjects/reversestrcap.en.md | 14 ++--- subjects/reversestrcap.fr.md | 16 +++--- subjects/revwstr.en.md | 6 +-- subjects/revwstr.fr.md | 6 +-- subjects/rostring.fr.md | 2 +- subjects/rot13.en.md | 6 +-- subjects/rot13.fr.md | 6 +-- subjects/rot14.en.md | 2 +- subjects/rot14.fr.md | 2 +- subjects/rpncalc.en.md | 16 +++--- subjects/rpncalc.fr.md | 19 ++++--- subjects/searchreplace.en.md | 4 +- subjects/searchreplace.fr.md | 4 +- subjects/sortedlistmerge.en.md | 2 +- subjects/sortedlistmerge.fr.md | 2 +- subjects/sortintegertable.en.md | 2 +- subjects/sortlist.en.md | 6 +-- subjects/sortlist.fr.md | 6 +-- subjects/sortlistinsert.en.md | 2 +- subjects/sortlistinsert.fr.md | 2 +- subjects/sortwordarr.en.md | 1 + subjects/sortwordarr.fr.md | 1 + subjects/splitprog.en.md | 4 +- subjects/splitprog.fr.md | 4 +- subjects/strlen.en.md | 2 +- subjects/strlen.fr.md | 2 +- subjects/strlenprog.en.md | 4 +- subjects/strlenprog.fr.md | 4 +- subjects/strrev.en.md | 4 +- subjects/strrev.fr.md | 4 +- subjects/strrevprog.en.md | 2 +- subjects/strrevprog.fr.md | 2 +- subjects/swap.en.md | 2 +- subjects/swap.fr.md | 2 +- subjects/switchcase.en.md | 6 +-- subjects/switchcase.fr.md | 6 +-- subjects/tabmult.en.md | 2 +- subjects/tabmult.fr.md | 2 +- subjects/ultimatedivmod.en.md | 8 +-- subjects/ultimatepointone.en.md | 2 +- subjects/ultimatepointone.fr.md | 2 +- subjects/union.en.md | 22 ++++---- subjects/union.fr.md | 20 +++---- subjects/unmatch.en.md | 2 +- subjects/wdmatch.en.md | 6 +-- subjects/wdmatch.fr.md | 6 +-- subjects/who-are-you.en.md | 4 +- subjects/who-are-you.fr.md | 4 +- subjects/ztail.en.md | 8 +-- subjects/ztail.fr.md | 8 +-- 250 files changed, 974 insertions(+), 985 deletions(-) diff --git a/subjects/addprimesum.en.md b/subjects/addprimesum.en.md index 10b6de75..2e66e68b 100644 --- a/subjects/addprimesum.en.md +++ b/subjects/addprimesum.en.md @@ -2,9 +2,9 @@ ### Instructions -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`'). +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 diff --git a/subjects/addprimesum.fr.md b/subjects/addprimesum.fr.md index 4c8266a4..2d73e472 100644 --- a/subjects/addprimesum.fr.md +++ b/subjects/addprimesum.fr.md @@ -2,9 +2,9 @@ ### Instructions -É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 newline(`'\n`'). +É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 newline. +- 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 09c16295..c513a5a8 100644 --- a/subjects/advancedsortwordarr.en.md +++ b/subjects/advancedsortwordarr.en.md @@ -8,6 +8,7 @@ Write a function `AdvancedSortWordArr` that sorts a `string` array, based on the ```go func AdvancedSortWordArr(array []string, f func(a, b string) int) { + } ``` diff --git a/subjects/advancedsortwordarr.fr.md b/subjects/advancedsortwordarr.fr.md index 4d13440d..a0532d17 100644 --- a/subjects/advancedsortwordarr.fr.md +++ b/subjects/advancedsortwordarr.fr.md @@ -8,6 +8,7 @@ ```go func AdvancedSortWordArr(array []string, f func(a, b string) int) { + } ``` diff --git a/subjects/alphamirror.en.md b/subjects/alphamirror.en.md index ccac3f43..1f2b7853 100644 --- a/subjects/alphamirror.en.md +++ b/subjects/alphamirror.en.md @@ -2,28 +2,26 @@ ### Instructions -Write a program called `alphamirror` that takes a `string` as argument and displays this `string` -after replacing each alphabetical character with the opposite alphabetical -character. +Write a program called `alphamirror` that takes a `string` as argument and displays this `string` after replacing each alphabetical character with the opposite alphabetical character. The case of the letter stays the same, for example : 'a' becomes 'z', 'Z' becomes 'A' 'd' becomes 'w', 'M' becomes 'N' -The final result will be followed by a newline(`'\n'`). +The final result will be followed by a newline (`'\n'`). -If the number of arguments is different from 1, the program displays only a newline(`'\n'`). +If the number of arguments is different from 1, the program displays only a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/student/alphamirror$ go build -student@ubuntu:~/student/alphamirror$ ./alphamirror "abc" +student@ubuntu:~/piscine-go/alphamirror$ go build +student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror "abc" zyx -student@ubuntu:~/student/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e +student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e Nb slihv rh Znzarmt.$ -student@ubuntu:~/student/alphamirror$ ./alphamirror | cat -e +student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror | cat -e $ -student@ubuntu:~/student/alphamirror$ +student@ubuntu:~/piscine-go/alphamirror$ ``` diff --git a/subjects/alphamirror.fr.md b/subjects/alphamirror.fr.md index 21213e92..327dcd14 100644 --- a/subjects/alphamirror.fr.md +++ b/subjects/alphamirror.fr.md @@ -2,26 +2,26 @@ ### Instructions -Écrire un programme nommé `alphamirror` qui prend une `string` come argument et qui affiche cette `string` après remplacement de chaque caractère alphabétique avec son opposé. +Écrire un programme nommé `alphamirror` qui prend une `string` comme argument et qui affiche cette `string` après remplacement de chaque caractère alphabétique avec son opposé. Les majuscules restent des majuscules, de même pour le minuscules, par exemple : 'a' devient 'z', 'Z' devient 'A' 'd' devient 'w', 'M' devient 'N' -Le résultat final sera suivi d'un newline(`'\n'`). +Le résultat final sera suivi d'un retour à la ligne (`'\n'`). -Si le nombre d'arguments est différent de 1, le programme affiche seulement un newline(`'\n'`). +Si le nombre d'arguments est différent de 1, le programme affiche seulement un retour à la ligne (`'\n'`). ### Utilisation ```console -student@ubuntu:~/student/alphamirror$ go build -student@ubuntu:~/student/alphamirror$ ./alphamirror "abc" +student@ubuntu:~/piscine-go/alphamirror$ go build +student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror "abc" zyx -student@ubuntu:~/student/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e +student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e Nb slihv rh Znzarmt.$ -student@ubuntu:~/student/alphamirror$ ./alphamirror | cat -e +student@ubuntu:~/piscine-go/alphamirror$ ./alphamirror | cat -e $ -student@ubuntu:~/student/alphamirror$ +student@ubuntu:~/piscine-go/alphamirror$ ``` diff --git a/subjects/any.en.md b/subjects/any.en.md index 303eb64f..4e71f1f7 100644 --- a/subjects/any.en.md +++ b/subjects/any.en.md @@ -2,14 +2,15 @@ ### Instructions -Write a function `Any` that returns `true`, for a `string` array: +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 ```go func Any(f func(string) bool, arr []string) bool { + } ``` diff --git a/subjects/any.fr.md b/subjects/any.fr.md index c1312a2a..203dd6dc 100644 --- a/subjects/any.fr.md +++ b/subjects/any.fr.md @@ -2,14 +2,15 @@ ### Instructions -Écrire une fonction `Any` qui retournes `true`, pour un tableau de `string`: +Écrire une fonction `Any` qui retourne `true`, pour un tableau de `string` : -- si, lorsque ce tableau de `string` est passé à travers une fonction `f`, au moins un element retournes `true`. +- si, lorsque ce tableau de `string` est passé à travers une fonction `f`, au moins un element retourne `true`. ### Fonction attendue ```go func Any(f func(string) bool, arr []string) bool { + } ``` diff --git a/subjects/appendrange.en.md b/subjects/appendrange.en.md index 71b7cd75..5bc1a7d1 100644 --- a/subjects/appendrange.en.md +++ b/subjects/appendrange.en.md @@ -2,8 +2,7 @@ ### Instructions -Write a function that takes an `int` min and an `int` max as parameters. -That function returns a slice of `int` with all the values between min and max. +Write a function that takes an `int` min and an `int` max as parameters. That function returns a slice of `int` with all the values between min and max. Min is included, and max is excluded. diff --git a/subjects/appendrange.fr.md b/subjects/appendrange.fr.md index c0c31179..4cbefc1e 100644 --- a/subjects/appendrange.fr.md +++ b/subjects/appendrange.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire une fonction qui prend un `int` minimum et un `int` maximum comme paramètres. Cette fonction retournes une slice d'`int` avec toutes les valeurs comprises entre le minimum et le maximum. +Écrire une fonction qui prend un `int` minimum et un `int` maximum comme paramètres. Cette fonction retourne une slice d'`int` avec toutes les valeurs comprises entre le minimum et le maximum. Le minimum est inclus, le maximum est exclu. diff --git a/subjects/atoi.en.md b/subjects/atoi.en.md index 33fff5d9..93b7bde0 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](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` `nbr`. 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` result of atoi is not required. ### Expected function diff --git a/subjects/atoi.fr.md b/subjects/atoi.fr.md index ae3be54a..e0595fdb 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) `nbr`. 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 diff --git a/subjects/atoibase.en.md b/subjects/atoibase.en.md index f770f0ae..fdf395eb 100644 --- a/subjects/atoibase.en.md +++ b/subjects/atoibase.en.md @@ -8,9 +8,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. diff --git a/subjects/atoibase.fr.md b/subjects/atoibase.fr.md index 57f9b9aa..98d1717c 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. diff --git a/subjects/basicatoi.en.md b/subjects/basicatoi.en.md index c56fadc5..c5a6d6df 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` `nbr`. 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 diff --git a/subjects/basicatoi.fr.md b/subjects/basicatoi.fr.md index d2eba211..a1e38109 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é. 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é. 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) `nbr`. 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 diff --git a/subjects/basicatoi2.en.md b/subjects/basicatoi2.en.md index 5472c6f6..1f1f6018 100644 --- a/subjects/basicatoi2.en.md +++ b/subjects/basicatoi2.en.md @@ -2,15 +2,15 @@ ### 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` `nbr`. 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 +### Expected function ```go func BasicAtoi2(s string) int { diff --git a/subjects/basicatoi2.fr.md b/subjects/basicatoi2.fr.md index e6be4da4..b11ffea0 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) `nbr`. 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 diff --git a/subjects/boolean.en.md b/subjects/boolean.en.md index b6dce557..e10973c3 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 @@ -39,12 +39,12 @@ func main() { } ``` -### Expected output +### Usage ```console -student@ubuntu:~/student/boolean$ go build -student@ubuntu:~/student/boolean$ ./boolean "not" "odd" +student@ubuntu:~/piscine-go/boolean$ go build +student@ubuntu:~/piscine-go/boolean$ ./boolean "not" "odd" I have an even number of arguments -student@ubuntu:~/student/boolean$ ./boolean "not even" +student@ubuntu:~/piscine-go/boolean$ ./boolean "not even" I have an odd number of arguments ``` diff --git a/subjects/boolean.fr.md b/subjects/boolean.fr.md index e3090bd7..335380a6 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 appliquer 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 @@ -39,12 +39,12 @@ func main() { } ``` -### Usage +### Utilisation ```console -student@ubuntu:~/student/boolean$ go build -student@ubuntu:~/student/boolean$ ./boolean "not" "odd" +student@ubuntu:~/piscine-go/boolean$ go build +student@ubuntu:~/piscine-go/boolean$ ./boolean "not" "odd" I have an even number of arguments -student@ubuntu:~/student/boolean$ ./boolean "not even" +student@ubuntu:~/piscine-go/boolean$ ./boolean "not even" I have an odd number of arguments ``` diff --git a/subjects/brackets.en.md b/subjects/brackets.en.md index ac1d2099..75e8cccd 100644 --- a/subjects/brackets.en.md +++ b/subjects/brackets.en.md @@ -2,32 +2,26 @@ ### Instructions -Write a program that takes an undefined number of `strings` in arguments. For each -argument, if the expression is correctly bracketed, the program prints on the standard output `OK` followed by a newline(`'\n'`), otherwise it prints "Error" followed by -a newline. +Write a program that takes an undefined number of `string` in arguments. For each argument, if the expression is correctly bracketed, the program prints on the standard output `OK` followed by a newline (`'\n'`), otherwise it prints `Error` followed by a newline. -Symbols considered as `brackets` are parentheses `(` and `)`, square brackets `[` -and `]` and curly braces `{` and `}`. Every other symbols are simply ignored. +Symbols considered as brackets are parentheses `(` and `)`, square brackets `[` and `]` and curly braces `{` and `}`. Every other symbols are simply ignored. -An opening bracket must always be closed by the good closing bracket in the -correct order. A `string` which does not contain any bracket is considered as a -correctly bracketed `string`. +An opening bracket must always be closed by the good closing bracket in the correct order. A `string` which does not contain any bracket is considered as a correctly bracketed `string`. If there is no argument, the program must print only a newline. ### Usage ```console -student@ubuntu:~/student/brackets$ go build -student@ubuntu:~/student/brackets$ ./brackets '(johndoe)' | cat -e +student@ubuntu:~/piscine-go/brackets$ go build +student@ubuntu:~/piscine-go/brackets$ ./brackets '(johndoe)' | cat -e OK$ -student@ubuntu:~/student/brackets$ ./brackets '([)]' | cat -e +student@ubuntu:~/piscine-go/brackets$ ./brackets '([)]' | cat -e Error$ -student@ubuntu:~/student/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e +student@ubuntu:~/piscine-go/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e OK$ OK$ -student@ubuntu:~/student/brackets$ ./brackets | cat -e +student@ubuntu:~/piscine-go/brackets$ ./brackets | cat -e $ -student@ubuntu:~/student/brackets$ - +student@ubuntu:~/piscine-go/brackets$ ``` diff --git a/subjects/brackets.fr.md b/subjects/brackets.fr.md index d0fc3bd5..016b95a9 100644 --- a/subjects/brackets.fr.md +++ b/subjects/brackets.fr.md @@ -2,29 +2,26 @@ ### Instructions -Écrire un programme qui prend un nombre indéfini de `strings` en arguments. Pour chaque -argument, si l'expression est correctement "entre parenthèses" (bracketed), le programme affiche sur la sortie standard `OK` suivi d'un newline(`'\n'`), autrement il affiche `Error` suivi d'un newline. +Écrire un programme qui prend un nombre indéfini de `string` en arguments. Pour chaque argument, si l'expression est correctement "entre parenthèses" (bracketed), le programme affiche sur la sortie standard `OK` suivi d'un retour à la ligne (`'\n'`), autrement il affiche `Error` suivi d'un retour à la ligne. -Les symboles considérés comme des `parenthèses` sont les parenthèses `(` et `)`, les crochets `[` -et `]` et les accolades `{` et `}`. Tout autre symbole est simplement ignoré. +Les symboles considérés comme des parenthèses sont `(` et `)`, les crochets `[` et `]` et les accolades `{` et `}`. Tout autre symbole est simplement ignoré. Une parenthèse ouvrante doit toujours être fermée par la parenthèse correspondante dans l'ordre correct. Une `string` qui ne contient aucune parenthèse est considérée comme une `string` correctement "entre parenthèses". -Si il n'y a pas d'argument, le programme affiche seulement un newline. +Si il n'y a pas d'argument, le programme affiche seulement un retour à la ligne. ### Utilisation ```console -student@ubuntu:~/student/brackets$ go build -student@ubuntu:~/student/brackets$ ./brackets '(johndoe)' | cat -e +student@ubuntu:~/piscine-go/brackets$ go build +student@ubuntu:~/piscine-go/brackets$ ./brackets '(johndoe)' | cat -e OK$ -student@ubuntu:~/student/brackets$ ./brackets '([)]' | cat -e +student@ubuntu:~/piscine-go/brackets$ ./brackets '([)]' | cat -e Error$ -student@ubuntu:~/student/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e +student@ubuntu:~/piscine-go/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e OK$ OK$ -student@ubuntu:~/student/brackets$ ./brackets | cat -e +student@ubuntu:~/piscine-go/brackets$ ./brackets | cat -e $ -student@ubuntu:~/student/brackets$ - +student@ubuntu:~/piscine-go/brackets$ ``` diff --git a/subjects/brainfuck.en.md b/subjects/brainfuck.en.md index a42af67a..94c3a117 100644 --- a/subjects/brainfuck.en.md +++ b/subjects/brainfuck.en.md @@ -5,33 +5,31 @@ Write a `Brainfuck` interpreter program. The source code will be given as first parameter. The code will always be valid, with less than 4096 operations. -`Brainfuck` is a minimalist language. It consists of an array of bytes -(in this exercice 2048 bytes) all initialized with zero, -and with a pointer to its first byte. +`Brainfuck` is a minimalist language. It consists of an array of bytes (in this exercice 2048 bytes) all initialized with zero, and with a pointer to its first byte. 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. ### Usage ```console -student@ubuntu:~/student/brainfuck$ go build -student@ubuntu:~/student/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e +student@ubuntu:~/piscine-go/brainfuck$ go build +student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e Hello World!$ -student@ubuntu:~/student/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e +student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e Hi$ -student@ubuntu:~/student/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e +student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e abc$ -student@ubuntu:~/student/brainfuck$ ./brainfuck | cat -e +student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck | cat -e $ -student@ubuntu:~/student/brainfuck$ +student@ubuntu:~/piscine-go/brainfuck$ ``` diff --git a/subjects/brainfuck.fr.md b/subjects/brainfuck.fr.md index c69935bd..645caa46 100644 --- a/subjects/brainfuck.fr.md +++ b/subjects/brainfuck.fr.md @@ -4,34 +4,32 @@ Écrire un program interpréteur du `Brainfuck`. Le code source sera donné en premier paramètre. -Le code sera toujours valide, avec moins de 4096 operations. -Le `Brainfuck` est un langage minimaliste. Il consiste en un slice de bytes (octet) -(dans cet exercise 2048 bytes) tous initialisés à zéro, -et avec un pointeur sur le premier byte. +Le code sera toujours valide, avec moins de 4096 opérations. +Le `Brainfuck` est un langage minimaliste. Il consiste en un slice de `byte` (octets) (dans cet exercise 2048 octets) tous initialisés à zéro, et avec un pointeur sur le premier octet. 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. ### Utilisation ```console -student@ubuntu:~/student/brainfuck$ go build -student@ubuntu:~/student/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e +student@ubuntu:~/piscine-go/brainfuck$ go build +student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e Hello World!$ -student@ubuntu:~/student/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e +student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e Hi$ -student@ubuntu:~/student/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e +student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e abc$ -student@ubuntu:~/student/brainfuck$ ./brainfuck | cat -e +student@ubuntu:~/piscine-go/brainfuck$ ./brainfuck | cat -e $ -student@ubuntu:~/student/brainfuck$ +student@ubuntu:~/piscine-go/brainfuck$ ``` diff --git a/subjects/btreeapplybylevel.en.md b/subjects/btreeapplybylevel.en.md index 942ab89a..448960d6 100644 --- a/subjects/btreeapplybylevel.en.md +++ b/subjects/btreeapplybylevel.en.md @@ -36,11 +36,11 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 1 7 5 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeapplybylevel.fr.md b/subjects/btreeapplybylevel.fr.md index 84bb7a32..51dde436 100644 --- a/subjects/btreeapplybylevel.fr.md +++ b/subjects/btreeapplybylevel.fr.md @@ -36,11 +36,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 1 7 5 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeapplyinorder.en.md b/subjects/btreeapplyinorder.en.md index 54039485..0f82fa69 100644 --- a/subjects/btreeapplyinorder.en.md +++ b/subjects/btreeapplyinorder.en.md @@ -2,8 +2,7 @@ ### Instructions -Write a function that applies a function in order to each element in the tree. -(see `in order tree walks`) +Write a function that applies a function in order to each element in the tree (see "in order tree walks"). ### Expected function diff --git a/subjects/btreeapplyinorder.fr.md b/subjects/btreeapplyinorder.fr.md index e633a576..5ba7b8ef 100644 --- a/subjects/btreeapplyinorder.fr.md +++ b/subjects/btreeapplyinorder.fr.md @@ -2,8 +2,7 @@ ### Instructions -Écrire une fonction qui applique une fonction en ordre (in order) a chaque élément de l'arbre. -(voir les `in order tree walks`) +Écrire une fonction qui applique une fonction en ordre (in order) à chaque élément de l'arbre (voir les "in order tree walks"). ### Fonction attendue diff --git a/subjects/btreeapplypostorder.fr.md b/subjects/btreeapplypostorder.fr.md index 320e1492..93bbb722 100644 --- a/subjects/btreeapplypostorder.fr.md +++ b/subjects/btreeapplypostorder.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire une fonction qui applique une fonction en post-ordre (`postorder walk`) à chaque élément de l'arbre. +Écrire une fonction qui applique une fonction en post-ordre ("postorder walk") à chaque élément de l'arbre. ### Fonction attendue diff --git a/subjects/btreeapplypreorder.fr.md b/subjects/btreeapplypreorder.fr.md index ff131007..c4071820 100644 --- a/subjects/btreeapplypreorder.fr.md +++ b/subjects/btreeapplypreorder.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire une fonction qui applique une fonction en pré-ordre (`preorder walk`) a chaque élément de l'arbre. +Écrire une fonction qui applique une fonction en pré-ordre ("preorder walk") à chaque élément de l'arbre. ### Fonction attendue diff --git a/subjects/btreedeletenode.en.md b/subjects/btreedeletenode.en.md index 16fcc39d..9fcbcac2 100644 --- a/subjects/btreedeletenode.en.md +++ b/subjects/btreedeletenode.en.md @@ -12,7 +12,6 @@ The resulting tree should still follow the binary search tree rules. func BTreeDeleteNode(root, node *TreeNode) *TreeNode { } - ``` ### Usage @@ -44,8 +43,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Before delete: 1 4 @@ -55,5 +54,5 @@ After delete: 1 5 7 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreedeletenode.fr.md b/subjects/btreedeletenode.fr.md index 1f0584b3..80a1a8ab 100644 --- a/subjects/btreedeletenode.fr.md +++ b/subjects/btreedeletenode.fr.md @@ -12,7 +12,6 @@ L'arbre en résultant devra toujours suivre les règles des arbres de recherche func BTreeDeleteNode(root, node *TreeNode) *TreeNode { } - ``` ### Utilisation @@ -44,8 +43,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Before delete: 1 4 @@ -55,5 +54,5 @@ After delete: 1 5 7 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeinsertdata.en.md b/subjects/btreeinsertdata.en.md index df65e8ee..dcb5706f 100644 --- a/subjects/btreeinsertdata.en.md +++ b/subjects/btreeinsertdata.en.md @@ -2,9 +2,9 @@ ### Instructions -Write a function that inserts new data in a binary search tree -following the properties of binary search trees. -The nodes must be defined as follows: +Write a function that inserts new data in a binary search tree following the properties of binary search trees. + +The nodes must be defined as follows : ### Expected function diff --git a/subjects/btreeinsertdata.fr.md b/subjects/btreeinsertdata.fr.md index af21d518..08fea491 100644 --- a/subjects/btreeinsertdata.fr.md +++ b/subjects/btreeinsertdata.fr.md @@ -2,8 +2,9 @@ ### Instructions -Écrire une fonction qui insère de la nouvelle data dans un arbre binaire en suivant les propriétés des arbres de recherche binaires. -Les nodes doivent être définies comme ci-dessous: +Écrire une fonction qui insère de la nouvelle donnée dans un arbre binaire en suivant les propriétés des arbres de recherche binaires. + +Les nodes doivent être définies comme ci-dessous : ### Fonction attendue diff --git a/subjects/btreeisbinary.en.md b/subjects/btreeisbinary.en.md index 40ec314b..4326c204 100644 --- a/subjects/btreeisbinary.en.md +++ b/subjects/btreeisbinary.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeisbinary.fr.md b/subjects/btreeisbinary.fr.md index 663231f7..f6f241d1 100644 --- a/subjects/btreeisbinary.fr.md +++ b/subjects/btreeisbinary.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreelevelcount.en.md b/subjects/btreelevelcount.en.md index b93dd20e..9aab71e3 100644 --- a/subjects/btreelevelcount.en.md +++ b/subjects/btreelevelcount.en.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 3 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreelevelcount.fr.md b/subjects/btreelevelcount.fr.md index dfd4fd91..de7fa8c1 100644 --- a/subjects/btreelevelcount.fr.md +++ b/subjects/btreelevelcount.fr.md @@ -37,8 +37,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 3 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreemax.en.md b/subjects/btreemax.en.md index 65aa35d7..7ca56921 100644 --- a/subjects/btreemax.en.md +++ b/subjects/btreemax.en.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 7 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreemax.fr.md b/subjects/btreemax.fr.md index 79b0255f..af57b5c0 100644 --- a/subjects/btreemax.fr.md +++ b/subjects/btreemax.fr.md @@ -38,8 +38,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 7 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreemin.en.md b/subjects/btreemin.en.md index 0de3352e..a3920db1 100644 --- a/subjects/btreemin.en.md +++ b/subjects/btreemin.en.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreemin.fr.md b/subjects/btreemin.fr.md index 79c865d1..e7b20b22 100644 --- a/subjects/btreemin.fr.md +++ b/subjects/btreemin.fr.md @@ -38,8 +38,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreetransplant.en.md b/subjects/btreetransplant.en.md index 5aa9b841..5e903734 100644 --- a/subjects/btreetransplant.en.md +++ b/subjects/btreetransplant.en.md @@ -39,11 +39,11 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 3 4 5 7 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreetransplant.fr.md b/subjects/btreetransplant.fr.md index d45f281f..56f99b06 100644 --- a/subjects/btreetransplant.fr.md +++ b/subjects/btreetransplant.fr.md @@ -39,11 +39,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 3 4 5 7 -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/capitalizeprog.en.md b/subjects/capitalizeprog.en.md index 0151c867..49a87b71 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 301dc19b..521f39c1 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 newline ("`\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 814576e0..67232219 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -4,34 +4,33 @@ 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. +- If the program is called without arguments it should take the `input` and print it back. -- 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 pratice 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:~/student/cat$ go build -student@ubuntu:~/student/cat$ ./cat +student@ubuntu:~/piscine-go/cat$ go build +student@ubuntu:~/piscine-go/cat$ ./cat Hello Hello -student@ubuntu:~/student/cat$ ./cat quest8.txt +student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing -student@ubuntu:~/student/cat$ ./cat quest8.txt quest8T.txt +student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "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." - ``` diff --git a/subjects/cat.fr.md b/subjects/cat.fr.md index 96356580..1ba44989 100644 --- a/subjects/cat.fr.md +++ b/subjects/cat.fr.md @@ -4,36 +4,35 @@ É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 imprimer l'erreur. +- En cas d'erreur le programme doit imprimer l'erreur. -- L eprogramme doit être rendu dans un dossier nommé `cat`. +- L eprogramme doit être rendu dans un dossier nommé `cat`. ### Utilisation: ```console -student@ubuntu:~/student/cat$ go build -student@ubuntu:~/student/cat$ ./cat +student@ubuntu:~/piscine-go/cat$ go build +student@ubuntu:~/piscine-go/cat$ ./cat Hello Hello -student@ubuntu:~/student/cat$ ./cat quest8.txt +student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing -student@ubuntu:~/student/cat$ ./cat quest8.txt quest8T.txt +student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "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." - ``` diff --git a/subjects/cl-camp1.en.md b/subjects/cl-camp1.en.md index 866ff1a3..2aea2c97 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 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 resuls 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-camp1.fr.md b/subjects/cl-camp1.fr.md index 8ffabc99..6f63db48 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 9fd36115..e10fd90d 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` and, -- all the files ending with a `z` and, -- all files starting with `z` and ending with `a!`. +- starting with an `a` and, +- all the files ending with a `z` and, +- 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 558e16b6..d96b147e 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 8dfaed0a..41129e48 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://raw.githubusercontent.com/kigiri/superhero-api/master/api/all.json +* Where to look : https://raw.githubusercontent.com/kigiri/superhero-api/master/api/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 2ae90dcb..037505ac 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://raw.githubusercontent.com/kigiri/superhero-api/master/api/all.json +* Où chercher : https://raw.githubusercontent.com/kigiri/superhero-api/master/api/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 252ad4aa..6c7849c7 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 0b5f932f..408d0a06 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 866ff1a3..2aea2c97 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 resuls 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 866ff1a3..2aea2c97 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 resuls with commas. +- Order them by ascending order of creation date. +- Have the folders have a `/` in front of them. ### Hint diff --git a/subjects/collatzcountdown.en.md b/subjects/collatzcountdown.en.md index fd380d7d..4f1acc96 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 diff --git a/subjects/collatzcountdown.fr.md b/subjects/collatzcountdown.fr.md index 38682cf7..cab80ed3 100644 --- a/subjects/collatzcountdown.fr.md +++ b/subjects/collatzcountdown.fr.md @@ -4,7 +4,7 @@ Écrire une fonction, `CollatzCountdown`, qui retournes le nombre d'étapes nécéssaires pour atteindre 1 en utilisant le comptage de collatz. -- Elle doit renvoyer `-1` si `start` est égal à 0 ou négatif. +- Elle doit renvoyer `-1` si `start` est égal à 0 ou négatif. ### Fonction attendue diff --git a/subjects/comcheck.en.md b/subjects/comcheck.en.md index b1190914..3b9474fb 100644 --- a/subjects/comcheck.en.md +++ b/subjects/comcheck.en.md @@ -2,11 +2,11 @@ ### Instructions -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 `strings`: +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 newline(`'\n'`). +- If none of the parameters match, the program displays a newline (`'\n'`). ### Usage diff --git a/subjects/comcheck.fr.md b/subjects/comcheck.fr.md index dd890cc4..1e04c212 100644 --- a/subjects/comcheck.fr.md +++ b/subjects/comcheck.fr.md @@ -2,11 +2,11 @@ ### Instructions -écrire un programme `comcheck` qui affiche sur la sortie standard `Alert!!!` suivi d'un newline(`'\n'`) si au moins un des arguments passé ne paramètre correspond aux `strings`: +é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 un newline(`'\n'`). +- si aucun des paramètres correspond, le programme affiche un retour à la ligne (`'\n'`). ### Usage diff --git a/subjects/commandments.en.md b/subjects/commandments.en.md index e2fe4082..9081d208 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 e2fe4082..9081d208 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 40ee7df7..f2df851e 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 diff --git a/subjects/compact.fr.md b/subjects/compact.fr.md index 54f2f339..bfb53086 100644 --- a/subjects/compact.fr.md +++ b/subjects/compact.fr.md @@ -2,12 +2,12 @@ ### Instructions -Écrire une fonction `Compact` qui prend un pointeur sur slice de `strings` comme paramètre. +Écrire une fonction `Compact` qui prend un pointeur sur slice de `string` comme paramètre. Cette fonction doit: -- Retourner le nombre d'éléments avec des valeurs non-`nil` +- Retourner le nombre d'éléments avec des valeurs non-`nil` -- Comprimer, c.à.d., effacer les éléments qui ont une valeur `nil` dans la slice. +- Comprimer, c.à.d., effacer les éléments qui ont une valeur `nil` dans la slice. ### Fonction attendue diff --git a/subjects/compareprog.en.md b/subjects/compareprog.en.md index 0d648f30..33c196d4 100644 --- a/subjects/compareprog.en.md +++ b/subjects/compareprog.en.md @@ -4,7 +4,7 @@ Write a program that behaves like the `Compare` function. -This program prints a number after comparing two `strings` lexicographically. +This program prints a number after comparing two `string` lexicographically. ### Usage : diff --git a/subjects/compareprog.fr.md b/subjects/compareprog.fr.md index ebdaf734..a3179ebb 100644 --- a/subjects/compareprog.fr.md +++ b/subjects/compareprog.fr.md @@ -4,7 +4,7 @@ Écrire un programme qui se comporte comme la fonction `Compare`. -Ce programme affiche un nombre après avoir comparé deux `strings` lexicalement. +Ce programme affiche un nombre après avoir comparé deux `string` lexicalement. ### Utilisation : diff --git a/subjects/concatparams.en.md b/subjects/concatparams.en.md index 5bdbbb9c..b4b7c652 100644 --- a/subjects/concatparams.en.md +++ b/subjects/concatparams.en.md @@ -10,7 +10,7 @@ The arguments must be **separated** by a `\n`. ```go func ConcatParams(args []string) string { - + } ``` diff --git a/subjects/concatparams.fr.md b/subjects/concatparams.fr.md index 0836badc..aea6b1fe 100644 --- a/subjects/concatparams.fr.md +++ b/subjects/concatparams.fr.md @@ -10,6 +10,7 @@ Les arguments doivent être **séparés** par un `\n`. ```go func ConcatParams(args []string) string { + } ``` diff --git a/subjects/convertbase.en.md b/subjects/convertbase.en.md index 0f4862a5..9c4f1e59 100644 --- a/subjects/convertbase.en.md +++ b/subjects/convertbase.en.md @@ -12,6 +12,7 @@ Negative numbers will not be tested. ```go func ConvertBase(nbr, baseFrom, baseTo string) string { + } ``` diff --git a/subjects/convertbase.fr.md b/subjects/convertbase.fr.md index 64c5d6e2..8f7a7ab8 100644 --- a/subjects/convertbase.fr.md +++ b/subjects/convertbase.fr.md @@ -12,6 +12,7 @@ Les nombres négatifs ne seront pas testés. ```go func ConvertBase(nbr, baseFrom, baseTo string) string { + } ``` diff --git a/subjects/countdown.en.md b/subjects/countdown.en.md index 04658497..7e5b8de4 100644 --- a/subjects/countdown.en.md +++ b/subjects/countdown.en.md @@ -2,8 +2,7 @@ ### Instructions -Write a program that displays all digits in descending order, followed by a -newline(`'\n'`). +Write a program that displays all digits in descending order, followed by a newline (`'\n'`). ### Usage diff --git a/subjects/countdown.fr.md b/subjects/countdown.fr.md index 2c3cd90c..48b0a3ce 100644 --- a/subjects/countdown.fr.md +++ b/subjects/countdown.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un programme qui affiche les chiffres dans l'ordre décroissant sur une seule ligne, suivi par un newline(`'\n'`). +Écrire un programme qui affiche les chiffres dans l'ordre décroissant sur une seule ligne, suivi par un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/countif.en.md b/subjects/countif.en.md index 727ce587..354bb6b8 100644 --- a/subjects/countif.en.md +++ b/subjects/countif.en.md @@ -8,6 +8,7 @@ Write a function `CountIf` that returns the number of elements of a `string` arr ```go func CountIf(f func(string) bool, tab []string) int { + } ``` diff --git a/subjects/countif.fr.md b/subjects/countif.fr.md index 77b6a87a..7a36a781 100644 --- a/subjects/countif.fr.md +++ b/subjects/countif.fr.md @@ -8,6 +8,7 @@ ```go func CountIf(f func(string) bool, tab []string) int { + } ``` diff --git a/subjects/displaya.en.md b/subjects/displaya.en.md index 37e8f96b..cb3bf0ff 100644 --- a/subjects/displaya.en.md +++ b/subjects/displaya.en.md @@ -3,9 +3,9 @@ ### Instructions Write a program that takes a `string`, and displays the first `a` character it -encounters in it, followed by a newline(`'\n'`). If there are no `a` characters in the -string, the program just writes `a` followed by a newline(`'\n'`). If the number of parameters is not -1, the program displays an `a` followed by a newline(`'\n'`). +encounters in it, followed by a newline (`'\n'`). If there are no `a` characters in the +string, the program just writes `a` followed by a newline (`'\n'`). If the number of parameters is not +1, the program displays an `a` followed by a newline (`'\n'`). ### Usage diff --git a/subjects/displaya.fr.md b/subjects/displaya.fr.md index 21bd7c7a..4839a750 100644 --- a/subjects/displaya.fr.md +++ b/subjects/displaya.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un programme qui prend une `string`, et qui affiche le premier caractère `a` qu'il trouve dedans, suivi par un newline(`'\n'`). Si il n'y a pas de caractère `a` dans la `string`, le programme affiche juste un `a` suivi d'un newline(`'\n'`). Si le nombre de paramètres n'est pas 1, le programme affiche un `a` suivi d'un newline(`'\n'`). +Écrire un programme qui prend une `string`, et qui affiche le premier caractère `a` qu'il trouve dedans, suivi par un retour à la ligne (`'\n'`). Si il n'y a pas de caractère `a` dans la `string`, le programme affiche juste un `a` suivi d'un retour à la ligne (`'\n'`). Si le nombre de paramètres n'est pas 1, le programme affiche un `a` suivi d'un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/displayalpham.en.md b/subjects/displayalpham.en.md index e4dac821..471abc7d 100644 --- a/subjects/displayalpham.en.md +++ b/subjects/displayalpham.en.md @@ -3,13 +3,13 @@ ### Instructions Write a program that displays the alphabet, with even letters in uppercase, and -odd letters in lowercase, followed by a newline(`'\n'`). +odd letters in lowercase, followed by a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/student/displayalpham$ go build -student@ubuntu:~/student/displayalpham$ ./displayalpham | cat -e +student@ubuntu:~/piscine-go/displayalpham$ go build +student@ubuntu:~/piscine-go/displayalpham$ ./displayalpham | cat -e aBcDeFgHiJkLmNoPqRsTuVwXyZ$ -student@ubuntu:~/student/displayalpham$ +student@ubuntu:~/piscine-go/displayalpham$ ``` diff --git a/subjects/displayalpham.fr.md b/subjects/displayalpham.fr.md index 7fe3dab0..8b69b8e7 100644 --- a/subjects/displayalpham.fr.md +++ b/subjects/displayalpham.fr.md @@ -2,13 +2,13 @@ ### Instructions -Écrire un programme qui affiche l'alphabet, avec les lettres paires en majuscule, et les lettres impaires en minuscule, suivi d'un newline(`'\n'`). +Écrire un programme qui affiche l'alphabet, avec les lettres paires en majuscule, et les lettres impaires en minuscule, suivi d'un retour à la ligne (`'\n'`). ### Utilisation ```console -student@ubuntu:~/student/displayalpham$ go build -student@ubuntu:~/student/displayalpham$ ./displayalpham | cat -e +student@ubuntu:~/piscine-go/displayalpham$ go build +student@ubuntu:~/piscine-go/displayalpham$ ./displayalpham | cat -e aBcDeFgHiJkLmNoPqRsTuVwXyZ$ -student@ubuntu:~/student/displayalpham$ +student@ubuntu:~/piscine-go/displayalpham$ ``` diff --git a/subjects/displayalrevm.en.md b/subjects/displayalrevm.en.md index f3271544..f83fc5c5 100644 --- a/subjects/displayalrevm.en.md +++ b/subjects/displayalrevm.en.md @@ -3,13 +3,13 @@ ### Instructions Write a program that displays the alphabet in reverse, with even letters in -uppercase, and odd letters in lowercase, followed by a newline(`'\n'`). +uppercase, and odd letters in lowercase, followed by a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/student/displayalrevm$ go build -student@ubuntu:~/student/displayalrevm$ ./displayalrevm | cat -e +student@ubuntu:~/piscine-go/displayalrevm$ go build +student@ubuntu:~/piscine-go/displayalrevm$ ./displayalrevm | cat -e zYxWvUtSrQpOnMlKjIhGfEdCbA$ -student@ubuntu:~/student/displayalrevm$ +student@ubuntu:~/piscine-go/displayalrevm$ ``` diff --git a/subjects/displayalrevm.fr.md b/subjects/displayalrevm.fr.md index 2ee24777..2032d571 100644 --- a/subjects/displayalrevm.fr.md +++ b/subjects/displayalrevm.fr.md @@ -2,13 +2,13 @@ ### Instructions -Écrire un programme qui affiche l'alphabet à l'envers, avec les lettres paires en majuscule, et les lettres impaires en minuscule, suivi d'un newline(`'\n'`). +Écrire un programme qui affiche l'alphabet à l'envers, avec les lettres paires en majuscule, et les lettres impaires en minuscule, suivi d'un retour à la ligne (`'\n'`). ### Utilisation ```console -student@ubuntu:~/student/displayalrevm$ go build -student@ubuntu:~/student/displayalrevm$ ./displayalrevm | cat -e +student@ubuntu:~/piscine-go/displayalrevm$ go build +student@ubuntu:~/piscine-go/displayalrevm$ ./displayalrevm | cat -e zYxWvUtSrQpOnMlKjIhGfEdCbA$ -student@ubuntu:~/student/displayalrevm$ +student@ubuntu:~/piscine-go/displayalrevm$ ``` diff --git a/subjects/displayfile.en.md b/subjects/displayfile.en.md index 525b835a..f32ec17a 100644 --- a/subjects/displayfile.en.md +++ b/subjects/displayfile.en.md @@ -4,22 +4,22 @@ 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 : ```console -student@ubuntu:~/student/displayfile$ go build -student@ubuntu:~/student/displayfile$ ./displayfile +student@ubuntu:~/piscine-go/displayfile$ go build +student@ubuntu:~/piscine-go/displayfile$ ./displayfile File name missing -student@ubuntu:~/student/displayfile$ ./displayfile quest8.txt main.go +student@ubuntu:~/piscine-go/displayfile$ ./displayfile quest8.txt main.go Too many arguments -student@ubuntu:~/student/displayfile$ ./displayfile quest8.txt +student@ubuntu:~/piscine-go/displayfile$ ./displayfile quest8.txt Almost there!! ``` diff --git a/subjects/displayfile.fr.md b/subjects/displayfile.fr.md index b117240c..83069c63 100644 --- a/subjects/displayfile.fr.md +++ b/subjects/displayfile.fr.md @@ -4,22 +4,22 @@ É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: ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test File name missing -student@ubuntu:~/student/test$ ./test quest8.txt main.go +student@ubuntu:~/piscine-go/test$ ./test quest8.txt main.go Too many arguments -student@ubuntu:~/student/test$ ./test quest8.txt +student@ubuntu:~/piscine-go/test$ ./test quest8.txt Almost there!! ``` diff --git a/subjects/displayfirstparam.en.md b/subjects/displayfirstparam.en.md index 986dc459..d6a30d1d 100644 --- a/subjects/displayfirstparam.en.md +++ b/subjects/displayfirstparam.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a program that takes `strings` as arguments, and displays its first argument. +Write a program that takes `string` as arguments, and displays its first argument. ### Usage diff --git a/subjects/displayfirstparam.fr.md b/subjects/displayfirstparam.fr.md index 7f74947e..fcc07c3e 100644 --- a/subjects/displayfirstparam.fr.md +++ b/subjects/displayfirstparam.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un programme qui prend des `strings` comme arguments, et qui affiche le premier argument. +Écrire un programme qui prend des `string` comme arguments, et qui affiche le premier argument. ### Utilisation diff --git a/subjects/displaylastparam.en.md b/subjects/displaylastparam.en.md index 27d05937..f64227e5 100644 --- a/subjects/displaylastparam.en.md +++ b/subjects/displaylastparam.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a program that takes `strings` as arguments, and displays its last argument. +Write a program that takes `string` as arguments, and displays its last argument. ### Expected output diff --git a/subjects/displaylastparam.fr.md b/subjects/displaylastparam.fr.md index 26e63f1f..e45a64b7 100644 --- a/subjects/displaylastparam.fr.md +++ b/subjects/displaylastparam.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un programme qui prend des `strings` comme arguments, et qui affiche le dernier argument. +Écrire un programme qui prend des `string` comme arguments, et qui affiche le dernier argument. ### Expected output diff --git a/subjects/displayz.en.md b/subjects/displayz.en.md index 1ed71cec..d7b25ffc 100644 --- a/subjects/displayz.en.md +++ b/subjects/displayz.en.md @@ -2,10 +2,7 @@ ### Instructions -Write a program that takes a `string`, and displays the first `z` character it -encounters in it, followed by a newline(`'\n'`). If there are no `z` characters in the -string, the program just writes `z` followed by a newline(`'\n'`). If the number of parameters is not -1, the program displays an `z` followed by a newline(`'\n'`). +Write a program that takes a `string`, and displays the first `z` character it encounters in it, followed by a newline (`'\n'`). If there are no `z` characters in the string, the program just writes `z` followed by a newline (`'\n'`). If the number of parameters is not 1, the program displays an `z` followed by a newline (`'\n'`). ### Usage diff --git a/subjects/displayz.fr.md b/subjects/displayz.fr.md index d4af3c10..158a6de6 100644 --- a/subjects/displayz.fr.md +++ b/subjects/displayz.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un programme qui prend une `string`, et qui affiche le premier caractère `z` qu'il trouve dedans, suivi par un newline(`'\n'`). Si il n'y a pas de caractère `z` dans la `string`, le programme affiche juste un `z` suivi d'un newline(`'\n'`). Si le nombre de paramètres n'est pas 1, le programme affiche un `z` suivi d'un newline(`'\n'`). +Écrire un programme qui prend une `string`, et qui affiche le premier caractère `z` qu'il trouve dedans, suivi par un retour à la ligne (`'\n'`). Si il n'y a pas de caractère `z` dans la `string`, le programme affiche juste un `z` suivi d'un retour à la ligne (`'\n'`). Si le nombre de paramètres n'est pas 1, le programme affiche un `z` suivi d'un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/divmod.en.md b/subjects/divmod.en.md index 6d2ab871..24fab35d 100644 --- a/subjects/divmod.en.md +++ b/subjects/divmod.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,9 +12,9 @@ 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 diff --git a/subjects/divmod.fr.md b/subjects/divmod.fr.md index fb79adda..c13cebd7 100644 --- a/subjects/divmod.fr.md +++ b/subjects/divmod.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire une fonction qui aura le format ci-dessous. +- Écrire une fonction qui aura le format ci-dessous. ### Fonction attendue @@ -12,9 +12,9 @@ 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 diff --git a/subjects/doop.en.md b/subjects/doop.en.md index 5b74f28b..b876257b 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -6,9 +6,9 @@ Write a [program](TODO-LINK) that is called `doop`. The program has to be used with three arguments: -- A value -- An operator -- Another value +- A value +- An operator +- Another value In case of an invalid operator the programs prints `0`. diff --git a/subjects/doop.fr.md b/subjects/doop.fr.md index b9201030..e78c06f8 100644 --- a/subjects/doop.fr.md +++ b/subjects/doop.fr.md @@ -6,9 +6,9 @@ Le programme doit être utilisé avec trois arguments: -- Une valeur -- Un opérateur -- Une autre valeur +- Une valeur +- Un opérateur +- Une autre valeur En cas d'opérateur invalide le programme affiche `0`. diff --git a/subjects/enigma.en.md b/subjects/enigma.en.md index ce2d533b..8b4fb8af 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 diff --git a/subjects/enigma.fr.md b/subjects/enigma.fr.md index 5451e4df..a6cab178 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 diff --git a/subjects/expandstr.en.md b/subjects/expandstr.en.md index 67717cfd..8990e4dd 100644 --- a/subjects/expandstr.en.md +++ b/subjects/expandstr.en.md @@ -5,7 +5,7 @@ Write a program that takes a `string` and displays it with exactly three spaces between each word, with no spaces or tabs at either the beginning nor the end. -The `string` will be followed by a newline(`'\n'`). +The `string` will be followed by a newline (`'\n'`). A word is a sequence of alphanumerical characters. @@ -15,14 +15,14 @@ a newline. ### Usage ```console -student@ubuntu:~/student/expandstr$ go build -student@ubuntu:~/student/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/piscine-go/expandstr$ go build +student@ubuntu:~/piscine-go/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e you see it's easy to display the same thing$ -student@ubuntu:~/student/expandstr$ ./expandstr " only it's harder " | cat -e +student@ubuntu:~/piscine-go/expandstr$ ./expandstr " only it's harder " | cat -e only it's harder$ -student@ubuntu:~/student/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e +student@ubuntu:~/piscine-go/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e $ -student@ubuntu:~/student/expandstr$ ./expandstr | cat -e +student@ubuntu:~/piscine-go/expandstr$ ./expandstr | cat -e $ -student@ubuntu:~/student/expandstr$ +student@ubuntu:~/piscine-go/expandstr$ ``` diff --git a/subjects/expandstr.fr.md b/subjects/expandstr.fr.md index 3d13ae81..1168fcd6 100644 --- a/subjects/expandstr.fr.md +++ b/subjects/expandstr.fr.md @@ -4,23 +4,23 @@ Écrire un programme qui prend une `string` et qui l'affiche avec exactement 3 espaces entre chaque mot, sans espace ou tabulation ni au début ni à la fin. -La `string` sera suivie d'un newline(`'\n'`). +La `string` sera suivie d'un retour à la ligne (`'\n'`). Un mot est une suite de caractères alphanumériques. -Si le nombre de paramètres n'est pas 1, ou si il n'y a pas de mot, le programme affiche un newline. +Si le nombre de paramètres n'est pas 1, ou si il n'y a pas de mot, le programme affiche un retour à la ligne. ### Utilisation ```console -student@ubuntu:~/student/expandstr$ go build -student@ubuntu:~/student/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/piscine-go/expandstr$ go build +student@ubuntu:~/piscine-go/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e you see it's easy to display the same thing$ -student@ubuntu:~/student/expandstr$ ./expandstr " only it's harder " | cat -e +student@ubuntu:~/piscine-go/expandstr$ ./expandstr " only it's harder " | cat -e only it's harder$ -student@ubuntu:~/student/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e +student@ubuntu:~/piscine-go/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e $ -student@ubuntu:~/student/expandstr$ ./expandstr | cat -e +student@ubuntu:~/piscine-go/expandstr$ ./expandstr | cat -e $ -student@ubuntu:~/student/expandstr$ +student@ubuntu:~/piscine-go/expandstr$ ``` diff --git a/subjects/fibonacci.fr.md b/subjects/fibonacci.fr.md index be919178..75d01cdd 100644 --- a/subjects/fibonacci.fr.md +++ b/subjects/fibonacci.fr.md @@ -47,5 +47,4 @@ student@ubuntu:~/piscine-go/test$go build student@ubuntu:~/piscine-go/test$ ./test 3 student@ubuntu:~/piscine-go/test$ - ``` diff --git a/subjects/firstword.en.md b/subjects/firstword.en.md index 25fa1c06..f4a3da38 100644 --- a/subjects/firstword.en.md +++ b/subjects/firstword.en.md @@ -2,13 +2,13 @@ ### Instructions -Write a program that takes a `string` and displays its first word, followed by a newline(`'\n'`). +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 74b78fb7..46955066 100644 --- a/subjects/firstword.fr.md +++ b/subjects/firstword.fr.md @@ -2,13 +2,13 @@ ### Instructions -Écrire un programme qui prend une `string` et qui affiche son premier mot, suivi d'un newline(`'\n'`). +É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 newline(`'\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 newline(`'\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 d47ec652..4cd52f9e 100644 --- a/subjects/foreach.en.md +++ b/subjects/foreach.en.md @@ -8,6 +8,7 @@ Write a function `ForEach` that, for an `int` array, applies a function on each ```go func ForEach(f func(int), arr []int) { + } ``` diff --git a/subjects/foreach.fr.md b/subjects/foreach.fr.md index 868b119b..58bb0a08 100644 --- a/subjects/foreach.fr.md +++ b/subjects/foreach.fr.md @@ -8,6 +8,7 @@ ```go func ForEach(f func(int), arr []int) { + } ``` diff --git a/subjects/fprime.en.md b/subjects/fprime.en.md index ae8697a7..2c3fb3e5 100644 --- a/subjects/fprime.en.md +++ b/subjects/fprime.en.md @@ -2,13 +2,13 @@ ### Instructions -Write a program that takes a positive `int` and displays its prime factors, followed by a newline(`'\n'`). +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 bde628da..90d428bc 100644 --- a/subjects/fprime.fr.md +++ b/subjects/fprime.fr.md @@ -2,13 +2,13 @@ ### Instructions -Écrire un programme qui prend un `int` positif et qui affiche ses facteurs premiers sur la sortie standard, suivi d'un newline(`'\n'`). +É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 newline. +- 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/gcd.en.md b/subjects/gcd.en.md index 64fe24d4..84deeaec 100644 --- a/subjects/gcd.en.md +++ b/subjects/gcd.en.md @@ -2,10 +2,9 @@ ### Instructions -Write a program that takes two `strings` representing two strictly positive -integers that fit in an `int`. +Write a program that takes two `string` representing two strictly positive integers that fit in an `int`. -The program displays their greatest common divisor followed by a newline('`\n`'). +The program displays their greatest common divisor followed by a newline (`'\n'`). If the number of parameters is different from 2, the program displays a newline. @@ -14,18 +13,18 @@ All arguments tested will be positive `int` values. ### Usage ```console -student@ubuntu:~/student/gcd$ go build -student@ubuntu:~/student/gcd$ ./gcd 42 10 | cat -e +student@ubuntu:~/piscine-go/gcd$ go build +student@ubuntu:~/piscine-go/gcd$ ./gcd 42 10 | cat -e 2$ -student@ubuntu:~/student/gcd$ ./gcd 42 12 | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd 42 12 | cat -e 6$ -student@ubuntu:~/student/gcd$ ./gcd 14 77 | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd 14 77 | cat -e 7$ -student@ubuntu:~/student/gcd$ ./gcd 17 3 | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd 17 3 | cat -e 1$ -student@ubuntu:~/student/gcd$ ./gcd | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd | cat -e $ -student@ubuntu:~/student/gcd$ ./gcd 50 12 4 | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd 50 12 4 | cat -e $ -student@ubuntu:~/student/gcd$ +student@ubuntu:~/piscine-go/gcd$ ``` diff --git a/subjects/gcd.fr.md b/subjects/gcd.fr.md index 0fd724a4..7e1d5131 100644 --- a/subjects/gcd.fr.md +++ b/subjects/gcd.fr.md @@ -2,29 +2,29 @@ ### Instructions -Écrire un programme qui prend deux `strings` représentant deux entiers strictement positifs qui rentrent dans un `int`. +Écrire un programme qui prend deux `string` représentant deux entiers strictement positifs qui rentrent dans un `int`. -Afficher leur plus grand diviseur commun suivi d'un newline('`\n`'). +Afficher leur plus grand diviseur commun suivi d'un retour à la ligne (`'\n'`). -Si le nombre de paramètres est différent de 2, le programme affiche un newline. +Si le nombre de paramètres est différent de 2, le programme affiche un retour à la ligne. Tous les arguments testés seront des `int` positifs. ### Utilisation ```console -student@ubuntu:~/student/gcd$ go build -student@ubuntu:~/student/gcd$ ./gcd 42 10 | cat -e +student@ubuntu:~/piscine-go/gcd$ go build +student@ubuntu:~/piscine-go/gcd$ ./gcd 42 10 | cat -e 2$ -student@ubuntu:~/student/gcd$ ./gcd 42 12 | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd 42 12 | cat -e 6$ -student@ubuntu:~/student/gcd$ ./gcd 14 77 | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd 14 77 | cat -e 7$ -student@ubuntu:~/student/gcd$ ./gcd 17 3 | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd 17 3 | cat -e 1$ -student@ubuntu:~/student/gcd$ ./gcd | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd | cat -e $ -student@ubuntu:~/student/gcd$ ./gcd 50 12 4 | cat -e +student@ubuntu:~/piscine-go/gcd$ ./gcd 50 12 4 | cat -e $ -student@ubuntu:~/student/gcd$ +student@ubuntu:~/piscine-go/gcd$ ``` diff --git a/subjects/hello.en.md b/subjects/hello.en.md index 60207b56..55140043 100644 --- a/subjects/hello.en.md +++ b/subjects/hello.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a program that displays "Hello World!" followed by a newline(`'\n'`). +Write a program that displays "Hello World!" followed by a newline (`'\n'`). ### Usage diff --git a/subjects/hello.fr.md b/subjects/hello.fr.md index ac6c9f93..b5400f10 100644 --- a/subjects/hello.fr.md +++ b/subjects/hello.fr.md @@ -2,7 +2,7 @@ ### Instructions -Écrire un programme qui affiche "Hello World!" suivi d'un newline(`'\n'`). +Écrire un programme qui affiche "Hello World!" suivi d'un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/hiddenp.en.md b/subjects/hiddenp.en.md index 4db88e82..992b66e1 100644 --- a/subjects/hiddenp.en.md +++ b/subjects/hiddenp.en.md @@ -2,11 +2,9 @@ ### Instructions -Write a program named `hiddenp` that takes two `strings` and that, if the first `string` is hidden in the second one, displays `1` -followed by a newline(`'\n'`), otherwise it displays `0` followed by a newline. +Write a program named `hiddenp` that takes two `string` and that, if the first `string` is hidden in the second one, displays `1` followed by a newline (`'\n'`), otherwise it displays `0` followed by a newline. -Let s1 and s2 be `strings`. It is considered that s1 is hidden in s2 if it is possible to -find each character from s1 in s2, **in the same order as they appear in s1.** +Let s1 and s2 be `string`. It is considered that s1 is hidden in s2 if it is possible to find each character from s1 in s2, **in the same order as they appear in s1.** If s1 is an empty `string` it is considered hidden in any `string`. @@ -15,14 +13,14 @@ If the number of parameters is different from 2, the program displays a newline. ### Usage ```console -student@ubuntu:~/student/hiddenp$ go build -student@ubuntu:~/student/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e +student@ubuntu:~/piscine-go/hiddenp$ go build +student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e 1$ -student@ubuntu:~/student/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e +student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e 1$ -student@ubuntu:~/student/hiddenp$ ./hiddenp "abc" "btarc" | cat -e +student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "abc" "btarc" | cat -e 0$ -student@ubuntu:~/student/hiddenp$ ./hiddenp | cat -e +student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp | cat -e $ -student@ubuntu:~/student/hiddenp$ +student@ubuntu:~/piscine-go/hiddenp$ ``` diff --git a/subjects/hiddenp.fr.md b/subjects/hiddenp.fr.md index c563e324..7dd2b38a 100644 --- a/subjects/hiddenp.fr.md +++ b/subjects/hiddenp.fr.md @@ -2,26 +2,25 @@ ### Instructions -Écrire un programme nommé `hiddenp` qui prend deux `strings` et qui, si la première `string` est cachée dans la deuxième, affiche `1` -suivi d'un newline(`'\n'`), autrement il affiche `0` suivi d'un newline. +Écrire un programme nommé `hiddenp` qui prend deux `string` et qui, si la première `string` est cachée dans la deuxième, affiche `1` suivi d'un retour à la ligne (`'\n'`), autrement il affiche `0` suivi d'un retour à la ligne. -Considérons s1 et s2 comme étant des `strings`. Il est considéré que s1 est cachée dans s2 si il est possbile de trouver chaque caractère de s1 dans s2, **dans le même ordre d'apparence que s1.** +Considérons s1 et s2 comme étant des `string`. Il est considéré que s1 est cachée dans s2 si il est possbile de trouver chaque caractère de s1 dans s2, **dans le même ordre d'apparence que s1.** Si s1 est une `string` vide elle est considérée cachée dans n'importe quelle `string`. -Si le nombre de paramètres est différent de 2, le programme affiche un newline. +Si le nombre de paramètres est différent de 2, le programme affiche un retour à la ligne. ### Utilisation ```console -student@ubuntu:~/student/hiddenp$ go build -student@ubuntu:~/student/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e +student@ubuntu:~/piscine-go/hiddenp$ go build +student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e 1$ -student@ubuntu:~/student/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e +student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e 1$ -student@ubuntu:~/student/hiddenp$ ./hiddenp "abc" "btarc" | cat -e +student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp "abc" "btarc" | cat -e 0$ -student@ubuntu:~/student/hiddenp$ ./hiddenp | cat -e +student@ubuntu:~/piscine-go/hiddenp$ ./hiddenp | cat -e $ -student@ubuntu:~/student/hiddenp$ +student@ubuntu:~/piscine-go/hiddenp$ ``` diff --git a/subjects/inter.en.md b/subjects/inter.en.md index da04aadc..77c9f642 100644 --- a/subjects/inter.en.md +++ b/subjects/inter.en.md @@ -2,11 +2,11 @@ ### Instructions -Write a program that takes two `strings` and displays, without doubles, the characters that appear in both `strings`, in the order they appear in the first one. +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 e5b8f153..af17bf30 100644 --- a/subjects/inter.fr.md +++ b/subjects/inter.fr.md @@ -2,11 +2,11 @@ ### Instructions -Écrire un programme qui prend deux `strings` et qui affiche, sans doublons, les caractères qui apparaissent dans les deux `strings`, dans l'ordre dans lequel ils apparaissent dans la première. +É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 newline(`'\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 newline(`'\n'`). +- Si le nombre d'arguments est différent de 2, le programme affiche un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/ispowerof2.en.md b/subjects/ispowerof2.en.md index b9d8ead2..b1fb1955 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`"). -- Error cases have to be handled. +- Error cases have to be handled. ### Usage : diff --git a/subjects/ispowerof2.fr.md b/subjects/ispowerof2.fr.md index 9a266779..492983f6 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 newline ("`\n`"). +- Si il y a plus d'un ou aucun argument le programme doit afficher un retour à la ligne (`'\n'`). -- Les cas d'erreurs doivent être gérés. +- Les cas d'erreurs doivent être gérés. ### Utilisation : diff --git a/subjects/issorted.en.md b/subjects/issorted.en.md index 249da638..fd9822b7 100644 --- a/subjects/issorted.en.md +++ b/subjects/issorted.en.md @@ -13,6 +13,7 @@ To do your testing you have to write your own `f` function. ```go func IsSorted(f func(a, b int) int, tab []int) bool { + } ``` diff --git a/subjects/issorted.fr.md b/subjects/issorted.fr.md index 1d378d40..cf9642df 100644 --- a/subjects/issorted.fr.md +++ b/subjects/issorted.fr.md @@ -12,6 +12,7 @@ Pour faire vos tests, vous devez coder votre propre fonction `f`. ```go func IsSorted(f func(a, b int) int, tab []int) bool { + } ``` diff --git a/subjects/itoa.en.md b/subjects/itoa.en.md index f613beb4..f32591be 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 e6e0bad6..e7b8a100 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 17ee139e..33338b16 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 30ed68b0..ed183942 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/lastword.en.md b/subjects/lastword.en.md index eedbc703..886afee8 100644 --- a/subjects/lastword.en.md +++ b/subjects/lastword.en.md @@ -2,27 +2,27 @@ ### Instructions -Write a program that takes a `string` and displays its last word, followed by a newline(`'\n'`). +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 ```console -student@ubuntu:~/student/lastword$ go build -student@ubuntu:~/student/lastword$ ./lastword "FOR PONY" | cat -e +student@ubuntu:~/piscine-go/lastword$ go build +student@ubuntu:~/piscine-go/lastword$ ./lastword "FOR PONY" | cat -e PONY$ -student@ubuntu:~/student/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e +student@ubuntu:~/piscine-go/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e not$ -student@ubuntu:~/student/lastword$ ./lastword " " | cat -e +student@ubuntu:~/piscine-go/lastword$ ./lastword " " | cat -e $ -student@ubuntu:~/student/lastword$ ./lastword "a" "b" | cat -e +student@ubuntu:~/piscine-go/lastword$ ./lastword "a" "b" | cat -e $ -student@ubuntu:~/student/lastword$ ./lastword " lorem,ipsum " | cat -e +student@ubuntu:~/piscine-go/lastword$ ./lastword " lorem,ipsum " | cat -e lorem,ipsum$ -student@ubuntu:~/student/lastword$ +student@ubuntu:~/piscine-go/lastword$ ``` diff --git a/subjects/lastword.fr.md b/subjects/lastword.fr.md index 65b0a2c7..89098795 100644 --- a/subjects/lastword.fr.md +++ b/subjects/lastword.fr.md @@ -2,27 +2,27 @@ ### Instructions -Écrire un programme qui prend une `string` et qui affiche son dernier mot, suivi d'un newline(`'\n'`). +É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 newline(`'\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 newline(`'\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 ```console -student@ubuntu:~/student/lastword$ go build -student@ubuntu:~/student/lastword$ ./lastword "FOR PONY" | cat -e +student@ubuntu:~/piscine-go/lastword$ go build +student@ubuntu:~/piscine-go/lastword$ ./lastword "FOR PONY" | cat -e PONY$ -student@ubuntu:~/student/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e +student@ubuntu:~/piscine-go/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e not$ -student@ubuntu:~/student/lastword$ ./lastword " " | cat -e +student@ubuntu:~/piscine-go/lastword$ ./lastword " " | cat -e $ -student@ubuntu:~/student/lastword$ ./lastword "a" "b" | cat -e +student@ubuntu:~/piscine-go/lastword$ ./lastword "a" "b" | cat -e $ -student@ubuntu:~/student/lastword$ ./lastword " lorem,ipsum " | cat -e +student@ubuntu:~/piscine-go/lastword$ ./lastword " lorem,ipsum " | cat -e lorem,ipsum$ -student@ubuntu:~/student/lastword$ +student@ubuntu:~/piscine-go/lastword$ ``` diff --git a/subjects/listat.en.md b/subjects/listat.en.md index 8f8d9aee..0e1268ed 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 print the `NodeL` in the position `pos` of the linked list `l`. -- In case of error the fonction should print `nil`. +- In case of error the fonction should print `nil`. ### Expected function and structure @@ -44,7 +44,6 @@ func main() { fmt.Println(piscine.ListAt(link.Head, 1).Data) fmt.Println(piscine.ListAt(link.Head, 7)) } - ``` And its output : diff --git a/subjects/listat.fr.md b/subjects/listat.fr.md index 6010b429..60aad350 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 @@ -44,7 +44,6 @@ func main() { fmt.Println(piscine.ListAt(link.Head, 1).Data) fmt.Println(piscine.ListAt(link.Head, 7)) } - ``` Et son résultat : diff --git a/subjects/listclear.en.md b/subjects/listclear.en.md index 5bf9a8d9..3bb8eeac 100644 --- a/subjects/listclear.en.md +++ b/subjects/listclear.en.md @@ -4,12 +4,13 @@ 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 ```go func ListClear(l *List) { + } ``` @@ -52,7 +53,6 @@ func main() { fmt.Println("------updated list------") PrintList(link) } - ``` And its output : diff --git a/subjects/listclear.fr.md b/subjects/listclear.fr.md index 80e33a76..99401d14 100644 --- a/subjects/listclear.fr.md +++ b/subjects/listclear.fr.md @@ -4,12 +4,13 @@ É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 ```go func ListClear(l *List) { + } ``` @@ -52,7 +53,6 @@ func main() { fmt.Println("------updated list------") PrintList(link) } - ``` Et son résultat : diff --git a/subjects/listfind.en.md b/subjects/listfind.en.md index f7271e41..670a4ef8 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 @@ -67,4 +67,4 @@ student@ubuntu:~/piscine-go/test$ ### Note -- The address may be different in each execution of the program. +- The address may be different in each execution of the program. diff --git a/subjects/listfind.fr.md b/subjects/listfind.fr.md index 2be405ae..93383ec4 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 @@ -67,4 +67,4 @@ student@ubuntu:~/piscine-go/test$ ### Note -- L'addresse peut être différente à chaque exécution du programme. +- L'addresse peut être différente à chaque exécution du programme. diff --git a/subjects/listforeach.en.md b/subjects/listforeach.en.md index d0ab40d4..843d70d9 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 diff --git a/subjects/listforeach.fr.md b/subjects/listforeach.fr.md index 042ecded..4b44eef8 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 diff --git a/subjects/listforeachif.en.md b/subjects/listforeachif.en.md index e1d0f163..19ff9eaf 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 diff --git a/subjects/listforeachif.fr.md b/subjects/listforeachif.fr.md index 9228f26e..acfbcb2f 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 diff --git a/subjects/listlast.en.md b/subjects/listlast.en.md index 84fad8c9..fc009a6e 100644 --- a/subjects/listlast.en.md +++ b/subjects/listlast.en.md @@ -18,6 +18,7 @@ type List struct { } func ListLast(l *List) interface{} { + } ``` @@ -45,7 +46,6 @@ func main() { fmt.Println(piscine.ListLast(link)) fmt.Println(piscine.ListLast(link2)) } - ``` And its output : diff --git a/subjects/listlast.fr.md b/subjects/listlast.fr.md index e3e137da..2d8f0855 100644 --- a/subjects/listlast.fr.md +++ b/subjects/listlast.fr.md @@ -18,6 +18,7 @@ type List struct { } func ListLast(l *List) interface{} { + } ``` @@ -45,7 +46,6 @@ func main() { fmt.Println(piscine.ListLast(link)) fmt.Println(piscine.ListLast(link2)) } - ``` Et son résultat : diff --git a/subjects/listmerge.en.md b/subjects/listmerge.en.md index 529d0ed2..bdb5aa42 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 diff --git a/subjects/listmerge.fr.md b/subjects/listmerge.fr.md index b9255c7d..8d31b850 100644 --- a/subjects/listmerge.fr.md +++ b/subjects/listmerge.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `ListMerge` qui place les éléments d'une liste `l2` à la fin d'une autre liste `l1`. -- Des nouveaux éléments ne doivent pas être créés! +- Des nouveaux éléments ne doivent pas être créés! ### Fonction et structure attendues diff --git a/subjects/listpushback.en.md b/subjects/listpushback.en.md index ba735ee3..c698dcb8 100644 --- a/subjects/listpushback.en.md +++ b/subjects/listpushback.en.md @@ -18,6 +18,7 @@ type List struct { } func ListPushBack(l *List, data interface{}) { + } ``` diff --git a/subjects/listpushback.fr.md b/subjects/listpushback.fr.md index cca42015..07d15cb3 100644 --- a/subjects/listpushback.fr.md +++ b/subjects/listpushback.fr.md @@ -18,6 +18,7 @@ type List struct { } func ListPushBack(l *List, data interface{}) { + } ``` diff --git a/subjects/listpushfront.en.md b/subjects/listpushfront.en.md index 6aac8e06..2d6a3d6b 100644 --- a/subjects/listpushfront.en.md +++ b/subjects/listpushfront.en.md @@ -18,6 +18,7 @@ type List struct { } func ListPushFront(l *List, data interface{}) { + } ``` diff --git a/subjects/listpushfront.fr.md b/subjects/listpushfront.fr.md index 89a75b16..c624f9c6 100644 --- a/subjects/listpushfront.fr.md +++ b/subjects/listpushfront.fr.md @@ -18,6 +18,7 @@ type List struct { } func ListPushFront(l *List, data interface{}) { + } ``` diff --git a/subjects/listpushpara.en.md b/subjects/listpushpara.en.md index df36aab7..43067081 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 4dcdd966..fdeac10a 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 77b6a87a..7a36a781 100644 --- a/subjects/listpushparams.fr.md +++ b/subjects/listpushparams.fr.md @@ -8,6 +8,7 @@ ```go func CountIf(f func(string) bool, tab []string) int { + } ``` diff --git a/subjects/listremoveif.en.md b/subjects/listremoveif.en.md index 4f5636a3..86f4d99d 100644 --- a/subjects/listremoveif.en.md +++ b/subjects/listremoveif.en.md @@ -75,7 +75,6 @@ func main() { fmt.Println("------answer-----") PrintList(link) } - ``` And its output : diff --git a/subjects/listremoveif.fr.md b/subjects/listremoveif.fr.md index 8e5a32fc..d7e5141b 100644 --- a/subjects/listremoveif.fr.md +++ b/subjects/listremoveif.fr.md @@ -75,7 +75,6 @@ func main() { fmt.Println("------answer-----") PrintList(link) } - ``` Et son résultat : diff --git a/subjects/listreverse.en.md b/subjects/listreverse.en.md index b49cb760..757ef3d3 100644 --- a/subjects/listreverse.en.md +++ b/subjects/listreverse.en.md @@ -18,6 +18,7 @@ type List struct { } func ListReverse(l *List) { + } ``` diff --git a/subjects/listreverse.fr.md b/subjects/listreverse.fr.md index 9e8be6e5..7b6bdb6e 100644 --- a/subjects/listreverse.fr.md +++ b/subjects/listreverse.fr.md @@ -18,6 +18,7 @@ type List struct { } func ListReverse(l *List) { + } ``` diff --git a/subjects/listsize.en.md b/subjects/listsize.en.md index 454a3d36..e4e61410 100644 --- a/subjects/listsize.en.md +++ b/subjects/listsize.en.md @@ -44,7 +44,6 @@ func main() { fmt.Println(piscine.ListSize(link)) } - ``` And its output : diff --git a/subjects/listsize.fr.md b/subjects/listsize.fr.md index ab1696a9..7f1f30ee 100644 --- a/subjects/listsize.fr.md +++ b/subjects/listsize.fr.md @@ -44,7 +44,6 @@ func main() { fmt.Println(piscine.ListSize(link)) } - ``` Et son résultat : diff --git a/subjects/listsort.en.md b/subjects/listsort.en.md index e0e6730c..288c5ee8 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 diff --git a/subjects/listsort.fr.md b/subjects/listsort.fr.md index da1918bb..089878c8 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 diff --git a/subjects/makerange.en.md b/subjects/makerange.en.md index ce2f4770..83f2e49c 100644 --- a/subjects/makerange.en.md +++ b/subjects/makerange.en.md @@ -15,6 +15,7 @@ If min is superior or equal to max, a `nil` slice is returned. ```go func MakeRange(min, max int) []int { + } ``` diff --git a/subjects/makerange.fr.md b/subjects/makerange.fr.md index 7be89412..a98282ef 100644 --- a/subjects/makerange.fr.md +++ b/subjects/makerange.fr.md @@ -14,6 +14,7 @@ Si le minimum est supérieur ou égal au maximum, une slice `nil` est retournée ```go func MakeRange(min, max int) []int { + } ``` diff --git a/subjects/map.en.md b/subjects/map.en.md index 0d5ff3e5..9d8954ec 100644 --- a/subjects/map.en.md +++ b/subjects/map.en.md @@ -8,6 +8,7 @@ Write a function `Map` that, for an `int` array, applies a function of this type ```go func Map(f func(int) bool, arr []int) []bool { + } ``` diff --git a/subjects/map.fr.md b/subjects/map.fr.md index d9ffcaa1..e734b91c 100644 --- a/subjects/map.fr.md +++ b/subjects/map.fr.md @@ -8,6 +8,7 @@ ```go func Map(f func(int) bool, arr []int) []bool { + } ``` diff --git a/subjects/options.en.md b/subjects/options.en.md index 943dd86e..377c1ad1 100644 --- a/subjects/options.en.md +++ b/subjects/options.en.md @@ -2,19 +2,19 @@ ## Instructions -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'`). +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 : - -abcdefghijklmnopqrstuvwxyz +- 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. -- 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 e4ae7902..264a45c7 100644 --- a/subjects/options.fr.md +++ b/subjects/options.fr.md @@ -2,19 +2,19 @@ ## Instructions -É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 newline(`'\n'`). +É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 : - -abcdefghijklmnopqrstuvwxyz +- 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 newline. +- Une mauvaise `option` doit afficher `Invalid Option` suivi d'un retour à la ligne. ## Utilisation diff --git a/subjects/paramcount.en.md b/subjects/paramcount.en.md index 8eb3a911..3d952344 100644 --- a/subjects/paramcount.en.md +++ b/subjects/paramcount.en.md @@ -3,19 +3,19 @@ ### Instructions Write a program that displays the number of arguments passed to it. This number will be followed by -a newline(`'\n'`). +a newline (`'\n'`). If there is no argument, the program displays `0` followed by a newline. ### Usage ```console -student@ubuntu:~/student/paramcount$ go build -student@ubuntu:~/student/paramcount$ ./paramcount 1 2 3 5 7 24 +student@ubuntu:~/piscine-go/paramcount$ go build +student@ubuntu:~/piscine-go/paramcount$ ./paramcount 1 2 3 5 7 24 6 -student@ubuntu:~/student/paramcount$ ./paramcount 6 12 24 | cat -e +student@ubuntu:~/piscine-go/paramcount$ ./paramcount 6 12 24 | cat -e 3$ -student@ubuntu:~/student/paramcount$ ./paramcount | cat -e +student@ubuntu:~/piscine-go/paramcount$ ./paramcount | cat -e 0$ -student@ubuntu:~/student/paramcount$ +student@ubuntu:~/piscine-go/paramcount$ ``` diff --git a/subjects/paramcount.fr.md b/subjects/paramcount.fr.md index 438392a1..4b5e675d 100644 --- a/subjects/paramcount.fr.md +++ b/subjects/paramcount.fr.md @@ -2,19 +2,19 @@ ### Instructions -Écrire un programme qui affiche le nombre d'arguments passés à ce programme. Ce nombre sera suivi d'un newline(`'\n'`). +Écrire un programme qui affiche le nombre d'arguments passés à ce programme. Ce nombre sera suivi d'un retour à la ligne (`'\n'`). -Si il n'y a pas d'argument, le programme affiche `0` suivi d'un newline. +Si il n'y a pas d'argument, le programme affiche `0` suivi d'un retour à la ligne. ### Utilisation ```console -student@ubuntu:~/student/paramcount$ go build -student@ubuntu:~/student/paramcount$ ./paramcount 1 2 3 5 7 24 +student@ubuntu:~/piscine-go/paramcount$ go build +student@ubuntu:~/piscine-go/paramcount$ ./paramcount 1 2 3 5 7 24 6 -student@ubuntu:~/student/paramcount$ ./paramcount 6 12 24 | cat -e +student@ubuntu:~/piscine-go/paramcount$ ./paramcount 6 12 24 | cat -e 3$ -student@ubuntu:~/student/paramcount$ ./paramcount | cat -e +student@ubuntu:~/piscine-go/paramcount$ ./paramcount | cat -e 0$ -student@ubuntu:~/student/paramcount$ +student@ubuntu:~/piscine-go/paramcount$ ``` diff --git a/subjects/point.en.md b/subjects/point.en.md index e5bd6a46..80c232f4 100644 --- a/subjects/point.en.md +++ b/subjects/point.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 `point`. +- The program must be submitted inside a folder with the name `point`. ### Code to be copied diff --git a/subjects/point.fr.md b/subjects/point.fr.md index 093c55c0..7a9ec82d 100644 --- a/subjects/point.fr.md +++ b/subjects/point.fr.md @@ -4,12 +4,12 @@ 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 appliquer et the code below into that file - and do the necessary changes so that the program works. +- Les changements nécéssaires doivent être appliquer et the code below into that file + and do the necessary changes so that the program works. -- 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/pointone.en.md b/subjects/pointone.en.md index 13deaa74..dd358900 100644 --- a/subjects/pointone.en.md +++ b/subjects/pointone.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a function that takes a **pointer to an int** as argument and gives to this int the value of 1. +- Write a function that takes a **pointer to an int** as argument and gives to this int the value of 1. ### Expected function diff --git a/subjects/pointone.fr.md b/subjects/pointone.fr.md index f562ae8e..0e781d4e 100644 --- a/subjects/pointone.fr.md +++ b/subjects/pointone.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire une fonction qui prend un **pointeur sur int** en argument et qui assignes à cet int la valeur 1. +- Écrire une fonction qui prend un **pointeur sur int** en argument et qui assignes à cet int la valeur 1. ### Fonction attendue diff --git a/subjects/printbits.en.md b/subjects/printbits.en.md index 259e2186..e3d0b532 100644 --- a/subjects/printbits.en.md +++ b/subjects/printbits.en.md @@ -4,7 +4,7 @@ Write a program that takes a number as argument, and prints it in binary value **without a newline at the end**. -- If the the argument is not a number the program should print `00000000`. +- If the the argument is not a number the program should print `00000000`. ### Expected output : diff --git a/subjects/printbits.fr.md b/subjects/printbits.fr.md index 724a1c24..fc699c08 100644 --- a/subjects/printbits.fr.md +++ b/subjects/printbits.fr.md @@ -4,7 +4,7 @@ Écrire un programme qui prend un nombre en argument, et qui l'affiche en valeur binaire **sans newline à la fin**. -- Si l'argument n'est pas un nombre le programme doit afficher `00000000`. +- Si l'argument n'est pas un nombre le programme doit afficher `00000000`. ### Expected output : diff --git a/subjects/printcombn.en.md b/subjects/printcombn.en.md index 56fa83a1..96e12867 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 diff --git a/subjects/printcombn.fr.md b/subjects/printcombn.fr.md index 8f0a1c9f..197fa009 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 diff --git a/subjects/printhex.en.md b/subjects/printhex.en.md index e589c680..92ca005e 100644 --- a/subjects/printhex.en.md +++ b/subjects/printhex.en.md @@ -2,9 +2,9 @@ ### Instructions -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'`). +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. +- If the number of parameters is different from 1, the program displays a newline. ### Usage diff --git a/subjects/printhex.fr.md b/subjects/printhex.fr.md index 3b31b945..8d85fb50 100644 --- a/subjects/printhex.fr.md +++ b/subjects/printhex.fr.md @@ -2,9 +2,9 @@ ### Instructions -É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 newline(`'\n`'). +É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 newline. +- Si le nombre de paramètres est différent de 1, le programme affiche un retour à la ligne. ### Utilisation diff --git a/subjects/printnbrbase.en.md b/subjects/printnbrbase.en.md index 50fb008f..15880adc 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) diff --git a/subjects/printnbrbase.fr.md b/subjects/printnbrbase.fr.md index d724dfb1..af3ee3a4 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). diff --git a/subjects/printstr.en.md b/subjects/printstr.en.md index a50a22b6..72d1a2b9 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 diff --git a/subjects/printstr.fr.md b/subjects/printstr.fr.md index 5900ba01..86f83c69 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 diff --git a/subjects/printstrprog.en.md b/subjects/printstrprog.en.md index 8cf79be2..08ce4d21 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/printstrprog.fr.md b/subjects/printstrprog.fr.md index bed63958..d0fff935 100644 --- a/subjects/printstrprog.fr.md +++ b/subjects/printstrprog.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire un programme qui affiche un à un les caractères d'une `string` passée en argument du programme. +- Écrire un programme qui affiche un à un les caractères d'une `string` passée en argument du programme. ### Utilisation : diff --git a/subjects/printwordstables.en.md b/subjects/printwordstables.en.md index 4d0093f5..3309edcb 100644 --- a/subjects/printwordstables.en.md +++ b/subjects/printwordstables.en.md @@ -12,6 +12,7 @@ Each word ends with a `\n`. ```go func PrintWordsTables(table []string) { + } ``` diff --git a/subjects/printwordstables.fr.md b/subjects/printwordstables.fr.md index df60d08c..03ce89a2 100644 --- a/subjects/printwordstables.fr.md +++ b/subjects/printwordstables.fr.md @@ -12,6 +12,7 @@ Chaque mot fini avec un `\n`. ```go func PrintWordsTables(table []string) { + } ``` diff --git a/subjects/raid1a.en.md b/subjects/raid1a.en.md index 29593392..76e23442 100644 --- a/subjects/raid1a.en.md +++ b/subjects/raid1a.en.md @@ -36,12 +36,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test o---o | | o---o -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test o---o -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #3 @@ -86,10 +86,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test o -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #4 @@ -110,12 +110,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test o | | | o -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1a.fr.md b/subjects/raid1a.fr.md index 8ff49a4d..877c76d2 100644 --- a/subjects/raid1a.fr.md +++ b/subjects/raid1a.fr.md @@ -36,12 +36,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test o---o | | o---o -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #2 @@ -62,10 +62,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test o---o -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #3 @@ -86,10 +86,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test o -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #4 @@ -110,12 +110,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test o | | | o -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1b.en.md b/subjects/raid1b.en.md index c9041073..f096ab6c 100644 --- a/subjects/raid1b.en.md +++ b/subjects/raid1b.en.md @@ -36,12 +36,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test /***\ * * \***/ -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test /***\ -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #3 @@ -86,10 +86,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test / -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #4 @@ -110,12 +110,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test / * * * \ -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1b.fr.md b/subjects/raid1b.fr.md index 15c93982..1289e39b 100644 --- a/subjects/raid1b.fr.md +++ b/subjects/raid1b.fr.md @@ -36,12 +36,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test /***\ * * \***/ -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #2 @@ -62,10 +62,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test /***\ -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #3 @@ -86,10 +86,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test / -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #4 @@ -110,12 +110,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test / * * * \ -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1c.en.md b/subjects/raid1c.en.md index 0a7bb1a6..003be5d6 100644 --- a/subjects/raid1c.en.md +++ b/subjects/raid1c.en.md @@ -36,12 +36,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBA B B CBBBC -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBA -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #3 @@ -86,10 +86,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #4 @@ -110,12 +110,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A B B B C -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1c.fr.md b/subjects/raid1c.fr.md index 46a64f1d..d064867a 100644 --- a/subjects/raid1c.fr.md +++ b/subjects/raid1c.fr.md @@ -36,12 +36,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBA B B CBBBC -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #2 @@ -62,10 +62,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBA -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #3 @@ -86,10 +86,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #4 @@ -110,12 +110,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A B B B C -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1d.en.md b/subjects/raid1d.en.md index de93e81e..c1ae6d8d 100644 --- a/subjects/raid1d.en.md +++ b/subjects/raid1d.en.md @@ -36,12 +36,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBC B B ABBBC -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBC -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #3 @@ -86,10 +86,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #4 @@ -110,12 +110,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A B B B A -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1d.fr.md b/subjects/raid1d.fr.md index 15e20afa..9cbdc161 100644 --- a/subjects/raid1d.fr.md +++ b/subjects/raid1d.fr.md @@ -36,12 +36,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBC B B ABBBC -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #2 @@ -62,10 +62,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBC -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #3 @@ -86,10 +86,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #4 @@ -110,12 +110,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A B B B A -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1e.en.md b/subjects/raid1e.en.md index f6b249c6..94cbce37 100644 --- a/subjects/raid1e.en.md +++ b/subjects/raid1e.en.md @@ -36,12 +36,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBC B B CBBBA -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #2 @@ -62,10 +62,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBC -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #3 @@ -86,10 +86,10 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Program #4 @@ -110,12 +110,12 @@ func main() { And its output : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A B B B C -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid1e.fr.md b/subjects/raid1e.fr.md index fc84e5be..4b7124a1 100644 --- a/subjects/raid1e.fr.md +++ b/subjects/raid1e.fr.md @@ -36,12 +36,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBC B B CBBBA -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #2 @@ -62,10 +62,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ABBBC -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #3 @@ -86,10 +86,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` Programme #4 @@ -110,12 +110,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test A B B B C -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid2.en.md b/subjects/raid2.en.md index cf23e719..0f50ac45 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 @@ -13,8 +13,8 @@ Example of output for one valid sudoku : ```console -student@ubuntu:~/student/raid2$ go build -student@ubuntu:~/student/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/piscine-go/raid2$ go build +student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e 3 9 6 2 4 5 7 8 1$ 1 7 8 3 6 9 5 2 4$ 5 2 4 8 1 7 3 9 6$ @@ -24,7 +24,7 @@ student@ubuntu:~/student/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..7 7 1 2 6 3 8 4 5 9$ 6 5 9 1 7 4 8 3 2$ 8 4 3 5 9 2 1 6 7$ -student@ubuntu:~/student/raid2$ +student@ubuntu:~/piscine-go/raid2$ ``` #### Example 2: @@ -32,11 +32,11 @@ student@ubuntu:~/student/raid2$ Examples of output for invalid input or sudokus : ```console -student@ubuntu:~/student/raid2$ ./raid2 1 2 3 4 +" | cat -e +student@ubuntu:~/piscine-go/raid2$ ./raid2 1 2 3 4 +" | cat -e Error$ -student@ubuntu:~/student/raid2$ ./raid2 | cat -e +student@ubuntu:~/piscine-go/raid2$ ./raid2 | cat -e Error$ -student@ubuntu:~/student/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e" +student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e" Error$ -student@ubuntu:~/student/raid2$ +student@ubuntu:~/piscine-go/raid2$ ``` diff --git a/subjects/raid2.fr.md b/subjects/raid2.fr.md index 3dd98263..e58726ce 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 @@ -13,8 +13,8 @@ Exemple d'output pour un sudoku valide : ```console -student@ubuntu:~/student/raid2$ go build -student@ubuntu:~/student/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/piscine-go/raid2$ go build +student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e 3 9 6 2 4 5 7 8 1$ 1 7 8 3 6 9 5 2 4$ 5 2 4 8 1 7 3 9 6$ @@ -24,7 +24,7 @@ student@ubuntu:~/student/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..7 7 1 2 6 3 8 4 5 9$ 6 5 9 1 7 4 8 3 2$ 8 4 3 5 9 2 1 6 7$ -student@ubuntu:~/student/raid2$ +student@ubuntu:~/piscine-go/raid2$ ``` #### Example 2: @@ -32,11 +32,11 @@ student@ubuntu:~/student/raid2$ Examples d'outputs pour des inputs ou un sudoku invalides : ```console -student@ubuntu:~/student/raid2$ ./raid2 1 2 3 4 +" | cat -e +student@ubuntu:~/piscine-go/raid2$ ./raid2 1 2 3 4 +" | cat -e Error$ -student@ubuntu:~/student/raid2$ ./raid2 | cat -e +student@ubuntu:~/piscine-go/raid2$ ./raid2 | cat -e Error$ -student@ubuntu:~/student/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e" +student@ubuntu:~/piscine-go/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e" Error$ -student@ubuntu:~/student/raid2$ +student@ubuntu:~/piscine-go/raid2$ ``` diff --git a/subjects/raid3.en.md b/subjects/raid3.en.md index 2ca135cd..54615a20 100644 --- a/subjects/raid3.en.md +++ b/subjects/raid3.en.md @@ -6,34 +6,34 @@ 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 ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ echo HELLO | ./raid3 +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ echo HELLO | ./raid3 Not a Raid function -student@ubuntu:~/student/test$ ./raid1a 4 4 +student@ubuntu:~/piscine-go/test$ ./raid1a 4 4 o--o | | | | o--o -student@ubuntu:~/student/test$ ./raid1a 4 4 | ./raid3 +student@ubuntu:~/piscine-go/test$ ./raid1a 4 4 | ./raid3 [raid1a] [4] [4] -student@ubuntu:~/student/test$ ./raid1a 3 4 | ./raid3 +student@ubuntu:~/piscine-go/test$ ./raid1a 3 4 | ./raid3 [raid1a] [3] [4] -student@ubuntu:~/student/test$ ./raid1c 1 1 +student@ubuntu:~/piscine-go/test$ ./raid1c 1 1 A -student@ubuntu:~/student/test$ ./raid1d 1 1 +student@ubuntu:~/piscine-go/test$ ./raid1d 1 1 A -student@ubuntu:~/student/test$ ./raid1e 1 1 +student@ubuntu:~/piscine-go/test$ ./raid1e 1 1 A -student@ubuntu:~/student/test$ ./raid1c 1 1 | ./raid3 +student@ubuntu:~/piscine-go/test$ ./raid1c 1 1 | ./raid3 [raid1c] [1] [1] || [raid1d] [1] [1] || [raid1e] [1] [1] -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/raid3.fr.md b/subjects/raid3.fr.md index af87ba46..c60dea6a 100644 --- a/subjects/raid3.fr.md +++ b/subjects/raid3.fr.md @@ -6,34 +6,34 @@ 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 newline('`\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 ```console -student@ubuntu:~/student/test$ go build -student@ubuntu:~/student/test$ echo HELLO | ./raid3 +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ echo HELLO | ./raid3 Not a Raid function -student@ubuntu:~/student/test$ ./raid1a 4 4 +student@ubuntu:~/piscine-go/test$ ./raid1a 4 4 o--o | | | | o--o -student@ubuntu:~/student/test$ ./raid1a 4 4 | ./raid3 +student@ubuntu:~/piscine-go/test$ ./raid1a 4 4 | ./raid3 [raid1a] [4] [4] -student@ubuntu:~/student/test$ ./raid1a 3 4 | ./raid3 +student@ubuntu:~/piscine-go/test$ ./raid1a 3 4 | ./raid3 [raid1a] [3] [4] -student@ubuntu:~/student/test$ ./raid1c 1 1 +student@ubuntu:~/piscine-go/test$ ./raid1c 1 1 A -student@ubuntu:~/student/test$ ./raid1d 1 1 +student@ubuntu:~/piscine-go/test$ ./raid1d 1 1 A -student@ubuntu:~/student/test$ ./raid1e 1 1 +student@ubuntu:~/piscine-go/test$ ./raid1e 1 1 A -student@ubuntu:~/student/test$ ./raid1c 1 1 | ./raid3 +student@ubuntu:~/piscine-go/test$ ./raid1c 1 1 | ./raid3 [raid1c] [1] [1] || [raid1d] [1] [1] || [raid1e] [1] [1] -student@ubuntu:~/student/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/range.en.md b/subjects/range.en.md index 116525ef..18acdb1d 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 bf219d81..46974c03 100644 --- a/subjects/range.fr.md +++ b/subjects/range.fr.md @@ -4,15 +4,15 @@ É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. -Si le nombre d'arguments est différent de 2 le programme affiche un newline ("`\n`"). +Si le nombre d'arguments est différent de 2 le programme affiche un retour à la ligne (`'\n'`). ### Utilisation diff --git a/subjects/rectangle.en.md b/subjects/rectangle.en.md index bee1bf2f..f85dd71f 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 33dea8f0..8b308f5b 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/repeatalpha.en.md b/subjects/repeatalpha.en.md index 033e91e0..a4acc32f 100644 --- a/subjects/repeatalpha.en.md +++ b/subjects/repeatalpha.en.md @@ -5,27 +5,27 @@ Write a program called `repeat_alpha` that takes a `string` and displays it repeating each alphabetical character as many times as its alphabetical index. -The result must be followed by a newline(`'\n'`). +The result must be followed by a newline (`'\n'`). `'a'` becomes `'a'`, `'b'` becomes `'bb'`, `'e'` becomes `'eeeee'`, etc... The case remains unchanged. -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 ```console -student@ubuntu:~/student/repeatalpha$ go build -student@ubuntu:~/student/repeatalpha$ ./repeatalpha "abc" | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ go build +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "abc" | cat -e abbccc -student@ubuntu:~/student/repeatalpha$ ./repeatalpha "Alex." | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "Alex." | cat -e Alllllllllllleeeeexxxxxxxxxxxxxxxxxxxxxxxx.$ -student@ubuntu:~/student/repeatalpha$ ./repeatalpha "abacadaba 42!" | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "abacadaba 42!" | cat -e abbacccaddddabba 42!$ -student@ubuntu:~/student/repeatalpha$ ./repeatalpha | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha | cat -e $ -student@ubuntu:~/student/repeatalpha$ ./repeatalpha "" | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "" | cat -e $ -student@ubuntu:~/student/repeatalpha$ +student@ubuntu:~/piscine-go/repeatalpha$ ``` diff --git a/subjects/repeatalpha.fr.md b/subjects/repeatalpha.fr.md index 256cf03d..8d20d123 100644 --- a/subjects/repeatalpha.fr.md +++ b/subjects/repeatalpha.fr.md @@ -4,27 +4,27 @@ Écrire un programme `repeat_alpha` qui prend une `string` et qui affiche la répétition de chaque caractère de l'alphabet autant de fois que l'index de cette lettre. -Le résultat doit être suivi d'un newline(`'\n'`). +Le résultat doit être suivi d'un retour à la ligne (`'\n'`). `'a'` devient `'a'`, `'b'` devient `'bb'`, `'e'` devient `'eeeee'`, etc... Si une lettre est en majuscule, elle reste en majuscule, de même si elle est en minuscule. -Si le nombre d'arguments est différent de 1, le programme affiche un newline(`'\n'`). +Si le nombre d'arguments est différent de 1, le programme affiche un retour à la ligne (`'\n'`). ### Utilisation ```console -student@ubuntu:~/student/repeatalpha$ go build -student@ubuntu:~/student/repeatalpha$ ./repeatalpha "abc" | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ go build +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "abc" | cat -e abbccc -student@ubuntu:~/student/repeatalpha$ ./repeatalpha "Alex." | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "Alex." | cat -e Alllllllllllleeeeexxxxxxxxxxxxxxxxxxxxxxxx.$ -student@ubuntu:~/student/repeatalpha$ ./repeatalpha "abacadaba 42!" | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "abacadaba 42!" | cat -e abbacccaddddabba 42!$ -student@ubuntu:~/student/repeatalpha$ ./repeatalpha | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha | cat -e $ -student@ubuntu:~/student/repeatalpha$ ./repeatalpha "" | cat -e +student@ubuntu:~/piscine-go/repeatalpha$ ./repeatalpha "" | cat -e $ -student@ubuntu:~/student/repeatalpha$ +student@ubuntu:~/piscine-go/repeatalpha$ ``` diff --git a/subjects/reverserange.en.md b/subjects/reverserange.en.md index 5eb8e79d..78199ae4 100644 --- a/subjects/reverserange.en.md +++ b/subjects/reverserange.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 second argument and end at the first argument (Including the values of thoses arguments !). +- Fill it with consecutive values that begins at the second argument and end at the first argument (Including the values of thoses arguments !). -- That prints the array. +- That prints the array. Errors should be handled. diff --git a/subjects/reverserange.fr.md b/subjects/reverserange.fr.md index 2acf2f6f..0c153d36 100644 --- a/subjects/reverserange.fr.md +++ b/subjects/reverserange.fr.md @@ -4,15 +4,15 @@ É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 deuxième argument et qui finissent au premier (En incluant les valeurs des deux arguments !) +- Le remplir avec des valeurs consécutives qui commencent au deuxième argument et qui finissent au premier (en incluant les valeurs des deux arguments !) -- Et qui affiche cette slice. +- Et qui affiche cette slice. Les erreurs doivent être gérées. -Si le nombre d'arguments est différent de 2 le programme affiche un newline ("`\n`"). +Si le nombre d'arguments est différent de 2 le programme affiche un retour à la ligne (`'\n'`). ### Utilisation : diff --git a/subjects/reversestrcap.en.md b/subjects/reversestrcap.en.md index da5a0c6a..566d9196 100644 --- a/subjects/reversestrcap.en.md +++ b/subjects/reversestrcap.en.md @@ -2,10 +2,10 @@ ### Instructions -Write a program that takes one or more `strings` as arguments and that, **for each argument**: +Write a program that takes one or more `string` as arguments and that, **for each argument**: -puts the last character of each word (if it is a letter) in uppercase and the rest in lowercase --then it displays the result followed by a newline(`'\n'`). +-then it displays the result followed by a newline (`'\n'`). A word is a sequence of alphanumerical characters. @@ -14,14 +14,14 @@ If there are no parameter, the program displays a newline. ### Usage ```console -student@ubuntu:~/student/reversestrcap$ go build -student@ubuntu:~/student/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e +student@ubuntu:~/piscine-go/reversestrcap$ go build +student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e firsT smalL tesT$ -student@ubuntu:~/student/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e +student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e seconD tesT iS A littlE easieR$ bewarE it'S noT harD wheN $ gO A dernieR 0123456789 foR thE roaD E$ -student@ubuntu:~/student/reversestrcap$ ./reversestrcap | cat -e +student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap | cat -e $ -student@ubuntu:~/student/reversestrcap$ +student@ubuntu:~/piscine-go/reversestrcap$ ``` diff --git a/subjects/reversestrcap.fr.md b/subjects/reversestrcap.fr.md index b8f5f349..3af59c25 100644 --- a/subjects/reversestrcap.fr.md +++ b/subjects/reversestrcap.fr.md @@ -2,25 +2,25 @@ ### Instructions -Écrire un programme avec une ou plusieurs `strings` comme arguments et qui, **pour chaque argument**: +Écrire un programme avec une ou plusieurs `string` comme arguments et qui, **pour chaque argument**: -place le dernier caractère de chaque mot (si c'est une lettre) en majuscule et le reste en minuscule. --affiche ensuite le résultat suivi d'un newline(`'\n'`). +-affiche ensuite le résultat suivi d'un retour à la ligne (`'\n'`). Un mot est une suite de caractères alphanumériques. -Si il n'y a pas de paramètre, le programme affiche un newline. +Si il n'y a pas de paramètre, le programme affiche un retour à la ligne. ### Utilisation ```console -student@ubuntu:~/student/reversestrcap$ go build -student@ubuntu:~/student/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e +student@ubuntu:~/piscine-go/reversestrcap$ go build +student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e firsT smalL tesT$ -student@ubuntu:~/student/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e +student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e seconD tesT iS A littlE easieR$ bewarE it'S noT harD wheN $ gO A dernieR 0123456789 foR thE roaD E$ -student@ubuntu:~/student/reversestrcap$ ./reversestrcap | cat -e +student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap | cat -e $ -student@ubuntu:~/student/reversestrcap$ +student@ubuntu:~/piscine-go/reversestrcap$ ``` diff --git a/subjects/revwstr.en.md b/subjects/revwstr.en.md index 3d842e98..494e1aca 100644 --- a/subjects/revwstr.en.md +++ b/subjects/revwstr.en.md @@ -4,11 +4,11 @@ Write a program that takes a `string` as a parameter, and prints its words in reverse. -- A word is a sequence of **alphanumerical** characters. +- A word is a sequence of **alphanumerical** characters. -- If the number of parameters is different from 1, the program will display newline(`'\n'`). +- If the number of parameters is different from 1, the program will display newline (`'\n'`). -- In the parameters that are going to be tested, there will not be any extra spaces. (meaning that there will not be additionnal spaces at the beginning or at the end of the `string`and that words will always be separated by exactly one space). +- In the parameters that are going to be tested, there will not be any extra spaces. (meaning that there will not be additionnal spaces at the beginning or at the end of the `string`and that words will always be separated by exactly one space). ### Usage diff --git a/subjects/revwstr.fr.md b/subjects/revwstr.fr.md index 861151ce..246826b9 100644 --- a/subjects/revwstr.fr.md +++ b/subjects/revwstr.fr.md @@ -4,11 +4,11 @@ Écrire un programme qui prend une `string` comme paramètre, et affiche ses mots en sens inverse. -- Un mot est une suite de caractères **alphanumériques.** +- Un mot est une suite de caractères **alphanumériques.** -- Si le nombre de paramètres est différent de 1, le programme affiche un newline(`'\n'`). +- Si le nombre de paramètres est différent de 1, le programme affiche un retour à la ligne (`'\n'`). -- Dans les paramètres qui seront testés, il n'y aura pas d'espaces extra. (ce qui signifie qu'il n'y aura pas d'espaces additionnels, ni au début, ni à la fin de la `string` et que les mots seront toujours séparés par un seul espace). +- Dans les paramètres qui seront testés, il n'y aura pas d'espaces extra. (ce qui signifie qu'il n'y aura pas d'espaces additionnels, ni au début, ni à la fin de la `string` et que les mots seront toujours séparés par un seul espace). ### Utilisation diff --git a/subjects/rostring.fr.md b/subjects/rostring.fr.md index fd32b66e..9b7519de 100644 --- a/subjects/rostring.fr.md +++ b/subjects/rostring.fr.md @@ -10,7 +10,7 @@ Un mot est une suite de caractères **alphanumériques.** Les mots devront être séparés par un seul espace dans l'output. -Si le nombre d'arguments est différent de 1, le programme affiche un newline. +Si le nombre d'arguments est différent de 1, le programme affiche un retour à la ligne. ### Utilisation diff --git a/subjects/rot13.en.md b/subjects/rot13.en.md index 095d76fd..941fdb71 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 e4c38bab..3f15f277 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 newline(`'\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 newline(`'\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 253030ee..a3191477 100644 --- a/subjects/rot14.en.md +++ b/subjects/rot14.en.md @@ -4,7 +4,7 @@ Write a function `rot14` that returns the `string` within the parameter transformed into a `rot14 string`. -- There is the need to know what `rot13` stands for. +- There is the need to know what `rot13` stands for. ### Expected function diff --git a/subjects/rot14.fr.md b/subjects/rot14.fr.md index 851f9a94..7e7d92ec 100644 --- a/subjects/rot14.fr.md +++ b/subjects/rot14.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `rot14` qui retourne la `string` en paramètre transformée en `string rot14`. -- Il faut savoir ce que `rot13` signifie. +- Il faut savoir ce que `rot13` signifie. ### Fonction attendue diff --git a/subjects/rpncalc.en.md b/subjects/rpncalc.en.md index 1b0720b3..34db8b28 100644 --- a/subjects/rpncalc.en.md +++ b/subjects/rpncalc.en.md @@ -4,7 +4,7 @@ Write a program that takes a `string` which contains an equation written in `Reverse Polish Notation` (RPN) as its first argument, that evaluates the equation, and that -prints the result on the standard output followed by a newline(`'\n'`). +prints the result on the standard output followed by a newline (`'\n'`). `Reverse Polish Notation` is a mathematical notation in which every operator follows all of its operands. In RPN, every operator encountered evaluates the @@ -47,16 +47,16 @@ Or: ### Usage ```console -student@ubuntu:~/student/rpncalc$ go build -student@ubuntu:~/student/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e +student@ubuntu:~/piscine-go/rpncalc$ go build +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e 10$ -student@ubuntu:~/student/rpncalc$ ./rpncalc 1 2 3 4 +" | cat -e +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc 1 2 3 4 +" | cat -e Error$ -student@ubuntu:~/student/rpncalc$ ./rpncalc | cat -e +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc | cat -e Error$ -student@ubuntu:~/student/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e 1 -student@ubuntu:~/student/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e Error$ -student@ubuntu:~/student/rpncalc$ +student@ubuntu:~/piscine-go/rpncalc$ ``` diff --git a/subjects/rpncalc.fr.md b/subjects/rpncalc.fr.md index 8c4ad18c..bb7f20c6 100644 --- a/subjects/rpncalc.fr.md +++ b/subjects/rpncalc.fr.md @@ -2,15 +2,14 @@ ### Instructions -Écrire un programme qui prend une `string` qui contient une équation écrite en `Reverse Polish Notation` (RPN) comme premier argument, qui évalue l'équation, et qui affiche le résultat sur la sortie standard suivi d'un newline(`'\n'`). +Écrire un programme qui prend une `string` qui contient une équation écrite en `Reverse Polish Notation` (RPN) comme premier argument, qui évalue l'équation, et qui affiche le résultat sur la sortie standard suivi d'un retour à la ligne (`'\n'`). La `Reverse Polish Notation` est une notation mathématique dans laquelle chaque opérateur devance les valeurs qu'il va opérer. En RPN, chaque opérateur évalue les deux précédentes valeurs, et le résultat de cette opération devient ensuite la première des valeurs de l'opérateur. Les valeurs et les opérateurs doivent être espacés d'au moins un espace. Les opérateurs suivants doivent être implémentés : `+`, `-`, `*`, `/`, et `%`. -Si la `string` n'est pas valide ou si il n'y pas exactement un argument, le mot `Error` doit être affiché -sur la sortie standard suivi d'un newline. +Si la `string` n'est pas valide ou si il n'y pas exactement un argument, le mot `Error` doit être affiché sur la sortie standard suivi d'un retour à la ligne. Si la `string` a des espaces extra elle est toujours considérée valide. Toutes les valeurs données doivent rentrer dans un `int`. @@ -42,16 +41,16 @@ ou: ### Utilisation ```console -student@ubuntu:~/student/rpncalc$ go build -student@ubuntu:~/student/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e +student@ubuntu:~/piscine-go/rpncalc$ go build +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e 10$ -student@ubuntu:~/student/rpncalc$ ./rpncalc 1 2 3 4 +" | cat -e +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc 1 2 3 4 +" | cat -e Error$ -student@ubuntu:~/student/rpncalc$ ./rpncalc | cat -e +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc | cat -e Error$ -student@ubuntu:~/student/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e 1 -student@ubuntu:~/student/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e +student@ubuntu:~/piscine-go/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e Error$ -student@ubuntu:~/student/rpncalc$ +student@ubuntu:~/piscine-go/rpncalc$ ``` diff --git a/subjects/searchreplace.en.md b/subjects/searchreplace.en.md index c2122f82..25a193db 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 4bd13dd6..3e7e57f6 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 newline(`'\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 newline(`'\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 f98bac06..f644e007 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 diff --git a/subjects/sortedlistmerge.fr.md b/subjects/sortedlistmerge.fr.md index 3764633a..452661eb 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 diff --git a/subjects/sortintegertable.en.md b/subjects/sortintegertable.en.md index 2b5c2492..e4791962 100644 --- a/subjects/sortintegertable.en.md +++ b/subjects/sortintegertable.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a function that reorder an array of `int` in ascending order. +- Write a function that reorder an array of `int` in ascending order. ### Expected function diff --git a/subjects/sortlist.en.md b/subjects/sortlist.en.md index fc054af1..53f9d8cc 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 c7b52e18..e6a9ff7a 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 5ce1e09b..8ad96da8 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 diff --git a/subjects/sortlistinsert.fr.md b/subjects/sortlistinsert.fr.md index 30077e2a..bd77932c 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 diff --git a/subjects/sortwordarr.en.md b/subjects/sortwordarr.en.md index 279b2365..d3d5845a 100644 --- a/subjects/sortwordarr.en.md +++ b/subjects/sortwordarr.en.md @@ -8,6 +8,7 @@ Write a function `SortWordArr` that sorts by `ascii` (in ascending order) a `str ```go func SortWordArr(array []string) { + } ``` diff --git a/subjects/sortwordarr.fr.md b/subjects/sortwordarr.fr.md index ac8dc279..1e8955b0 100644 --- a/subjects/sortwordarr.fr.md +++ b/subjects/sortwordarr.fr.md @@ -8,6 +8,7 @@ ```go func SortWordArr(array []string) { + } ``` diff --git a/subjects/splitprog.en.md b/subjects/splitprog.en.md index ef563b64..3b62bc72 100644 --- a/subjects/splitprog.en.md +++ b/subjects/splitprog.en.md @@ -6,8 +6,8 @@ Write a program which separates the words of a `string`, which puts them in a `s The program receives two parameters: -- The first is the `string` -- The second is the separator +- The first is the `string` +- The second is the separator ### Usage : diff --git a/subjects/splitprog.fr.md b/subjects/splitprog.fr.md index 3ac1d562..e0d0eabc 100644 --- a/subjects/splitprog.fr.md +++ b/subjects/splitprog.fr.md @@ -6,8 +6,8 @@ Le programme reçoit deux paramètres: -- Le premier est la `string` -- Le deuxième est le séparateur +- Le premier est la `string` +- Le deuxième est le séparateur ### Utilisation : diff --git a/subjects/strlen.en.md b/subjects/strlen.en.md index 7f9e2b2c..b8511a47 100644 --- a/subjects/strlen.en.md +++ b/subjects/strlen.en.md @@ -2,7 +2,7 @@ ### Instructions -- Write a function that counts the characters of a `string` and that returns that count. +- Write a function that counts the characters of a `string` and that returns that count. ### Expected function diff --git a/subjects/strlen.fr.md b/subjects/strlen.fr.md index 183355ce..421c2169 100644 --- a/subjects/strlen.fr.md +++ b/subjects/strlen.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire une fonction qui compte le nombre de caractères d'une `string` et qui retourne le nombre trouvé. +- Écrire une fonction qui compte le nombre de caractères d'une `string` et qui retourne le nombre trouvé. ### Fonction attendue diff --git a/subjects/strlenprog.en.md b/subjects/strlenprog.en.md index 9899252c..cb968c6e 100644 --- a/subjects/strlenprog.en.md +++ b/subjects/strlenprog.en.md @@ -2,9 +2,9 @@ ### Instructions -- Write a program that counts the characters of a `string` and that returns that value. +- Write a program that counts the characters of a `string` and that returns that value. -- If the program receives more than one or no arguments it must not print anything. +- If the program receives more than one or no arguments it must not print anything. ### Expected output : diff --git a/subjects/strlenprog.fr.md b/subjects/strlenprog.fr.md index 38e44e77..c25f1c71 100644 --- a/subjects/strlenprog.fr.md +++ b/subjects/strlenprog.fr.md @@ -2,9 +2,9 @@ ### Instructions -- Écrire un programme qui compte le nombre de caractères d'une `string` et qui retourne le nombre trouvé. +- Écrire un programme qui compte le nombre de caractères d'une `string` et qui retourne le nombre trouvé. -- Si le programme reçoit plusieurs ou aucun arguments il ne doit rien afficher. +- Si le programme reçoit plusieurs ou aucun arguments il ne doit rien afficher. ### Utilisation : diff --git a/subjects/strrev.en.md b/subjects/strrev.en.md index 7b1855d0..d89e24f8 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 diff --git a/subjects/strrev.fr.md b/subjects/strrev.fr.md index 8aabdf63..84392a15 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 diff --git a/subjects/strrevprog.en.md b/subjects/strrevprog.en.md index ebda9a44..ad03cd1e 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 4a1f6241..60e92120 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 f443265f..8f93af12 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 diff --git a/subjects/swap.fr.md b/subjects/swap.fr.md index 54ae42fd..c0fed9fe 100644 --- a/subjects/swap.fr.md +++ b/subjects/swap.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire une fonction qui échange les contenus de deux **pointeurs sur entier** (`*int`). +- Écrire une fonction qui échange les contenus de deux **pointeurs sur entier** (`*int`). ### Fonction attendue diff --git a/subjects/switchcase.en.md b/subjects/switchcase.en.md index e54388fe..2fbfa0c1 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 c3749990..54049b14 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 newline(`'\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 newline(`'\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 bc30ea34..26a82218 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 4fbc2188..0c73b1b8 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/ultimatedivmod.en.md b/subjects/ultimatedivmod.en.md index e1184d8e..e21269b8 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,9 +12,9 @@ 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 diff --git a/subjects/ultimatepointone.en.md b/subjects/ultimatepointone.en.md index fc54a6a9..383ff3c8 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 diff --git a/subjects/ultimatepointone.fr.md b/subjects/ultimatepointone.fr.md index 58f08e1c..98bb863f 100644 --- a/subjects/ultimatepointone.fr.md +++ b/subjects/ultimatepointone.fr.md @@ -2,7 +2,7 @@ ### Instructions -- Écrire une fonction qui prend un **pointeur sur pointeur sur pointeur sur int** en argument et qui assignes à cet int la valeur 1. +- Écrire une fonction qui prend un **pointeur sur pointeur sur pointeur sur int** en argument et qui assignes à cet int la valeur 1. ### Fonction attendue diff --git a/subjects/union.en.md b/subjects/union.en.md index 7f91e252..719e0a4b 100644 --- a/subjects/union.en.md +++ b/subjects/union.en.md @@ -2,27 +2,25 @@ ### Instructions -Write a program that takes two `strings` and displays, without doubles, the -characters that appear in either one of the `strings`. +Write a program that takes two `string` and displays, without doubles, the characters that appear in either one of the `string`. -The display will be in the order characters appear in the command line, and -will be followed by a newline(`'\n'`). +The display will be in the order characters appear in the command line, and will be followed by a newline (`'\n'`). -If the number of arguments is different from 2, the program displays newline(`'\n'`). +If the number of arguments is different from 2, the program displays newline (`'\n'`). ### Usage ```console -student@ubuntu:~/student/union$ go build -student@ubuntu:~/student/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e +student@ubuntu:~/piscine-go/union$ go build +student@ubuntu:~/piscine-go/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e zpadintoqefwjy$ -student@ubuntu:~/student/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e +student@ubuntu:~/piscine-go/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e df6vewg4thras$ -student@ubuntu:~/student/union$ ./union "rien" "cette phrase ne cache rien" | cat -e +student@ubuntu:~/piscine-go/union$ ./union "rien" "cette phrase ne cache rien" | cat -e rienct phas$ -student@ubuntu:~/student/union$ ./union | cat -e +student@ubuntu:~/piscine-go/union$ ./union | cat -e $ -student@ubuntu:~/student/union$ ./union "rien" | cat -e +student@ubuntu:~/piscine-go/union$ ./union "rien" | cat -e $ -student@ubuntu:~/student/union$ +student@ubuntu:~/piscine-go/union$ ``` diff --git a/subjects/union.fr.md b/subjects/union.fr.md index e0af0af7..84e09228 100644 --- a/subjects/union.fr.md +++ b/subjects/union.fr.md @@ -2,25 +2,25 @@ ### Instructions -Écrire un programme qui prend deux `strings` et affiche, sans doublons, les caractères qui apparaissent dans l'une ou l'autre des `strings`. +Écrire un programme qui prend deux `string` et affiche, sans doublons, les caractères qui apparaissent dans l'une ou l'autre des `string`. -L'affichage se fera dans l'ordre d'apparition des caractères de la ligne de commande, et il sera suivi d'un newline(`'\n'`). +L'affichage se fera dans l'ordre d'apparition des caractères de la ligne de commande, et il sera suivi d'un retour à la ligne (`'\n'`). -Si le nombre d'arguments est différent de 2, le programme affiche un newline(`'\n'`). +Si le nombre d'arguments est différent de 2, le programme affiche un retour à la ligne (`'\n'`). ### Utilisation ```console -student@ubuntu:~/student/union$ go build -student@ubuntu:~/student/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e +student@ubuntu:~/piscine-go/union$ go build +student@ubuntu:~/piscine-go/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e zpadintoqefwjy$ -student@ubuntu:~/student/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e +student@ubuntu:~/piscine-go/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e df6vewg4thras$ -student@ubuntu:~/student/union$ ./union "rien" "cette phrase ne cache rien" | cat -e +student@ubuntu:~/piscine-go/union$ ./union "rien" "cette phrase ne cache rien" | cat -e rienct phas$ -student@ubuntu:~/student/union$ ./union | cat -e +student@ubuntu:~/piscine-go/union$ ./union | cat -e $ -student@ubuntu:~/student/union$ ./union "rien" | cat -e +student@ubuntu:~/piscine-go/union$ ./union "rien" | cat -e $ -student@ubuntu:~/student/union$ +student@ubuntu:~/piscine-go/union$ ``` diff --git a/subjects/unmatch.en.md b/subjects/unmatch.en.md index 565dde47..5812e624 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 diff --git a/subjects/wdmatch.en.md b/subjects/wdmatch.en.md index 4b535917..69683b17 100644 --- a/subjects/wdmatch.en.md +++ b/subjects/wdmatch.en.md @@ -2,11 +2,11 @@ ### Instructions -Write a program that takes two `strings` and checks whether it is possible to write the first `string` with characters from the second `string`, while respecting the order in which these characters appear in the second `string`. +Write a program that takes two `string` and checks whether it is possible to write the first `string` with characters from the second `string`, while respecting the order in which these characters appear in the second `string`. -- If it is possible, the program displays the `string` followed by a newline(`'\n'`), otherwise it simply displays a newline. +If it is possible, the program displays the `string` followed by a newline (`'\n'`), otherwise it simply displays a newline. -- If the number of arguments is different from 2, the program displays a newline. +If the number of arguments is different from 2, the program displays a newline. ### Usage diff --git a/subjects/wdmatch.fr.md b/subjects/wdmatch.fr.md index 66533e90..d9f13053 100644 --- a/subjects/wdmatch.fr.md +++ b/subjects/wdmatch.fr.md @@ -2,11 +2,11 @@ ### Instructions -Écrire un programme qui prend deux `strings` et vérifie si il est possible d'écrire la première `string` avec des caractères de la deuxième `string`, tout en respectant l'ordre dans lequel ces caractères apparaissent dans la deuxième `string`. +Écrire un programme qui prend deux `string` et vérifie si il est possible d'écrire la première `string` avec des caractères de la deuxième `string`, tout en respectant l'ordre dans lequel ces caractères apparaissent dans la deuxième `string`. -- Si cela est possible, le programme affiche la `string` suivie par un newline(`'\n'`), autrement le programme affiche un newline. +Si cela est possible, le programme affiche la `string` suivie par un retour à la ligne (`'\n'`), autrement le programme affiche un retour à la ligne. -- Si le nombre d'arguments est différent de 2, le programme affiche un newline. +Si le nombre d'arguments est différent de 2, le programme affiche un retour à la ligne. ### Utilisation diff --git a/subjects/who-are-you.en.md b/subjects/who-are-you.en.md index 36457c8c..79eff4e9 100644 --- a/subjects/who-are-you.en.md +++ b/subjects/who-are-you.en.md @@ -8,6 +8,6 @@ The only though that comes to your mind is a tag that says: `subject Id: 70`" Create the file `who-are-you.sh` which will remind you who you are by showing your name only. -- Where to look : https://raw.githubusercontent.com/kigiri/superhero-api/master/api/all.json +- Where to look : https://raw.githubusercontent.com/kigiri/superhero-api/master/api/all.json -- What to use : `curl` and `jq` +- What to use : `curl` and `jq` diff --git a/subjects/who-are-you.fr.md b/subjects/who-are-you.fr.md index e7cb90fe..3b03e925 100644 --- a/subjects/who-are-you.fr.md +++ b/subjects/who-are-you.fr.md @@ -8,6 +8,6 @@ Tout ce qui vous vient à l'esprit est une étiquette sur laquelle est écrite: Créer le fichier `who-are-you.sh` qui vous rappellera qui vous êtes en affichant votre Nom seulement. -- Où chercher : https://raw.githubusercontent.com/kigiri/superhero-api/master/api/all.json +- Où chercher : https://raw.githubusercontent.com/kigiri/superhero-api/master/api/all.json -- Quoi utiliser : `curl` et `jq` +- Quoi utiliser : `curl` et `jq` diff --git a/subjects/ztail.en.md b/subjects/ztail.en.md index 231235c5..c18e4e9c 100644 --- a/subjects/ztail.en.md +++ b/subjects/ztail.en.md @@ -4,10 +4,10 @@ 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). -- For more information consult the man page for `tail`. +- For more information consult the man page for `tail`. diff --git a/subjects/ztail.fr.md b/subjects/ztail.fr.md index 8166d287..f8885d57 100644 --- a/subjects/ztail.fr.md +++ b/subjects/ztail.fr.md @@ -4,10 +4,10 @@ Écrire un programme `ztail` qui a le même comportement que la ligne de commande `tail`, mais qui prend au moins 1 fichier comme argument. -- La seule option qui doit être géré est `-c`. Cette option sera utilisé dans tous les tests. +- La seule option qui doit être géré est `-c`. Cette option sera utilisé dans tous les tests. -- Pour ce programme le package "os" peut être utilisé. +- Pour ce programme le package "os" peut être utilisé. -- Pour que le programme passe les tests la convention pour le retour code de programme en systémes Unix devra être suivi(voir os.Exit). +- Pour que le programme passe les tests la convention pour le retour code de programme en systémes Unix devra être suivi(voir os.Exit). -- Pour plus d'informtations consulter la page du man de `tail`. +- Pour plus d'informtations consulter la page du man de `tail`.