diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index 96354229..44c5220d 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. +Write a function, `ActiveBits`, that returns the number of active `bits` (bits with the value 1) in the binary representation of an integer number. ### Expected function diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index 96354229..24e9de39 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -2,9 +2,9 @@ ### Instructions -Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. +Écrire une fonction, `ActiveBits`, qui retourne le nombre de `bits` actifs (`bits` ayant la valeur 1) dans la représentation binaire d'un nombre entier. -### Expected function +### Fonction attendue ```go func ActiveBits(n int) uint { @@ -12,9 +12,9 @@ func ActiveBits(n int) uint { } ``` -### Usage +### Utilisation -Here is a possible [program](TODO-LINK) to test your function : +Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : ```go package main @@ -30,7 +30,7 @@ func main() { } ``` -And its output : +Et son résultat : ```console student@ubuntu:~/piscine/test$ go build diff --git a/subjects/max.en.md b/subjects/max.en.md index a0ef04e8..5c8c44f0 100644 --- a/subjects/max.en.md +++ b/subjects/max.en.md @@ -2,9 +2,7 @@ ### Instructions -Write a function, Max, that returns the maximum value in a slice of integers - -The function must have the next signature. +Write a function, `Max`, that returns the maximum value in a slice of integers. ### Expected function diff --git a/subjects/max.fr.md b/subjects/max.fr.md index a0ef04e8..a7b688a7 100644 --- a/subjects/max.fr.md +++ b/subjects/max.fr.md @@ -2,11 +2,9 @@ ### Instructions -Write a function, Max, that returns the maximum value in a slice of integers +Écrire une fonction, `Max`, qui retourne la valeur maximum dans une slice d'entiers. -The function must have the next signature. - -### Expected function +### Fonction attendue ```go func Max(arr []int) int { @@ -14,9 +12,9 @@ func Max(arr []int) int { } ``` -### Usage +### Utilisation -Here is a possible [program](TODO-LINK) to test your function : +Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : ```go package main @@ -33,7 +31,7 @@ func main() { } ``` -And its output : +Et son résultat : ```console student@ubuntu:~/piscine/test$ go build diff --git a/subjects/unmatch.en.md b/subjects/unmatch.en.md index 13dd0fe7..3efd0bbf 100644 --- a/subjects/unmatch.en.md +++ b/subjects/unmatch.en.md @@ -1,8 +1,8 @@ -## join +## unmatch ### Instructions -Write a function, Unmatch, that returns the element of the slice (arr) that does not have a correspondent pair. +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`. diff --git a/subjects/unmatch.fr.md b/subjects/unmatch.fr.md index afbe285c..9818a1b2 100644 --- a/subjects/unmatch.fr.md +++ b/subjects/unmatch.fr.md @@ -1,10 +1,10 @@ -## join +## unmatch ### Instructions -Write a function, Unmatch, that returns the element of the slice (arr) that does not have a correspondent pair. +Écrire une fonction, `Unmatch`, qui retourne l'élément de la slice (arr) qui n'a pas de paire correspondante. -### Expected function +### Fonction attendue ```go func Unmatch(arr []int) int { @@ -12,9 +12,9 @@ func Unmatch(arr []int) int { } ``` -### Usage +### Utilisation -Here is a possible [program](TODO-LINK) to test your function : +Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : ```go package main @@ -31,7 +31,7 @@ func main() { } ``` -And its output : +Et son résultat : ```console student@ubuntu:~/piscine/test$ go build