Browse Source

fixes and translations

content-update
Christopher Fremond 5 years ago
parent
commit
bc98b14f7d
  1. 4
      subjects/abort.en.md
  2. 12
      subjects/abort.fr.md
  3. 2
      subjects/collatzcountdown.en.md
  4. 10
      subjects/collatzcountdown.fr.md
  5. 4
      subjects/rot14.en.md
  6. 12
      subjects/rot14.fr.md

4
subjects/abort.en.md

@ -2,9 +2,7 @@
### Instructions ### Instructions
Write a function that returns the value in the middle of 5 five arguments. Write a function that returns the median of 5 five arguments.
This function must have the following signature.
### Expected function ### Expected function

12
subjects/abort.fr.md

@ -2,11 +2,9 @@
### Instructions ### Instructions
Write a function that returns the the value in the middle of 5 five arguments. Écrire une fonction qui retournes la médiane de 5 arguments.
This function must have the following signature. ### Fonction attendue
### Expected function
```go ```go
func Abort(a, b, c, d, e int) int { func Abort(a, b, c, d, e int) int {
@ -14,9 +12,9 @@ func Abort(a, b, c, d, e 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 ```go
package main package main
@ -32,7 +30,7 @@ func main() {
} }
``` ```
And its output : Et son résultat :
```console ```console
student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ go build

2
subjects/collatzcountdown.en.md

@ -2,7 +2,7 @@
### Instructions ### Instructions
Write a function, CollatzCountdown, that returns the number of steps to reach 1 using the collatz countdown. Write a function, `CollatzCountdown`, that returns the number of steps necessary to reach 1 using the collatz countdown.
### Expected function ### Expected function

10
subjects/collatzcountdown.fr.md

@ -2,9 +2,9 @@
### Instructions ### Instructions
Write a function, CollatzCountdown, that returns the number of steps to reach 1 using the collatz countdown. Écrire une fonction, `CollatzCountdown`, qui retournes le nombre d'étapes nécéssaires pour atteindre 1 en utilisant le comptage de collatz.
### Expected function ### FOnction attendue
```go ```go
func CollatzCountdown(start int) int { func CollatzCountdown(start int) int {
@ -12,9 +12,9 @@ func CollatzCountdown(start 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 ```go
package main package main
@ -30,7 +30,7 @@ func main() {
} }
``` ```
And its output : Et son résultat :
```console ```console
student@ubuntu:~/student/test$ go build student@ubuntu:~/student/test$ go build

4
subjects/rot14.en.md

@ -2,9 +2,9 @@
### Instructions ### Instructions
Write a function `rot14` that returns the string within the parameter but transformed into a rot14 string. Write a function `rot14` that returns the `string` within the parameter transformed into a `rot14 string`.
- If you not certain what we are talking about, there is a rot13 already. - For more information look what `rot13` stands for.
### Expected function ### Expected function

12
subjects/rot14.fr.md

@ -2,11 +2,11 @@
### Instructions ### Instructions
Write a function `rot14` that returns the string within the parameter but transformed into a rot14 string. Écrire une fonction `rot14` qui retournes la `string` en paramètre transformée en `string rot14`.
- If you not certain what we are talking about, there is a rot13 already. - Pour plus d'informations chercher ce que `rot13` signifie.
### Expected function ### Fonction attendue
```go ```go
func Rot14(str string) string { func Rot14(str string) string {
@ -14,9 +14,9 @@ func Rot14(str string) string {
} }
``` ```
### Usage ### Utilisation
Here is a possible [program](TODO-LINK) to test your function : Voici un éventuel [programme](TODO-LINK) pour tester votre fonction :
```go ```go
package main package main
@ -37,7 +37,7 @@ func main() {
} }
``` ```
And its output : Et son résultat :
```console ```console
student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ go build

Loading…
Cancel
Save