diff --git a/subjects/advancedsortwordarr.en.md b/subjects/advancedsortwordarr.en.md index f0648ca1..c6f7921d 100644 --- a/subjects/advancedsortwordarr.en.md +++ b/subjects/advancedsortwordarr.en.md @@ -1,17 +1,17 @@ -# advancedsortwordarr +## advancedsortwordarr -## Instructions +### Instructions Write a function `AdvancedSortWordArr` that sorts a `string` array, based on the function `f` passed in parameter. -## Expected function +### Expected function ```go func AdvancedSortWordTab(array []string, f func(a, b string) int) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/advancedsortwordarr.fr.md b/subjects/advancedsortwordarr.fr.md index 770992d3..71920f52 100644 --- a/subjects/advancedsortwordarr.fr.md +++ b/subjects/advancedsortwordarr.fr.md @@ -1,17 +1,17 @@ -# advancedsortwordarr +## advancedsortwordarr -## Instructions +### Instructions Écrire une fonction `AdvancedSortWordArr` qui trie un tableau de `string`, basé sur la fonction `f` passée en paramètre. -## Fonction attendue +### Fonction attendue ```go func AdvancedSortWordTab(array []string, f func(a, b string) int) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/advancedsortwordtab.en.md b/subjects/advancedsortwordtab.en.md index 0b44d5c6..e05f3ae5 100644 --- a/subjects/advancedsortwordtab.en.md +++ b/subjects/advancedsortwordtab.en.md @@ -1 +1 @@ -# advancedsortwordtab +## advancedsortwordtab diff --git a/subjects/any.en.md b/subjects/any.en.md index 52c4da66..4f94fdad 100644 --- a/subjects/any.en.md +++ b/subjects/any.en.md @@ -1,19 +1,19 @@ -# any +## any -## Instructions +### Instructions 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`. -## Expected function +### Expected function ```go func Any(f func(string) bool, arr []string) bool { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/any.fr.md b/subjects/any.fr.md index 4386ea98..77afa5a1 100644 --- a/subjects/any.fr.md +++ b/subjects/any.fr.md @@ -1,19 +1,19 @@ -# any +## any -## Instructions +### Instructions Écrire une fonction `Any` qui retournes `true`, pour un tableau de `string`: - si, lorsque ce tableau de `string` est passé à travers une fonction `f`, au moins un element retournes `true`. -## Fonction attendue +### Fonction attendue ```go func Any(f func(string) bool, arr []string) bool { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/appendrange.en.md b/subjects/appendrange.en.md index 1748c0d8..a521a708 100644 --- a/subjects/appendrange.en.md +++ b/subjects/appendrange.en.md @@ -1,6 +1,6 @@ -# appendrange +## appendrange -## Instructions +### 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. @@ -11,7 +11,7 @@ If min is superior or equal to max, a `nil` slice is returned. `make` is not allowed for this exercise. -## Expected function +### Expected function ```go func AppendRange(min, max int) []int { @@ -19,7 +19,7 @@ func AppendRange(min, max int) []int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/appendrange.fr.md b/subjects/appendrange.fr.md index b9ebd3dd..801e060f 100644 --- a/subjects/appendrange.fr.md +++ b/subjects/appendrange.fr.md @@ -1,6 +1,6 @@ -# appendrange +## appendrange -## Instructions +### 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. @@ -10,7 +10,7 @@ Si le minimum est supérieur ou égal au maximum, une slice `nil` est retournée `make` n'est pas autorisé pour cet exercice. -## Fonction attendue +### Fonction attendue ```go func AppendRange(min, max int) []int { @@ -18,7 +18,7 @@ func AppendRange(min, max int) []int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/atoi.en.md b/subjects/atoi.en.md index 97caea2f..64271f6d 100755 --- a/subjects/atoi.en.md +++ b/subjects/atoi.en.md @@ -1,6 +1,6 @@ -# atoi +## atoi -## Instructions +### 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`. @@ -10,7 +10,7 @@ - This function will **only** have to return the `int` `nbr`. For this exercise the `error` return of atoi is not required. -## Format required +### Format required ```go func Atoi(s string) int { @@ -18,7 +18,7 @@ func Atoi(s string) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/atoi.fr.md b/subjects/atoi.fr.md index b8556987..4ccbff94 100755 --- a/subjects/atoi.fr.md +++ b/subjects/atoi.fr.md @@ -1,6 +1,6 @@ -# atoi +## atoi -## Instructions +### 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). @@ -10,7 +10,7 @@ - Cette fonction aura **seulement** à retourner l'`int` (entier) `nbr`. Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. -## Fonction attendue +### Fonction attendue ```go func Atoi(s string) int { @@ -18,7 +18,7 @@ func Atoi(s string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/atoibase.en.md b/subjects/atoibase.en.md index 5b8a5dc3..f582db42 100644 --- a/subjects/atoibase.en.md +++ b/subjects/atoibase.en.md @@ -1,6 +1,6 @@ -# atoibase +## atoibase -## Instructions +### Instructions Write a function that takes a `string` number and its `string` base in parameters and returns its conversion as an `int`. @@ -16,7 +16,7 @@ Only valid `string` numbers will be tested. The function **does not have** to manage negative numbers. -## Expected function +### Expected function ```go func AtoiBase(s string, base string) int { @@ -24,7 +24,7 @@ func AtoiBase(s string, base string) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/atoibase.fr.md b/subjects/atoibase.fr.md index c0cf4eeb..a6960561 100644 --- a/subjects/atoibase.fr.md +++ b/subjects/atoibase.fr.md @@ -1,6 +1,6 @@ -# atoibase +## atoibase -## Instructions +### Instructions Écrire une fonction qui prend un nombre `string` et sa base `string` en paramètres et retournes sa convertion en `int`. @@ -16,7 +16,7 @@ Seuls des nombres en `string` valides seront testés. La fonction **ne doit pas** gérer les nombres négatifs. -## Fonction attendue +### Fonction attendue ```go func AtoiBase(s string, base string) int { @@ -24,7 +24,7 @@ func AtoiBase(s string, base string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/basicatoi.en.md b/subjects/basicatoi.en.md index 3612f57d..37685d33 100755 --- a/subjects/basicatoi.en.md +++ b/subjects/basicatoi.en.md @@ -1,6 +1,6 @@ -# basicatoi +## basicatoi -## Instructions +### 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`. @@ -10,7 +10,7 @@ - This function will **only** have to return the `int` `nbr`. For this exercise the `error` return of atoi is not required. -## Expected function +### Expected function ```go func BasicAtoi(s string) int { @@ -18,7 +18,7 @@ func BasicAtoi(s string) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/basicatoi.fr.md b/subjects/basicatoi.fr.md index 247d07ff..1f9f0283 100755 --- a/subjects/basicatoi.fr.md +++ b/subjects/basicatoi.fr.md @@ -1,6 +1,6 @@ -# basicatoi +## basicatoi -## Instructions +### 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). @@ -10,7 +10,7 @@ - Cette fonction aura **seulement** à retourner l'`int` (entier) `nbr`. Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. -## Fonction attendue +### Fonction attendue ```go func BasicAtoi(s string) int { @@ -18,7 +18,7 @@ func BasicAtoi(s string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/basicatoi2.en.md b/subjects/basicatoi2.en.md index 29e70d7c..16ba8ed3 100755 --- a/subjects/basicatoi2.en.md +++ b/subjects/basicatoi2.en.md @@ -1,6 +1,6 @@ -# basicatoi2 +## basicatoi2 -## Instructions +### 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`. @@ -10,7 +10,7 @@ - This function will **only** have to return the `int` `nbr`. For this exercise the `error` return of atoi is not required. -## Expected Function +### Expected Function ```go func BasicAtoi2(s string) int { @@ -18,7 +18,7 @@ func BasicAtoi2(s string) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/basicatoi2.fr.md b/subjects/basicatoi2.fr.md index 01e5249a..7c9e0113 100755 --- a/subjects/basicatoi2.fr.md +++ b/subjects/basicatoi2.fr.md @@ -1,6 +1,6 @@ -# basicatoi2 +## basicatoi2 -## Instructions +### 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). @@ -10,7 +10,7 @@ - Cette fonction aura **seulement** à retourner l'`int` (entier) `nbr`. Pour cet exercice le retour d'erreur d'atoi de go n'est pas demandé. -## Fonction attendue +### Fonction attendue ```go func BasicAtoi2(s string) int { @@ -18,7 +18,7 @@ func BasicAtoi2(s string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/basicjoin.en.md b/subjects/basicjoin.en.md index e9fbd235..b1cfa29c 100644 --- a/subjects/basicjoin.en.md +++ b/subjects/basicjoin.en.md @@ -1,10 +1,10 @@ -# basicjoin +## basicjoin -## Instructions +### Instructions Write a function that returns the concatenation of all the `string` of a table of `string` passed in argument. -## Expected function +### Expected function ```go func basicJoin(strs []string) string { @@ -12,7 +12,7 @@ func basicJoin(strs []string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/basicjoin.fr.md b/subjects/basicjoin.fr.md index 79086371..8b1921c0 100644 --- a/subjects/basicjoin.fr.md +++ b/subjects/basicjoin.fr.md @@ -1,10 +1,10 @@ -# basicjoin +## basicjoin -## Instructions +### Instructions Écrire une fonction qui retourne la concaténation de toutes les `string` d'un slice de `string` passées en paramètres. -## Fonction attendue +### Fonction attendue ```go func BasicJoin(strs []string) string { @@ -12,7 +12,7 @@ func BasicJoin(strs []string) string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/btreeapplyinorder.en.md b/subjects/btreeapplyinorder.en.md index 5ade026d..25cc36a9 100644 --- a/subjects/btreeapplyinorder.en.md +++ b/subjects/btreeapplyinorder.en.md @@ -1,11 +1,11 @@ -# btreeinsertdata +## btreeinsertdata -## Instructions +### Instructions Write a function that applies a function in order to each element in the tree (see in order tree walks) -## Expected function +### Expected function ```go func BTreeApplyInorder(root *piscine.TreeNode, f func(...interface{}) (int, error)) { @@ -13,7 +13,7 @@ func BTreeApplyInorder(root *piscine.TreeNode, f func(...interface{}) (int, erro } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/btreeapplypostorder.en.md b/subjects/btreeapplypostorder.en.md index e915d652..e386d350 100644 --- a/subjects/btreeapplypostorder.en.md +++ b/subjects/btreeapplypostorder.en.md @@ -1,10 +1,10 @@ -# btreeinsertdata +## btreeinsertdata -## Instructions +### Instructions Write a function that applies a function using a postorder walk to each element in the tree -## Expected function +### Expected function ```go func BTreeApplyPostorder(root *piscine.TreeNode, f func(...interface{}) (int, error)) { @@ -12,7 +12,7 @@ func BTreeApplyPostorder(root *piscine.TreeNode, f func(...interface{}) (int, er } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/btreeapplypreorder.en.md b/subjects/btreeapplypreorder.en.md index f5e148b9..bbc17b7a 100644 --- a/subjects/btreeapplypreorder.en.md +++ b/subjects/btreeapplypreorder.en.md @@ -1,10 +1,10 @@ -# btreeinsertdata +## btreeinsertdata -## Instructions +### Instructions Write a function that applies a function using a preorder walk to each element in the tree -## Expected function +### Expected function ```go func BTreeApplyPreorder(root *piscine.TreeNode, f func(...interface{}) (int, error)) { @@ -12,7 +12,7 @@ func BTreeApplyPreorder(root *piscine.TreeNode, f func(...interface{}) (int, err } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/btreeinsertdata.en.md b/subjects/btreeinsertdata.en.md index 740bd9bc..ff319c89 100644 --- a/subjects/btreeinsertdata.en.md +++ b/subjects/btreeinsertdata.en.md @@ -1,12 +1,12 @@ -# btreeinsertdata +## btreeinsertdata -## Instructions +### 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: -## Expected function +### Expected function ```go type TreeNode struct { @@ -19,7 +19,7 @@ func BTreeInsertData(root *TreeNode, data string) *TreeNode { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/btreeprintroot.en.md b/subjects/btreeprintroot.en.md index a742778f..433578ac 100644 --- a/subjects/btreeprintroot.en.md +++ b/subjects/btreeprintroot.en.md @@ -1,12 +1,12 @@ -# printroot +## printroot -## Instructions +### Instructions Write a function to print the value of the root node of a binary tree. You have to create a new number and print the value of data The nodes must be defined as follows: -## Expected function +### Expected function ```go type TreeNode struct { @@ -19,7 +19,7 @@ func PrintRoot(root *TreeNode){ } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/btreesearchitem.en.md b/subjects/btreesearchitem.en.md index 99c9f811..abe4491e 100644 --- a/subjects/btreesearchitem.en.md +++ b/subjects/btreesearchitem.en.md @@ -1,10 +1,10 @@ -# btreeinsertdata +## btreeinsertdata -## Instructions +### Instructions Write a function that searches for an item with a data element equal to elem and return that node -## Expected function +### Expected function ```go func BTreeSearchItem(root *piscine_test.TreeNode, elem string) *piscine_test.TreeNode { @@ -13,7 +13,7 @@ func BTreeSearchItem(root *piscine_test.TreeNode, elem string) *piscine_test.Tre ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/capitalize.en.md b/subjects/capitalize.en.md index 3cea1000..44f4d647 100644 --- a/subjects/capitalize.en.md +++ b/subjects/capitalize.en.md @@ -1,12 +1,12 @@ -# capitalize +## capitalize -## Instructions +### Instructions Write a function 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. -## Expected function +### Expected function ```go func Capitalize(s string) string { @@ -14,7 +14,7 @@ func Capitalize(s string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/capitalize.fr.md b/subjects/capitalize.fr.md index fb93ab59..526660aa 100644 --- a/subjects/capitalize.fr.md +++ b/subjects/capitalize.fr.md @@ -1,12 +1,12 @@ -# capitalize +## capitalize -## Instructions +### Instructions Écrire une fonction qui met en majuscule la premiere 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**. -## Fonction attendue +### Fonction attendue ```go func Capitalize(s string) string { @@ -14,7 +14,7 @@ func Capitalize(s string) string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/cl-camp1.en.md b/subjects/cl-camp1.en.md index e7bce7c0..866ff1a3 100644 --- a/subjects/cl-camp1.en.md +++ b/subjects/cl-camp1.en.md @@ -1,6 +1,6 @@ -# cl-camp1 +## cl-camp1 -## Instructions +### Instructions A little voice speaks in your head: @@ -16,6 +16,6 @@ Put in a file `mastertheLS` the command line that will: - Order them by ascending order of creation date. - Have the folders have a `/` in front of them. -## Hint +### Hint Read the man... diff --git a/subjects/cl-camp1.fr.md b/subjects/cl-camp1.fr.md index 35cf9aec..8ffabc99 100644 --- a/subjects/cl-camp1.fr.md +++ b/subjects/cl-camp1.fr.md @@ -1,6 +1,6 @@ -# cl-camp1 +## cl-camp1 -## Instructions +### Instructions Une petite voix dans votre esprit vous dit: @@ -16,6 +16,6 @@ Mettez dans un fichier `mastertheLS` la ligne de commande qui: - Les triera pas ordre croissant de date de création. - Placera un `/` en face des dossiers. -## Indice +### Indice Lisez le man... diff --git a/subjects/cl-camp2.en.md b/subjects/cl-camp2.en.md index a2d3399e..9f7e7cca 100644 --- a/subjects/cl-camp2.en.md +++ b/subjects/cl-camp2.en.md @@ -1,6 +1,6 @@ -# cl-camp2 +## cl-camp2 -## Instructions +### Instructions "keep training ..." @@ -8,7 +8,7 @@ Create a file `r`, which shows `R` on a line when the `cat` command is executed A line is a sequence of characters preceding the [end of line](https://en.wikipedia.org/wiki/Newline) character (`'\n'`). -## Usage +### Usage ```console student@ubuntu:~/piscine/test$ cat -e r diff --git a/subjects/cl-camp2.fr.md b/subjects/cl-camp2.fr.md index 2296afa9..3442b3c2 100644 --- a/subjects/cl-camp2.fr.md +++ b/subjects/cl-camp2.fr.md @@ -1,6 +1,6 @@ -# cl-camp2 +## cl-camp2 -## Instructions +### Instructions "Continue l'entrainement ..." @@ -8,7 +8,7 @@ Créez un fichier `r`, qui affiche `R` sur une ligne quand la commande `cat` com Une ligne est une suite de caractères précédant le caractère [fin de ligne](https://en.wikipedia.org/wiki/Newline) (`'\n'`). -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/test$ cat -e r diff --git a/subjects/cl-camp3.en.md b/subjects/cl-camp3.en.md index 5a049a67..9fd36115 100644 --- a/subjects/cl-camp3.en.md +++ b/subjects/cl-camp3.en.md @@ -1,6 +1,6 @@ -# cl-camp3 +## cl-camp3 -## Instructions +### Instructions "start looking ..." @@ -10,6 +10,6 @@ Create a file `look`, which will look for and show, in the current directory and - all the files ending with a `z` and, - all files starting with `z` and ending with `a!`. -## Hint +### Hint Read the `find` man... diff --git a/subjects/cl-camp3.fr.md b/subjects/cl-camp3.fr.md index ad24c717..7b420ffd 100644 --- a/subjects/cl-camp3.fr.md +++ b/subjects/cl-camp3.fr.md @@ -1,6 +1,6 @@ -# cl-camp3 +## cl-camp3 -## Instructions +### Instructions "commences à chercher ..." diff --git a/subjects/cl-camp4.en.md b/subjects/cl-camp4.en.md index 381e5971..0ffc7771 100644 --- a/subjects/cl-camp4.en.md +++ b/subjects/cl-camp4.en.md @@ -1,6 +1,6 @@ -# cl-camp4 +## cl-camp4 -## Instructions +### Instructions "someone familiar" @@ -14,7 +14,7 @@ Create a file `myfamily.sh`, which will show a subject's family (key: relatives) * What to use : curl, jq and others... -## Usage +### Usage ```console student@ubuntu:~/piscine/test$ export HERO_ID=1 diff --git a/subjects/cl-camp4.fr.md b/subjects/cl-camp4.fr.md index 74144923..d57fd2d3 100644 --- a/subjects/cl-camp4.fr.md +++ b/subjects/cl-camp4.fr.md @@ -1,6 +1,6 @@ -# cl-camp4 +## cl-camp4 -## Instructions +### Instructions "quelqu'un de familier" @@ -14,7 +14,7 @@ Créer un fichier `myfamily.sh`, qui montrera qui affichera la famille d'un indi * Quoi utiliser : `curl`, `jq` et d'autres... -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/test$ export HERO_ID=1 diff --git a/subjects/cl-camp5.en.md b/subjects/cl-camp5.en.md index c46ea4e9..36ad3bc0 100644 --- a/subjects/cl-camp5.en.md +++ b/subjects/cl-camp5.en.md @@ -1,6 +1,6 @@ -# cl-camp5 +## cl-camp5 -## Instructions +### Instructions "keep looking..." @@ -10,7 +10,7 @@ Create a file `lookagain.sh`, which will look for, from the current directory an That command will only show the name of the files without the `.sh`. -## Usage +### Usage ```console student@ubuntu:~/piscine/test$ export HERO_ID=1 @@ -21,6 +21,6 @@ file3$ student@ubuntu:~/piscine/test$ ``` -## Hint +### Hint A little `cut`ing might be useful... diff --git a/subjects/cl-camp5.fr.md b/subjects/cl-camp5.fr.md index 08d57ac6..cb1d0555 100644 --- a/subjects/cl-camp5.fr.md +++ b/subjects/cl-camp5.fr.md @@ -1,6 +1,6 @@ -# cl-camp5 +## cl-camp5 -## Instructions +### Instructions "continues à chercher..." @@ -10,7 +10,7 @@ Créer un fichier `lookagain.sh`, qui cherchera et montrera, dans le répertoire Cette commande montrera le nom des fichiers sans le`.sh`. -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/test$ export HERO_ID=1 @@ -21,6 +21,6 @@ file3$ student@ubuntu:~/piscine/test$ ``` -## Indice +### Indice Un petit `cut`ter pourrait être utile... diff --git a/subjects/cl-camp6.en.md b/subjects/cl-camp6.en.md index d5aaf854..bb2161c0 100644 --- a/subjects/cl-camp6.en.md +++ b/subjects/cl-camp6.en.md @@ -1,12 +1,12 @@ -# cl-camp6 +## cl-camp6 -## Instructions +### Instructions "Now, do your inventory" Create a file `countfiles.sh`, which will print the number **(and only the number)** of regular files and folders cointaned in the current directory and its sub-folders : -## Usage +### Usage ```console student@ubuntu:~/piscine/test$ ./countfiles.sh | cat -e diff --git a/subjects/cl-camp6.fr.md b/subjects/cl-camp6.fr.md index 5d347843..80f3f162 100644 --- a/subjects/cl-camp6.fr.md +++ b/subjects/cl-camp6.fr.md @@ -1,12 +1,12 @@ -# cl-camp6 +## cl-camp6 -## Instructions +### Instructions "Maintenant, fais ton inventaire" Créer un fichier `countfiles.sh`, qui affichera will lenombre **(et seulement le nombre)** de fichiers réguliers et répertoires contenu dans le répertoire courant et ses sous-répertoires : -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/test$ ./countfiles.sh | cat -e diff --git a/subjects/cl-camp7.en.md b/subjects/cl-camp7.en.md index 6b1e5b02..bbbfabed 100644 --- a/subjects/cl-camp7.en.md +++ b/subjects/cl-camp7.en.md @@ -1,12 +1,12 @@ -# cl-camp7 +## cl-camp7 -## Instructions +### Instructions "Be accurate" Create a file `"\?$*'ChouMi'*$?\"` that will contain "01" and **nothing else**. -## Usage +### Usage ```console student@ubuntu:~/piscine/test$ ls | cat -e diff --git a/subjects/cl-camp7.fr.md b/subjects/cl-camp7.fr.md index 81a8123d..c316524b 100644 --- a/subjects/cl-camp7.fr.md +++ b/subjects/cl-camp7.fr.md @@ -1,12 +1,12 @@ -# cl-camp7 +## cl-camp7 -## Instructions +### Instructions "Sois précis" Créer un fichier `"\?$*'ChouMi'*$?\"` qui contiendra "01" et **rien d'autre**. -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/test$ ls | cat -e diff --git a/subjects/cl-camp8.en.md b/subjects/cl-camp8.en.md index 1a419c32..4749229d 100644 --- a/subjects/cl-camp8.en.md +++ b/subjects/cl-camp8.en.md @@ -1,11 +1,11 @@ -# cl-camp8 +## cl-camp8 -## Instructions +### Instructions "pick your equipment" Write a command line in a `skip.sh` file that prints the result of a `ls -l` skipping 1 line out of 2, starting with the **first** one. -## Hint +### Hint `awk` or `sed` can do the job. diff --git a/subjects/cl-camp8.fr.md b/subjects/cl-camp8.fr.md index 4f285aa9..95d9a135 100644 --- a/subjects/cl-camp8.fr.md +++ b/subjects/cl-camp8.fr.md @@ -1,11 +1,11 @@ -# cl-camp8 +## cl-camp8 -## Instructions +### Instructions "Choisis ton équipement" écrire une ligne dans un fichier `skip.sh` qui affiche le résultat d'un `ls -l` qui saute 1 ligne sur 2, en commençant pas la **première**. -## Indice +### Indice `awk` ou `sed` peuvent faire le travail. diff --git a/subjects/cl.en.md b/subjects/cl.en.md index e7bce7c0..866ff1a3 100644 --- a/subjects/cl.en.md +++ b/subjects/cl.en.md @@ -1,6 +1,6 @@ -# cl-camp1 +## cl-camp1 -## Instructions +### Instructions A little voice speaks in your head: @@ -16,6 +16,6 @@ Put in a file `mastertheLS` the command line that will: - Order them by ascending order of creation date. - Have the folders have a `/` in front of them. -## Hint +### Hint Read the man... diff --git a/subjects/commandments.en.md b/subjects/commandments.en.md index d62b1098..e2fe4082 100644 --- a/subjects/commandments.en.md +++ b/subjects/commandments.en.md @@ -6,7 +6,7 @@ objectives: reading the rules skills: git, github, reading --- -# commandments +## commandments A few basic principles to follow @@ -14,7 +14,7 @@ A few basic principles to follow

-## The Commandements _(read them)_ +### The Commandements _(read them)_ - Le numérique est ta passion. @@ -100,7 +100,7 @@ A few basic principles to follow - Si tu t’interroges ou ne comprends pas nos choix pédagogiques, demande nous. On ne fait généralement rien au hasard. -## Required +### Required You [clone](http://lmgtfy.com/?q=git+clone) your [fork](http://lmgtfy.com/?q=github+fork) of this [repository](http://lmgtfy.com/?q=git+repository) and in it, you must create a file named `turn_in` () in which you write EXACTLY the following sentence ending by a line break. @@ -109,6 +109,6 @@ and in it, you must create a file named `turn_in` () in which you write EXACTLY

-## Submiting your solution +### Submiting your solution Your work should be commited and pushed in the master branch of your own fork of this repository. diff --git a/subjects/compare.en.md b/subjects/compare.en.md index e40ff803..9133ea0c 100644 --- a/subjects/compare.en.md +++ b/subjects/compare.en.md @@ -1,10 +1,10 @@ -# compare +## compare -## Instructions +### Instructions Write a function that behaves like the [`Compare`](https://golang.org/pkg/strings/#Compare) function. -## Expected function +### Expected function ```go func Compare(a, b string) int { @@ -12,7 +12,7 @@ func Compare(a, b string) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/compare.fr.md b/subjects/compare.fr.md index a5fe8d4f..9f27f0c0 100644 --- a/subjects/compare.fr.md +++ b/subjects/compare.fr.md @@ -1,10 +1,10 @@ -# compare +## compare -## Instructions +### Instructions Écrire une fonction qui se comporte comme la fonction [`Compare`](https://golang.org/pkg/strings/#Compare). -## Fonction attendue +### Fonction attendue ```go func Compare(a, b string) int { @@ -12,7 +12,7 @@ func Compare(a, b string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/concat.en.md b/subjects/concat.en.md index 31e99ceb..c5b4644c 100644 --- a/subjects/concat.en.md +++ b/subjects/concat.en.md @@ -1,10 +1,10 @@ -# concat +## concat -## Instructions +### Instructions Write a function that returns the concatenation of two `string` passed in arguments. -## Expected function +### Expected function ```go func Concat(str1 string, str2 string) string { @@ -12,7 +12,7 @@ func Concat(str1 string, str2 string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/concat.fr.md b/subjects/concat.fr.md index fcacfdfa..20f7feeb 100644 --- a/subjects/concat.fr.md +++ b/subjects/concat.fr.md @@ -1,10 +1,10 @@ -# concat +## concat -## Instructions +### Instructions Écrire une fonction qui retourne la concaténation de deux `string` passées en paramètres. -## Fonction attendue +### Fonction attendue ```go func Concat(str1 string, str2 string) string { @@ -12,7 +12,7 @@ func Concat(str1 string, str2 string) string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/concatparams.en.md b/subjects/concatparams.en.md index cc996d63..b9425ecd 100644 --- a/subjects/concatparams.en.md +++ b/subjects/concatparams.en.md @@ -1,19 +1,19 @@ -# concatparams +## concatparams -## Instructions +### Instructions Write a function that takes the arguments reveived in parameters and returns them as a `string`. The arguments must be **separated** by a `\n`. -## Expected function +### Expected function ```go func ConcatParams(args []string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/concatparams.fr.md b/subjects/concatparams.fr.md index a9584ede..b5e5084c 100644 --- a/subjects/concatparams.fr.md +++ b/subjects/concatparams.fr.md @@ -1,19 +1,19 @@ -# concatparams +## concatparams -## Instructions +### Instructions Écrire une fonction qui prend les arguments en paramètres et les retournes dans une `string`. Les arguments doivent être **séparés** par un `\n`. -## Fonction attendue +### Fonction attendue ```go func ConcatParams(args []string) string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/convertbase.en.md b/subjects/convertbase.en.md index f82550b3..760e3453 100644 --- a/subjects/convertbase.en.md +++ b/subjects/convertbase.en.md @@ -1,6 +1,6 @@ -# convertbase +## convertbase -## Instructions +### Instructions Write a function that returns the convertion of a `string` number from one `string` baseFrom to one `string` baseTo. @@ -8,14 +8,14 @@ Only valid bases will be tested. Negative numbers will not be tested. -## Expected function +### Expected function ```go func ConvertBase(nbr, baseFrom, baseTo string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/convertbase.fr.md b/subjects/convertbase.fr.md index 45da7f30..76899372 100644 --- a/subjects/convertbase.fr.md +++ b/subjects/convertbase.fr.md @@ -1,6 +1,6 @@ -# convertbase +## convertbase -## Instructions +### Instructions Écrire une fonction qui retourne la convertion d'un nombre `string` d'une baseFrom `string` à une baseTo `string`. @@ -8,14 +8,14 @@ Seules des bases valides seront testées. Les nombres négatifs ne seront pas testés. -## Fonction attendue +### Fonction attendue ```go func ConvertBase(nbr, baseFrom, baseTo string) string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/countif.en.md b/subjects/countif.en.md index 87105d0b..234987de 100644 --- a/subjects/countif.en.md +++ b/subjects/countif.en.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Write a function `CountIf` that returns the number of elements of a `string` array for which the `f` function returns `true`. -## Expected function +### Expected function ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/countif.fr.md b/subjects/countif.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/countif.fr.md +++ b/subjects/countif.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/divmod.en.md b/subjects/divmod.en.md index 535108f8..1deb4ce1 100755 --- a/subjects/divmod.en.md +++ b/subjects/divmod.en.md @@ -1,10 +1,10 @@ -# divmod +## divmod -## Instructions +### Instructions - Write a function that will be formatted as below. -## Expected function +### Expected function ```go func DivMod(a int, b int, div *int, mod *int) { @@ -16,7 +16,7 @@ func DivMod(a int, b int, div *int, mod *int) { - 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 +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/divmod.fr.md b/subjects/divmod.fr.md index 90b9c353..5af68c2f 100755 --- a/subjects/divmod.fr.md +++ b/subjects/divmod.fr.md @@ -1,10 +1,10 @@ -# divmod +## divmod -## Instructions +### Instructions - Écrire une fonction qui aura le format ci-dessous. -## Fonction attendue +### Fonction attendue ```go func DivMod(a int, b int, div *int, mod *int) { @@ -16,7 +16,7 @@ func DivMod(a int, b int, div *int, mod *int) { - 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 +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/doop.en.md b/subjects/doop.en.md index f870fced..21c48d3d 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -1,6 +1,6 @@ -# doop +## doop -## Instructions +### Instructions Write a [program](TODO-LINK) that is called `doop`. @@ -16,7 +16,7 @@ In case of an invalid number of arguments the program prints nothing. `fmt.Print` is authorized. -## Usage +### Usage ```console student@ubuntu:~/piscine/test$ go build doop.go diff --git a/subjects/doop.fr.md b/subjects/doop.fr.md index 0d11ae53..8acbf79e 100644 --- a/subjects/doop.fr.md +++ b/subjects/doop.fr.md @@ -1,6 +1,6 @@ -# doop +## doop -## Instructions +### Instructions Écrire un [programme](TODO-LINK) qui s'apelle `doop`. @@ -16,7 +16,7 @@ En cas de nombre invalide d'arguments le programme affiche rien. `fmt.Print` est autorisé. -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/test$ go build doop.go diff --git a/subjects/eightqueens.en.md b/subjects/eightqueens.en.md index b90d7946..9964bfdd 100644 --- a/subjects/eightqueens.en.md +++ b/subjects/eightqueens.en.md @@ -1,6 +1,6 @@ -# eightqueens +## eightqueens -## Intructions +### Intructions Write a function that prints the solutions to the [eight queens puzzle](https://en.wikipedia.org/wiki/Eight_queens_puzzle). @@ -22,7 +22,7 @@ The index of the placement of a queen starts at 1. It reads from left to right and each digit is the position for each column. The solutions will be printed in ascending order. -## Expected function +### Expected function ```go package main diff --git a/subjects/eightqueens.fr.md b/subjects/eightqueens.fr.md index bd418b21..927baa65 100644 --- a/subjects/eightqueens.fr.md +++ b/subjects/eightqueens.fr.md @@ -1,6 +1,6 @@ -# eightqueens +## eightqueens -## Intructions +### Intructions Écrire une [fonction](TODO-LINK) qui affiche toutes les solutions du [problème des huit dames](https://en.wikipedia.org/wiki/Eight_queens_puzzle). @@ -22,7 +22,7 @@ L'index du placement d'une reine commence à 1. Elle se lit de gauche à droite et chaque chiffre est la position pour chacune des colonnes. Les solutions seront affichées dans l'ordre croissant. -## Fonction attendue +### Fonction attendue ```go package main diff --git a/subjects/fibonacci.en.md b/subjects/fibonacci.en.md index abc673da..47ad3862 100644 --- a/subjects/fibonacci.en.md +++ b/subjects/fibonacci.en.md @@ -1,6 +1,6 @@ -# fibonacci +## fibonacci -## Intructions +### Intructions Write an **recursive** function that returns the value of fibonacci sequence matching the index passed as parameter. @@ -12,7 +12,7 @@ A negative index will return `-1`. `for` is **forbidden** for this exercise. -## Expected function +### Expected function ```go package main @@ -22,7 +22,7 @@ func Fibonacci(int index) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/fibonacci.fr.md b/subjects/fibonacci.fr.md index d0b949f9..c6b5b0a2 100644 --- a/subjects/fibonacci.fr.md +++ b/subjects/fibonacci.fr.md @@ -1,6 +1,6 @@ -# fibonacci +## fibonacci -## Intructions +### Intructions Écrire une fonction **récursive** qui renvoie la valeur de la suite de fibonacci correspondant à l'index passé en paramètre. @@ -12,7 +12,7 @@ Un index négatif renvoie `-1`. `for` est **interdit** pour cet exercice. -## Fonction attendue +### Fonction attendue ```go package main @@ -22,7 +22,7 @@ func Fibonacci(int index) int { } ``` -## Utilisation +### Utilisation Voici un éventuel `main.go` : diff --git a/subjects/findnextprime.en.md b/subjects/findnextprime.en.md index a612340c..5743622f 100644 --- a/subjects/findnextprime.en.md +++ b/subjects/findnextprime.en.md @@ -1,10 +1,10 @@ -# findnextprime +## findnextprime -## Intructions +### Intructions Write a function that returns the first prime number that is equal or superior to the `int` passed as parameter. -## Expected function +### Expected function ```go func FindNextPrime(int nb) int { @@ -12,7 +12,7 @@ func FindNextPrime(int nb) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/findnextprime.fr.md b/subjects/findnextprime.fr.md index 073307bd..c1761842 100644 --- a/subjects/findnextprime.fr.md +++ b/subjects/findnextprime.fr.md @@ -1,10 +1,10 @@ -# findnextprime +## findnextprime -## Intructions +### Intructions Écrire une fonction qui renvoie le premier nombre premier qui est égal ou supérieur à l'`int` passé en paramètre. -## Fonction attendue +### Fonction attendue ```go func FindNextPrime(int nb) int { @@ -12,7 +12,7 @@ func FindNextPrime(int nb) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/firebase-demo.en.md b/subjects/firebase-demo.en.md index 9d1765ed..e68fc092 100644 --- a/subjects/firebase-demo.en.md +++ b/subjects/firebase-demo.en.md @@ -1 +1 @@ -# firebase-demo +## firebase-demo diff --git a/subjects/firstrune.en.md b/subjects/firstrune.en.md index be9c9a7c..f257da3d 100644 --- a/subjects/firstrune.en.md +++ b/subjects/firstrune.en.md @@ -1,10 +1,10 @@ -# firstrune +## firstrune -## Instructions +### Instructions Write a function that returns the first `rune` of a `string`. -## Expected function +### Expected function ```go func FirstRune(s string) rune { @@ -12,7 +12,7 @@ func FirstRune(s string) rune { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/firstrune.fr.md b/subjects/firstrune.fr.md index 1ed1a722..932cbe45 100644 --- a/subjects/firstrune.fr.md +++ b/subjects/firstrune.fr.md @@ -1,10 +1,10 @@ -# firstrune +## firstrune -## Instructions +### Instructions Écrire une fonction qui retourne la première `rune` d'une `string`. -## Fonction attendue +### Fonction attendue ```go func FirstRune(s string) rune { @@ -12,7 +12,7 @@ func FirstRune(s string) rune { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/foreach.en.md b/subjects/foreach.en.md index b88c4b5f..d21c6ca0 100644 --- a/subjects/foreach.en.md +++ b/subjects/foreach.en.md @@ -1,17 +1,17 @@ -# foreach +## foreach -## Instructions +### Instructions Write a function `ForEach` that, for an `int` array, applies a function on each elements of that array. -## Expected function +### Expected function ```go func ForEach(f func(int), arr []int) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/foreach.fr.md b/subjects/foreach.fr.md index e143d7cf..18ac85ac 100644 --- a/subjects/foreach.fr.md +++ b/subjects/foreach.fr.md @@ -1,17 +1,17 @@ -# foreach +## foreach -## Instructions +### Instructions Écrire une fonction `ForEach` qui, pour un tableau d'`int`, applique une fonction sur chaque éléments de ce tableau. -## Fonction attendue +### Fonction attendue ```go func ForEach(f func(int), arr []int) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/functions.en.md b/subjects/functions.en.md index 4675bc02..c5ba5ff2 100644 --- a/subjects/functions.en.md +++ b/subjects/functions.en.md @@ -1,3 +1,3 @@ -# functions +## functions This repository aggregate every functions of the Zone 01 organization diff --git a/subjects/get-ready.en.md b/subjects/get-ready.en.md index df26156b..8086b1ce 100644 --- a/subjects/get-ready.en.md +++ b/subjects/get-ready.en.md @@ -1,6 +1,6 @@ -# get-ready +## get-ready -## Instructions +### Instructions Subscribe to [Discord](Discord-invite-link) and send a private message to the bot (TODO: find a name for the bot). diff --git a/subjects/go-say-hello.en.md b/subjects/go-say-hello.en.md index 2fba5366..d9242b47 100644 --- a/subjects/go-say-hello.en.md +++ b/subjects/go-say-hello.en.md @@ -1,10 +1,10 @@ -# go-say-hello +## go-say-hello -## Instructions +### Instructions Write a [program](TODO-LINK) that says `hello` to your GitHub username. -## Usage +### Usage Where `{username}` is your GitHub username: diff --git a/subjects/go-say-hello.fr.md b/subjects/go-say-hello.fr.md index 01a9cc9c..5aab8f02 100644 --- a/subjects/go-say-hello.fr.md +++ b/subjects/go-say-hello.fr.md @@ -1,10 +1,10 @@ -# gosayhello +## gosayhello -## Instructions +### Instructions Écrire un [programme](TODO-LINK) qui vous dis `hello` à votre GitHub username. -## Utilisation +### Utilisation Ici `{username}` est votre GitHub username: diff --git a/subjects/index.en.md b/subjects/index.en.md index 5c7c46c6..4210f76d 100644 --- a/subjects/index.en.md +++ b/subjects/index.en.md @@ -1,10 +1,10 @@ -# index +## index -## Instructions +### Instructions Write a function that behaves like the [`Index`](https://golang.org/pkg/strings/#Index) function. -## Expected function +### Expected function ```go func Index(s string, toFind string) int { @@ -12,7 +12,7 @@ func Index(s string, toFind string) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/index.fr.md b/subjects/index.fr.md index d8770b3d..fa256638 100644 --- a/subjects/index.fr.md +++ b/subjects/index.fr.md @@ -1,10 +1,10 @@ -# index +## index -## Instructions +### Instructions Écrire une fonction qui se comporte comme la fonction [`Index`](https://golang.org/pkg/strings/#Index). -## Fonction attendue +### Fonction attendue ```go func Index(s string, toFind string) int { @@ -12,7 +12,7 @@ func Index(s string, toFind string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/isalpha.en.md b/subjects/isalpha.en.md index 89be87ff..92cc667f 100644 --- a/subjects/isalpha.en.md +++ b/subjects/isalpha.en.md @@ -1,10 +1,10 @@ -# isalpha +## isalpha -## Instructions +### Instructions Write a function that returns `true` if the `string` passed in parameter only contains alphanumerical characters, and that returns `false` otherwise. -## Expected function +### Expected function ```go func IsAlpha(str string) bool { @@ -12,7 +12,7 @@ func IsAlpha(str string) bool { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/isalpha.fr.md b/subjects/isalpha.fr.md index 7a55229b..0bd3b2ce 100644 --- a/subjects/isalpha.fr.md +++ b/subjects/isalpha.fr.md @@ -1,10 +1,10 @@ -# isalpha +## isalpha -## Instructions +### Instructions Écrire une fonction qui retourne `true` si la `string` passée en paramètre contient seulement des caractères alphanumériques, et qui retourne `false` autrement. -## Fonction attendue +### Fonction attendue ```go func IsAlpha(str string) bool { @@ -12,7 +12,7 @@ func IsAlpha(str string) bool { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/islower.en.md b/subjects/islower.en.md index 6cb7b82d..71d43576 100644 --- a/subjects/islower.en.md +++ b/subjects/islower.en.md @@ -1,10 +1,10 @@ -# islower +## islower -## Instructions +### Instructions Write a function that returns `true` if the `string` passed in parameter only contains lowercase characters, and that returns `false` otherwise. -## Expected function +### Expected function ```go func IsLower(str string) bool { @@ -12,7 +12,7 @@ func IsLower(str string) bool { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/islower.fr.md b/subjects/islower.fr.md index c1987fb1..47b13436 100644 --- a/subjects/islower.fr.md +++ b/subjects/islower.fr.md @@ -1,10 +1,10 @@ -# islower +## islower -## Instructions +### Instructions Écrire une fonction qui retourne `true` si la `string` passée en paramètre contient seulement des caractères minuscules, et qui retourne `false` autrement. -## Fonction attendue +### Fonction attendue ```go func IsLower(str string) bool { @@ -12,7 +12,7 @@ func IsLower(str string) bool { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/isnegative.en.md b/subjects/isnegative.en.md index bf0f34bf..faa8b57c 100644 --- a/subjects/isnegative.en.md +++ b/subjects/isnegative.en.md @@ -1,10 +1,10 @@ -# isnegative +## isnegative -## Instructions +### Instructions Write a [function](TODO-LINK) that prints `'T'` (true) on a single line if the `int` passed as parameter is negative, otherwise it prints `'F'` (false). -## Expected function +### Expected function ```go func IsNegative(nb int) { @@ -12,7 +12,7 @@ func IsNegative(nb int) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/isnegative.fr.md b/subjects/isnegative.fr.md index fa2f3739..9804e33b 100644 --- a/subjects/isnegative.fr.md +++ b/subjects/isnegative.fr.md @@ -1,10 +1,10 @@ -# isnegative +## isnegative -## Instructions +### Instructions Écrire une [fonction](TODO-LINK) qui affiche `'T'` (true) sur une seule ligne si l'`int` passé en paramètre est négatif, sinon elle affiche `'F'` (false). -## Fonction attendue +### Fonction attendue ```go func IsNegative(nb int) { @@ -12,7 +12,7 @@ func IsNegative(nb int) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/isnumeric.en.md b/subjects/isnumeric.en.md index 0d877d6d..550dced3 100644 --- a/subjects/isnumeric.en.md +++ b/subjects/isnumeric.en.md @@ -1,10 +1,10 @@ -# isnumeric +## isnumeric -## Instructions +### Instructions Write a function that returns `true` if the `string` passed in parameter only contains numerical characters, and that returns `false` otherwise. -## Expected function +### Expected function ```go func IsNumeric(str string) bool { @@ -12,7 +12,7 @@ func IsNumeric(str string) bool { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/isnumeric.fr.md b/subjects/isnumeric.fr.md index 624f58e0..adaec9ba 100644 --- a/subjects/isnumeric.fr.md +++ b/subjects/isnumeric.fr.md @@ -1,10 +1,10 @@ -# isnumeric +## isnumeric -## Instructions +### Instructions Écrire une fonction qui retourne `true` si la `string` passée en paramètre contient seulement des caractères numériques, et qui retourne `false` autrement. -## Fonction attendue +### Fonction attendue ```go func IsNumeric(str string) bool { @@ -12,7 +12,7 @@ func IsNumeric(str string) bool { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/isprime.en.md b/subjects/isprime.en.md index 371eca69..b5a2f91f 100644 --- a/subjects/isprime.en.md +++ b/subjects/isprime.en.md @@ -1,10 +1,10 @@ -# isprime +## isprime -## Intructions +### Intructions Write a function that returns `true` if the `int` passed as parameter is a prime number. Otherwise it returns `false`. -## Expected function +### Expected function ```go func IsPrime(int nb) bool { @@ -12,7 +12,7 @@ func IsPrime(int nb) bool { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/isprime.fr.md b/subjects/isprime.fr.md index 55b63472..be345292 100644 --- a/subjects/isprime.fr.md +++ b/subjects/isprime.fr.md @@ -1,10 +1,10 @@ -# isprime +## isprime -## Intructions +### Intructions Écrire une fonction qui renvoie `true` si l'`int` passé en paramètre est un nombre premier. Autrement elle renvoie `false`. -## Fonction attendue +### Fonction attendue ```go func IsPrime(int nb) bool { @@ -12,7 +12,7 @@ func IsPrime(int nb) bool { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/isprintable.en.md b/subjects/isprintable.en.md index 55e7ab19..04c131f8 100644 --- a/subjects/isprintable.en.md +++ b/subjects/isprintable.en.md @@ -1,10 +1,10 @@ -# isprintable +## isprintable -## Instructions +### Instructions Write a function that returns `true` if the `string` passed in parameter only contains printable characters, and that returns `false` otherwise. -## Expected function +### Expected function ```go package main @@ -13,7 +13,7 @@ func IsPrintable(str string) bool { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/isprintable.fr.md b/subjects/isprintable.fr.md index 3822a20b..9927cbee 100644 --- a/subjects/isprintable.fr.md +++ b/subjects/isprintable.fr.md @@ -1,10 +1,10 @@ -# isprintable +## isprintable -## Instructions +### Instructions Écrire une fonction qui retourne `true` si la `string` passée en paramètre contient seulement des caractères majuscules, et qui retourne `false` autrement. -## Fonction attendue +### Fonction attendue ```go package main @@ -13,7 +13,7 @@ func IsPrintable(str string) bool { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/issorted.en.md b/subjects/issorted.en.md index 89683314..5970788a 100644 --- a/subjects/issorted.en.md +++ b/subjects/issorted.en.md @@ -1,6 +1,6 @@ -# issorted +## issorted -## Instructions +### Instructions Write a function `IsSorted` that returns `true` if the slice of `int` is sorted, and that returns `false` otherwise. @@ -9,14 +9,14 @@ it returns `0` if they are equal and it returns a negative `int` otherwise. To do your testing you have to write your own `f` function. -## Expected function +### Expected function ```go func IsSorted(f func(a, b int) int, tab []int) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function (without `f`): diff --git a/subjects/issorted.fr.md b/subjects/issorted.fr.md index 28241082..6c6471c2 100644 --- a/subjects/issorted.fr.md +++ b/subjects/issorted.fr.md @@ -1,6 +1,6 @@ -# issorted +## issorted -## Instructions +### Instructions Écrire une fonction `IsSorted` qui retourne `true` si la slice d'`int` est triée, et qui retourne `false` autrement. @@ -8,14 +8,14 @@ La fonction passée en paramètre retourne un `int` positive si `a` (le premier Pour faire vos tests, vous devez coder votre propre fonction `f`. -## Fonction attendue +### Fonction attendue ```go func IsSorted(f func(a, b int) int, tab []int) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction (sans `f`) : diff --git a/subjects/isupper.en.md b/subjects/isupper.en.md index 20afc831..66980bec 100644 --- a/subjects/isupper.en.md +++ b/subjects/isupper.en.md @@ -1,10 +1,10 @@ -# isupper +## isupper -## Instructions +### Instructions Write a function that returns `true` if the `string` passed in parameter only contains uppercase characters, and that returns `false` otherwise. -## Expected function +### Expected function ```go func IsUpper(str string) bool { @@ -12,7 +12,7 @@ func IsUpper(str string) bool { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/isupper.fr.md b/subjects/isupper.fr.md index c10d8129..9b991785 100644 --- a/subjects/isupper.fr.md +++ b/subjects/isupper.fr.md @@ -1,10 +1,10 @@ -# isupper +## isupper -## Instructions +### Instructions Écrire une fonction qui retourne `true` si la `string` passée en paramètre contient seulement des caractères majuscules, et qui retourne `false` autrement. -## Fonction attendue +### Fonction attendue ```go func IsUpper(str string) bool { @@ -12,7 +12,7 @@ func IsUpper(str string) bool { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/iterativefactorial.en.md b/subjects/iterativefactorial.en.md index 45a5cf5a..2e882e55 100644 --- a/subjects/iterativefactorial.en.md +++ b/subjects/iterativefactorial.en.md @@ -1,12 +1,12 @@ -# iterativefactorial +## iterativefactorial -## Intructions +### Intructions Write an **iterative** function that returns the factorial of the `int` passed as parameter. Errors (non possible values or overflows) will return `0`. -## Expected function +### Expected function ```go func IterativeFactorial(int nb) int { @@ -14,7 +14,7 @@ func IterativeFactorial(int nb) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/iterativefactorial.fr.md b/subjects/iterativefactorial.fr.md index 9f7f91ae..79f2a2f2 100644 --- a/subjects/iterativefactorial.fr.md +++ b/subjects/iterativefactorial.fr.md @@ -1,12 +1,12 @@ -# iterativefactorial +## iterativefactorial -## Intructions +### Intructions Écrire une fonction **itérative** qui renvoie la factorielle d'un `int` passé en paramètre. Les erreurs (valeurs non possibles ou overflows) renverront `0`. -## Fonction attendue +### Fonction attendue ```go func IterativeFactorial(int nb) int { @@ -14,7 +14,7 @@ func IterativeFactorial(int nb) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/iterativepower.en.md b/subjects/iterativepower.en.md index 26586a26..a7d30fea 100644 --- a/subjects/iterativepower.en.md +++ b/subjects/iterativepower.en.md @@ -1,12 +1,12 @@ -# iterativepower +## iterativepower -## Intructions +### Intructions Write an **iterative** function that returns the power of the `int` passed as parameter. Negative powers will return `0`. Overflows do **not** have to be dealt with. -## Expected function +### Expected function ```go func IterativePower(int nb, int power) int { @@ -14,7 +14,7 @@ func IterativePower(int nb, int power) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/iterativepower.fr.md b/subjects/iterativepower.fr.md index 6088ab9b..c4fac89d 100644 --- a/subjects/iterativepower.fr.md +++ b/subjects/iterativepower.fr.md @@ -1,12 +1,12 @@ -# iterativepower +## iterativepower -## Intructions +### Intructions Écrire une fonction **itérative** qui renvoie la puissance de deux `int` passés en paramètre. Les puissances négatives renverront `0`. Les overflows **ne doivent pas** être gérés. -## Fonction attendue +### Fonction attendue ```go func IterativePower(int nb, int power) int { @@ -14,7 +14,7 @@ func IterativePower(int nb, int power) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/join.en.md b/subjects/join.en.md index 80bb2904..cf5800d3 100644 --- a/subjects/join.en.md +++ b/subjects/join.en.md @@ -1,10 +1,10 @@ -# join +## join -## Instructions +### Instructions Write a function that returns the concatenation of all the `string` of a table of `string` **separated** by the separator passed in argument. -## Expected function +### Expected function ```go func Join(strs []string, sep string) string { @@ -12,7 +12,7 @@ func Join(strs []string, sep string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/join.fr.md b/subjects/join.fr.md index 57beea67..03317193 100644 --- a/subjects/join.fr.md +++ b/subjects/join.fr.md @@ -1,10 +1,10 @@ -# join +## join -## Instructions +### Instructions Écrire une fonction qui retourne la concaténation de deux `string` **séparées** par le séparateur passées en paramètres. -## Fonction attendue +### Fonction attendue ```go func Join(strs []string, sep string) string{ @@ -12,7 +12,7 @@ func Join(strs []string, sep string) string{ } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/lastrune.en.md b/subjects/lastrune.en.md index 495ed812..03a11067 100644 --- a/subjects/lastrune.en.md +++ b/subjects/lastrune.en.md @@ -1,10 +1,10 @@ -# lastrune +## lastrune -## Instructions +### Instructions Write a function that returns the last `rune` of a `string`. -## Expected function +### Expected function ```go func LastRune(s string) rune { @@ -12,7 +12,7 @@ func LastRune(s string) rune { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/lastrune.fr.md b/subjects/lastrune.fr.md index d439daba..da208207 100644 --- a/subjects/lastrune.fr.md +++ b/subjects/lastrune.fr.md @@ -1,10 +1,10 @@ -# lastrune +## lastrune -## Instructions +### Instructions Écrire une fonction qui retourne la dernière `rune` d'une `string`. -## Fonction attendue +### Fonction attendue ```go func LastRune(s string) rune { @@ -12,7 +12,7 @@ func LastRune(s string) rune { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listat.en.md b/subjects/listat.en.md index 4298d54e..4518a82d 100644 --- a/subjects/listat.en.md +++ b/subjects/listat.en.md @@ -1,12 +1,12 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListAt` that haves one pointer to the list, `l`, and an `int` as parameters. This function should print a `Node` of the linked list, depending on the number, `nbr`. - In case of error it should print `nil` -## Expected function and structure +### Expected function and structure ```go type Node struct { @@ -20,7 +20,7 @@ func ListAt(l *Node, nbr int) *Node{ } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listat.fr.md b/subjects/listat.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listat.fr.md +++ b/subjects/listat.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listclear.en.md b/subjects/listclear.en.md index 9830399e..0da3b3c9 100644 --- a/subjects/listclear.en.md +++ b/subjects/listclear.en.md @@ -1,12 +1,12 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListClear` that delets all `nodes` from a linked list, deleting the link between the list. - Tip: assign the list's pointer to nil -## Expected function and structure +### Expected function and structure ```go type Node struct { @@ -24,7 +24,7 @@ func ListClear(l *List) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listclear.fr.md b/subjects/listclear.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listclear.fr.md +++ b/subjects/listclear.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listfind.en.md b/subjects/listfind.en.md index aec36d3e..4979b846 100644 --- a/subjects/listfind.en.md +++ b/subjects/listfind.en.md @@ -1,6 +1,6 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListFind` that returns the address of the first link that the function in the arguments its equal. @@ -8,7 +8,7 @@ Write a function `ListFind` that returns the address of the first link that the - Use pointers wen ever you can. -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -30,7 +30,7 @@ func ListFind(l *list, comp func(l *list) bool) *interface{} { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listfind.fr.md b/subjects/listfind.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listfind.fr.md +++ b/subjects/listfind.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listforeach.en.md b/subjects/listforeach.en.md index 5b34cf45..025c0e52 100644 --- a/subjects/listforeach.en.md +++ b/subjects/listforeach.en.md @@ -1,12 +1,12 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListForEach` that applies a function given as argument to the information within each of the list's links. - The function given as argument must have a pointer as argument: `l *list` -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -23,7 +23,7 @@ func ListForEach(l *list, f func(l *list)) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listforeach.fr.md b/subjects/listforeach.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listforeach.fr.md +++ b/subjects/listforeach.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listforeachif.en.md b/subjects/listforeachif.en.md index 3b97056d..501d047f 100644 --- a/subjects/listforeachif.en.md +++ b/subjects/listforeachif.en.md @@ -1,6 +1,6 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListForEachIf` that applies a function given as argument to the information within some links of the list. @@ -10,7 +10,7 @@ Write a function `ListForEachIf` that applies a function given as argument to th - Use pointers wen ever you can. -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -32,7 +32,7 @@ func ListForEachIf(l *list, f func(l *list), comp func(l *list) bool) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listforeachif.fr.md b/subjects/listforeachif.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listforeachif.fr.md +++ b/subjects/listforeachif.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listlast.en.md b/subjects/listlast.en.md index 329123bc..24503898 100644 --- a/subjects/listlast.en.md +++ b/subjects/listlast.en.md @@ -1,10 +1,10 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListLast` that returns the last element of the linked list. -## Expected function and structure +### Expected function and structure ```go type Node struct { @@ -21,7 +21,7 @@ func ListLast(l *list) *list { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listlast.fr.md b/subjects/listlast.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listlast.fr.md +++ b/subjects/listlast.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listmerge.en.md b/subjects/listmerge.en.md index ce2ec03d..e29427f5 100644 --- a/subjects/listmerge.en.md +++ b/subjects/listmerge.en.md @@ -1,6 +1,6 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListMerge` that places elements of a list `l2` at the end of an other list `l1`. @@ -8,7 +8,7 @@ Write a function `ListMerge` that places elements of a list `l2` at the end of a - Use pointers when ever you can. -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -26,7 +26,7 @@ func ListMerge(l1 *list, l2 *list) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listmerge.fr.md b/subjects/listmerge.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listmerge.fr.md +++ b/subjects/listmerge.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listpushback.en.md b/subjects/listpushback.en.md index 8ede0b59..eada7bf9 100644 --- a/subjects/listpushback.en.md +++ b/subjects/listpushback.en.md @@ -1,10 +1,10 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListPushBack` that inserts a new element `Node` at the end of the list, using the structure `List` -## Expected function and structure +### Expected function and structure ```go type Node struct { @@ -21,7 +21,7 @@ func ListPushBack(l *List, data interface{}) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listpushback.fr.md b/subjects/listpushback.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listpushback.fr.md +++ b/subjects/listpushback.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listpushfront.en.md b/subjects/listpushfront.en.md index f7014021..0e1e511b 100644 --- a/subjects/listpushfront.en.md +++ b/subjects/listpushfront.en.md @@ -1,10 +1,10 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListPushBack` that inserts a new element `node` at the beginning of the list using `list` -## Expected function and structure +### Expected function and structure ```go type Node struct { @@ -21,7 +21,7 @@ func ListPushFront(l *list, data interface{}) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listpushfront.fr.md b/subjects/listpushfront.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listpushfront.fr.md +++ b/subjects/listpushfront.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listpushparams.en.md b/subjects/listpushparams.en.md index d4868fe1..c799dce2 100644 --- a/subjects/listpushparams.en.md +++ b/subjects/listpushparams.en.md @@ -1,6 +1,6 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a program that creates a new linked list and includes each command-line argument in to the list. diff --git a/subjects/listpushparams.fr.md b/subjects/listpushparams.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listpushparams.fr.md +++ b/subjects/listpushparams.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listremoveif.en.md b/subjects/listremoveif.en.md index 5fd911d9..b27311ed 100644 --- a/subjects/listremoveif.en.md +++ b/subjects/listremoveif.en.md @@ -1,6 +1,6 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListRemoveIf` that removes all elements that are equal to the `data_ref` introduced in the argument of the function. @@ -8,7 +8,7 @@ Write a function `ListRemoveIf` that removes all elements that are equal to the - Use pointers wen ever you can. -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -26,7 +26,7 @@ func ListRemoveIf(l *list, data_ref interface{}) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listremoveif.fr.md b/subjects/listremoveif.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listremoveif.fr.md +++ b/subjects/listremoveif.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listreverse.en.md b/subjects/listreverse.en.md index 2f9d80fe..a602a052 100644 --- a/subjects/listreverse.en.md +++ b/subjects/listreverse.en.md @@ -1,12 +1,12 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListReverse` that reverses the elements order of a given linked list. - Use pointers when ever you can -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -23,7 +23,7 @@ func ListReverse(l *list) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listreverse.fr.md b/subjects/listreverse.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listreverse.fr.md +++ b/subjects/listreverse.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listsize.en.md b/subjects/listsize.en.md index b520b872..c69f59f8 100644 --- a/subjects/listsize.en.md +++ b/subjects/listsize.en.md @@ -1,10 +1,10 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListSize` that returns the number of elements in the list. -## Expected function and structure +### Expected function and structure ```go type Node struct { @@ -22,7 +22,7 @@ func ListSize(l *List) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listsize.fr.md b/subjects/listsize.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listsize.fr.md +++ b/subjects/listsize.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/listsort.en.md b/subjects/listsort.en.md index 14f29496..b690cb98 100644 --- a/subjects/listsort.en.md +++ b/subjects/listsort.en.md @@ -1,6 +1,6 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `ListSort` that sorts the linked list by ascending order. @@ -10,7 +10,7 @@ Write a function `ListSort` that sorts the linked list by ascending order. - Use pointers when ever you can. -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -23,7 +23,7 @@ func ListSort(l *node) *node { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/listsort.fr.md b/subjects/listsort.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/listsort.fr.md +++ b/subjects/listsort.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/make-it-better.en.md b/subjects/make-it-better.en.md index 016dd955..936388b5 100644 --- a/subjects/make-it-better.en.md +++ b/subjects/make-it-better.en.md @@ -1,6 +1,6 @@ -# make-it-better +## make-it-better -## Instructions +### Instructions Create the files and directories so that when you use the command `ls` below the output will looks like this : diff --git a/subjects/make-it-better.fr.md b/subjects/make-it-better.fr.md index eb9a0303..a0c3885b 100644 --- a/subjects/make-it-better.fr.md +++ b/subjects/make-it-better.fr.md @@ -1,6 +1,6 @@ -# make-it-better +## make-it-better -## Instructions +### Instructions Créer les fichiers et dossiers de tel sorte que lorsque cette commande `ls` ci-dessous est utilisée, l'`output` ressemble à cela : diff --git a/subjects/makerange.en.md b/subjects/makerange.en.md index e6516af6..0c96b368 100644 --- a/subjects/makerange.en.md +++ b/subjects/makerange.en.md @@ -1,6 +1,6 @@ -# makerange +## makerange -## Instructions +### 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. @@ -11,14 +11,14 @@ If min is superior or equal to max, a `nil` slice is returned. `append` is not allowed for this exercise. -## Expected function +### Expected function ```go func MakeRange(min, max int) []int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/makerange.fr.md b/subjects/makerange.fr.md index 9edf6692..3e12b377 100644 --- a/subjects/makerange.fr.md +++ b/subjects/makerange.fr.md @@ -1,6 +1,6 @@ -# makerange +## makerange -## Instructions +### 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. @@ -10,14 +10,14 @@ Si le minimum est supérieur ou égal au maximum, une slice `nil` est retournée `append` n'est pas autorisé pour cet exercice. -## Fonction attendue +### Fonction attendue ```go func MakeRange(min, max int) []int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/map.en.md b/subjects/map.en.md index caa35d78..c1112463 100644 --- a/subjects/map.en.md +++ b/subjects/map.en.md @@ -1,17 +1,17 @@ -# map +## map -## Instructions +### Instructions Write a function `Map` that, for an `int` array, applies a function of this type `func(int) bool` on each elements of that array and returns an array of all the return values. -## Expected function +### Expected function ```go func Map(f func(int) bool, arr []int) []bool { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/map.fr.md b/subjects/map.fr.md index 478219a5..6b518816 100644 --- a/subjects/map.fr.md +++ b/subjects/map.fr.md @@ -1,17 +1,17 @@ -# map +## map -## Instructions +### Instructions Écrire une fonction `Map` qui, pour un tableau d'`int`, applique une fonction de type `func(int) bool` sur chaque éléments de ce tableau et retournes un tableau de toutes les valeurs de retour. -## Fonction attendue +### Fonction attendue ```go func Map(f func(int) bool, arr []int) []bool { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/now-get-to-work.en.md b/subjects/now-get-to-work.en.md index bf2fc418..6ac5d5be 100644 --- a/subjects/now-get-to-work.en.md +++ b/subjects/now-get-to-work.en.md @@ -1,6 +1,6 @@ -# now-get-to-work +## now-get-to-work -## Instructions +### Instructions "Something terrible happened" @@ -8,7 +8,7 @@ clone this repo : https://github.com/01-edu/the-final-cl-test Submit your solution in the file `my_answer.sh` that will print it when executed. -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/test$ ./my_answer.sh | cat -e @@ -16,6 +16,6 @@ John Doe$ student@ubuntu:~/piscine/test$ ``` -## Hint +### Hint "You could combine `head` and `tail`s..." diff --git a/subjects/now-get-to-work.fr.md b/subjects/now-get-to-work.fr.md index 93050dee..c42efb01 100644 --- a/subjects/now-get-to-work.fr.md +++ b/subjects/now-get-to-work.fr.md @@ -1,6 +1,6 @@ -# now-get-to-work +## now-get-to-work -## Instructions +### Instructions "Quelque chose de terrible est arrivé" @@ -8,7 +8,7 @@ Faîtes un clone de repo : https://github.com/01-edu/the-final-cl-test Rendez votre solution dans un fichier `my_answer.sh` qui l'affichera quand exécuté. -## Usage +### Usage ```console student@ubuntu:~/piscine/test$ ./my_answer.sh | cat -e @@ -16,6 +16,6 @@ John Doe$ student@ubuntu:~/piscine/test$ ``` -## Hint +### Hint "Vous pouvez combinez `head` et `tail`s..." diff --git a/subjects/nrune.en.md b/subjects/nrune.en.md index b9e06a69..3cafbf16 100644 --- a/subjects/nrune.en.md +++ b/subjects/nrune.en.md @@ -1,10 +1,10 @@ -# nrune +## nrune -## Instructions +### Instructions Write a function that returns the nth `rune` of a `string`. -## Expected function +### Expected function ```go func NRune(s string, n int) rune { @@ -12,7 +12,7 @@ func NRune(s string, n int) rune { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/nrune.fr.md b/subjects/nrune.fr.md index 4df28cc2..8e69dec2 100644 --- a/subjects/nrune.fr.md +++ b/subjects/nrune.fr.md @@ -1,10 +1,10 @@ -# nrune +## nrune -## Instructions +### Instructions Écrire une fonction qui retourne la énième `rune` d'une `string`. -## Fonction attendue +### Fonction attendue ```go func NRune(s string, n int) rune { @@ -12,7 +12,7 @@ func NRune(s string, n int) rune { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/pointone.en.md b/subjects/pointone.en.md index 1ba47cef..0329c3f4 100755 --- a/subjects/pointone.en.md +++ b/subjects/pointone.en.md @@ -1,10 +1,10 @@ -# pointone +## pointone -## Instructions +### Instructions - Write a function that takes a **pointer to an int** as argument and gives to this int the value of 1. -## Expected function +### Expected function ```go func PointOne(n *int) { @@ -12,7 +12,7 @@ func PointOne(n *int) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/pointone.fr.md b/subjects/pointone.fr.md index 0097705b..1b02b779 100755 --- a/subjects/pointone.fr.md +++ b/subjects/pointone.fr.md @@ -1,10 +1,10 @@ -# pointone +## pointone -## Instructions +### Instructions - Écrire une fonction qui prend un **pointeur sur int** en argument et qui assignes à cet int la valeur 1. -## Fonction attendue +### Fonction attendue ```go func PointOne(n *int) { @@ -12,7 +12,7 @@ func PointOne(n *int) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/printalphabet.en.md b/subjects/printalphabet.en.md index 4af6e052..bf9efc56 100644 --- a/subjects/printalphabet.en.md +++ b/subjects/printalphabet.en.md @@ -1,12 +1,12 @@ -# printalphabet +## printalphabet -## Instructions +### Instructions Write a [program](TODO-LINK) that prints the Latin alphabet in lowercase on a single line. A line is a sequence of characters preceding the [end of line](https://en.wikipedia.org/wiki/Newline) character (`'\n'`). -## Usage +### Usage ```console student@ubuntu:~/piscine/printalphabet$ go build diff --git a/subjects/printalphabet.fr.md b/subjects/printalphabet.fr.md index f464adcb..8275d980 100644 --- a/subjects/printalphabet.fr.md +++ b/subjects/printalphabet.fr.md @@ -1,12 +1,12 @@ -# printalphabet +## printalphabet -## Instructions +### Instructions Écrire un [programme](TODO-LINK) qui affiche l'alphabet latin en minuscule sur une seule ligne. Une ligne est une suite de caractères précédant le caractère [fin de ligne](https://en.wikipedia.org/wiki/Newline) (`'\n'`). -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/printalphabet$ go build diff --git a/subjects/printcomb.en.md b/subjects/printcomb.en.md index d0373dff..a836e1a9 100755 --- a/subjects/printcomb.en.md +++ b/subjects/printcomb.en.md @@ -1,12 +1,12 @@ -# printcomb +## printcomb -## Instructions +### Instructions Write a [function](TODO-LINK) that prints in ascending order on a single line all unique combinations of three different digits so that the first digit is less than the second and the second is less than the third. These combinations are separated by a comma and a space. -## Expected function +### Expected function ```go func PrintComb() { @@ -14,7 +14,7 @@ func PrintComb() { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/printcomb.fr.md b/subjects/printcomb.fr.md index ef5a1053..f224897a 100755 --- a/subjects/printcomb.fr.md +++ b/subjects/printcomb.fr.md @@ -1,12 +1,12 @@ -# printcomb +## printcomb -## Instructions +### Instructions Écrire une [fonction](TODO-LINK) qui affiche sur une seule ligne dans l'ordre croissant toutes les combinaisons possibles de trois chiffres différents tels que le premier est inférieur au second et le second est inférieur au troisième. Les combinaisons sont séparées par une virgule et un espace. -## Fonction attendue +### Fonction attendue ```go func PrintComb() { @@ -14,7 +14,7 @@ func PrintComb() { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/printcomb2.en.md b/subjects/printcomb2.en.md index 71f25f7c..356253bf 100755 --- a/subjects/printcomb2.en.md +++ b/subjects/printcomb2.en.md @@ -1,12 +1,12 @@ -# printcomb2 +## printcomb2 -## Instructions +### Instructions Write a [function](TODO-LINK) that prints in ascending order on a single line all possible combinations of two different two-digit numbers. These combinations are separated by a comma and a space. -## Expected function +### Expected function ```go func PrintComb2() { @@ -14,7 +14,7 @@ func PrintComb2() { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/printcomb2.fr.md b/subjects/printcomb2.fr.md index 42533406..fc32dabe 100755 --- a/subjects/printcomb2.fr.md +++ b/subjects/printcomb2.fr.md @@ -1,12 +1,12 @@ -# printcomb2 +## printcomb2 -## Instructions +### Instructions Écrire une [fonction](TODO-LINK) qui affiche sur une seule ligne dans l'ordre croissant toutes les combinaisons possibles de deux nombres différents à deux chiffres. Les combinaisons sont séparées par une virgule et un espace. -## Fonction attendue +### Fonction attendue ```go func PrintComb2() { @@ -14,7 +14,7 @@ func PrintComb2() { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/printcombn.en.md b/subjects/printcombn.en.md index 71387068..88154648 100755 --- a/subjects/printcombn.en.md +++ b/subjects/printcombn.en.md @@ -1,6 +1,6 @@ -# printcombn +## printcombn -## Instructions +### Instructions - Write a function that prints all possible combinations of **n** different digits in ascending order. @@ -12,7 +12,7 @@ below are your references for the **printing format** expected. - (for n = 3) '012, 013, 014, 015, 016, 017, 018, 019, 023,...689, 789' -## Expected function +### Expected function ```go func PrintCombN(n int) { @@ -20,7 +20,7 @@ func PrintCombN(n int) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/printcombn.fr.md b/subjects/printcombn.fr.md index 34f69e93..7cb65dbb 100755 --- a/subjects/printcombn.fr.md +++ b/subjects/printcombn.fr.md @@ -1,6 +1,6 @@ -# printcombn +## printcombn -## Instructions +### Instructions - Écrire une fonction qui affiche toutes les combinaisons possibles de **n** chiffres différents en ordre croissant. @@ -12,7 +12,7 @@ ci-dessous vos références pour le **format d'affichage** attendu. - (pour n = 3) '012, 013, 014, 015, 016, 017, 018, 019, 023,...689, 789' -## Fonction attendue +### Fonction attendue ```go func PrintCombN(n int) { diff --git a/subjects/printdigits.en.md b/subjects/printdigits.en.md index c5798a3e..1824df87 100755 --- a/subjects/printdigits.en.md +++ b/subjects/printdigits.en.md @@ -1,12 +1,12 @@ -# printdigits +## printdigits -## Instructions +### Instructions Write a [program](TODO-LINK) that prints the decimal digits in ascending order (from `0` to `9`) on a single line. A line is a sequence of characters preceding the [end of line](https://en.wikipedia.org/wiki/Newline) character (`'\n'`). -## Usage +### Usage ```console student@ubuntu:~/piscine/printdigits$ go build diff --git a/subjects/printdigits.fr.md b/subjects/printdigits.fr.md index 58c2cefd..b81d59ec 100755 --- a/subjects/printdigits.fr.md +++ b/subjects/printdigits.fr.md @@ -1,12 +1,12 @@ -# printdigits +## printdigits -## Instructions +### Instructions Écrire un [programme](TODO-LINK) qui affiche les chiffres décimaux dans l'ordre croissant (de `0` à `9`) sur une seule ligne. Une ligne est une suite de caractères précédant le caractère [fin de ligne](https://en.wikipedia.org/wiki/Newline) (`'\n'`). -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/printdigits$ go build diff --git a/subjects/printnbr.en.md b/subjects/printnbr.en.md index 8466dba5..eefde512 100644 --- a/subjects/printnbr.en.md +++ b/subjects/printnbr.en.md @@ -1,12 +1,12 @@ -# printnbr +## printnbr -## Instructions +### Instructions Write a function that prints an `int` passed in parameter. All possible values of type `int` have to go through. You cannot convert to `int64`. -## Expected function +### Expected function ```go func PrintNbr(int n) { @@ -14,7 +14,7 @@ func PrintNbr(int n) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/printnbr.fr.md b/subjects/printnbr.fr.md index 60598591..93101b86 100644 --- a/subjects/printnbr.fr.md +++ b/subjects/printnbr.fr.md @@ -1,12 +1,12 @@ -# printnbr +## printnbr -## Instructions +### Instructions Écrire une fonction qui affiche un `int` passé en paramètre. Toutes les valeurs de type `int` doivent être affichables. Vous ne pouvez pas convertir en `int64`. -## Fonction attendue +### Fonction attendue ```go func PrintNbr(int n) { @@ -14,7 +14,7 @@ func PrintNbr(int n) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/printnbrbase.en.md b/subjects/printnbrbase.en.md index b009ca6d..27ba70dc 100644 --- a/subjects/printnbrbase.en.md +++ b/subjects/printnbrbase.en.md @@ -1,6 +1,6 @@ -# putnbrbase +## putnbrbase -## Instructions +### Instructions Write a function that prints an `int` in a `string` base passed in parameters. @@ -14,7 +14,7 @@ Validity rules for a base : The function has to manage negative numbers. (as shown in the example) -## Expected function +### Expected function ```go func PrintNbrBase(nbr int, base string) () { @@ -22,7 +22,7 @@ func PrintNbrBase(nbr int, base string) () { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/printnbrbase.fr.md b/subjects/printnbrbase.fr.md index 05dd4d63..73bb5fa8 100644 --- a/subjects/printnbrbase.fr.md +++ b/subjects/printnbrbase.fr.md @@ -1,6 +1,6 @@ -# putnbrbase +## putnbrbase -## Instructions +### Instructions Écrire une fonction qui affiche un `int` dans une base en `string` passés en paramètres. @@ -14,7 +14,7 @@ Régles de validité d'une base : La fonction doit gérer les nombres négatifs. (comme montré sur l'exemple) -## Fonction attendue +### Fonction attendue ```go func PrintNbrBase(nbr int, base string) () { @@ -22,7 +22,7 @@ func PrintNbrBase(nbr int, base string) () { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/printparams.en.md b/subjects/printparams.en.md index eeffcae2..1697e284 100644 --- a/subjects/printparams.en.md +++ b/subjects/printparams.en.md @@ -1,6 +1,6 @@ -# printparams +## printparams -## Instructions +### Instructions Write a **program** that prints the arguments received in the command line. diff --git a/subjects/printparams.fr.md b/subjects/printparams.fr.md index f96d8ac0..8cbc719f 100644 --- a/subjects/printparams.fr.md +++ b/subjects/printparams.fr.md @@ -1,6 +1,6 @@ -# printparams +## printparams -## Instructions +### Instructions Écrire un **programme** qui affiche les arguments en ligne de commande. diff --git a/subjects/printprogramname.en.md b/subjects/printprogramname.en.md index 0da4a270..114c0b61 100644 --- a/subjects/printprogramname.en.md +++ b/subjects/printprogramname.en.md @@ -1,6 +1,6 @@ -# printprogramname +## printprogramname -## Instructions +### Instructions Write a **program** that prints the name of the program. diff --git a/subjects/printprogramname.fr.md b/subjects/printprogramname.fr.md index 6f957490..6888887e 100644 --- a/subjects/printprogramname.fr.md +++ b/subjects/printprogramname.fr.md @@ -1,6 +1,6 @@ -# printprogramname +## printprogramname -## Instructions +### Instructions Écrire un **programme** qui affiche le nom du programme. diff --git a/subjects/printreversealphabet.en.md b/subjects/printreversealphabet.en.md index ddf3e45f..cbaf35b6 100755 --- a/subjects/printreversealphabet.en.md +++ b/subjects/printreversealphabet.en.md @@ -1,12 +1,12 @@ -# printreversealphabet +## printreversealphabet -## Instructions +### Instructions Write a [program](TODO-LINK) that prints the Latin alphabet in lowercase in reverse order (from `'z'` to `'a'`) on a single line. A line is a sequence of characters preceding the [end of line](https://en.wikipedia.org/wiki/Newline) character (`'\n'`). -## Usage +### Usage ```console student@ubuntu:~/piscine/printreversealphabet$ go build diff --git a/subjects/printreversealphabet.fr.md b/subjects/printreversealphabet.fr.md index a92bbeb9..bce51820 100755 --- a/subjects/printreversealphabet.fr.md +++ b/subjects/printreversealphabet.fr.md @@ -1,12 +1,12 @@ -# printreversealphabet +## printreversealphabet -## Instructions +### Instructions Écrire un [programme](TODO-LINK) qui affiche l'alphabet latin en minuscule dans l'ordre inverse (de `'z'` à `'a'`) sur une seule ligne. Une ligne est une suite de caractères précédant le caractère [fin de ligne](https://en.wikipedia.org/wiki/Newline) (`'\n'`). -## Utilisation +### Utilisation ```console student@ubuntu:~/piscine/printreversealphabet$ go build diff --git a/subjects/printstr.en.md b/subjects/printstr.en.md index 7d366f32..93896033 100755 --- a/subjects/printstr.en.md +++ b/subjects/printstr.en.md @@ -1,10 +1,10 @@ -# printstr +## printstr -## Instructions +### Instructions - Write a function that prints one by one the characters of a string on the screen. -## Expected function +### Expected function ```go func PrintStr(str string) { @@ -12,7 +12,7 @@ func PrintStr(str string) { } ``` -## Hints +### Hints Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/printstr.fr.md b/subjects/printstr.fr.md index a553a6d5..5f02e1c1 100755 --- a/subjects/printstr.fr.md +++ b/subjects/printstr.fr.md @@ -1,10 +1,10 @@ -# putstr +## putstr -## Instructions +### Instructions - Écrire une fonction qui affiche un à un les caractères d'une chaîne à l'écran. -## Fonction attendue +### Fonction attendue ```go func PrintStr(str string) { @@ -12,7 +12,7 @@ func PrintStr(str string) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/printwordstables.en.md b/subjects/printwordstables.en.md index bf49cd1c..248af853 100644 --- a/subjects/printwordstables.en.md +++ b/subjects/printwordstables.en.md @@ -1,6 +1,6 @@ -# printwordstables +## printwordstables -## Instructions +### Instructions Write a function that prints the words of a `string` array that will be returned a function `SplitWhiteSpaces`. (the testing will be done with ours) @@ -8,14 +8,14 @@ Each word is on a single line. Each word ends with a `\n`. -## Expected function +### Expected function ```go func PrintWordsTables(table []string) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/printwordstables.fr.md b/subjects/printwordstables.fr.md index 3df6abd2..b040b60a 100644 --- a/subjects/printwordstables.fr.md +++ b/subjects/printwordstables.fr.md @@ -1,6 +1,6 @@ -# printwordstables +## printwordstables -## Instructions +### Instructions Écrire une fonction qui affiche les mots d'un tableau de `string` qui sera le resultat d'une fonction `SplitWhiteSpaces`. (les tests seront effectués avec la notre) @@ -8,14 +8,14 @@ Chaque mot est sur une seule ligne. Chaque mot fini avec un `\n`. -## Fonction attendue +### Fonction attendue ```go func PrintWordsTables(table []string) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/public.en.md b/subjects/public.en.md index 369177c5..7f8d501a 100644 --- a/subjects/public.en.md +++ b/subjects/public.en.md @@ -1 +1 @@ -# public +## public diff --git a/subjects/recursivefactorial.en.md b/subjects/recursivefactorial.en.md index cce40b24..fa267a35 100644 --- a/subjects/recursivefactorial.en.md +++ b/subjects/recursivefactorial.en.md @@ -1,6 +1,6 @@ -# recursivefactorial +## recursivefactorial -## Intructions +### Intructions Write a **recursive** function that returns the factorial of the `int` passed as parameter. @@ -8,7 +8,7 @@ Errors (non possible values or overflows) will return `0`. `for` is **forbidden** for this exercise. -## Expected function +### Expected function ```go func RecursiveFactorial(int nb) int { @@ -16,7 +16,7 @@ func RecursiveFactorial(int nb) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/recursivefactorial.fr.md b/subjects/recursivefactorial.fr.md index 7b1a4d3f..fba6dfaf 100644 --- a/subjects/recursivefactorial.fr.md +++ b/subjects/recursivefactorial.fr.md @@ -1,6 +1,6 @@ -# recursivefactorial +## recursivefactorial -## Intructions +### Intructions Écrire une fonction **récursive** qui renvoie la factorielle d'un `int` passé en paramètre. @@ -8,7 +8,7 @@ Les erreurs (valeurs non possibles ou overflows) renverront `0`. `for` est **interdit** pour cet exercice. -## Fonction attendue +### Fonction attendue ```go func RecursiveFactorial(int nb) int { @@ -16,7 +16,7 @@ func RecursiveFactorial(int nb) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/recursivepower.en.md b/subjects/recursivepower.en.md index eb52192c..90c58c67 100644 --- a/subjects/recursivepower.en.md +++ b/subjects/recursivepower.en.md @@ -1,6 +1,6 @@ -# recursivepower +## recursivepower -## Intructions +### Intructions Write an **recursive** function that returns the power of the `int` passed as parameter. @@ -8,7 +8,7 @@ Negative powers will return `0`. Overflows do **not** have to be dealt with. `for` is **forbidden** for this exercise. -## Expected function +### Expected function ```go func RecursivePower(int nb, int power) int { @@ -16,7 +16,7 @@ func RecursivePower(int nb, int power) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/recursivepower.fr.md b/subjects/recursivepower.fr.md index c2b255ff..b47509c8 100644 --- a/subjects/recursivepower.fr.md +++ b/subjects/recursivepower.fr.md @@ -1,6 +1,6 @@ -# recursivepower +## recursivepower -## Intructions +### Intructions Écrire une fonction **récursive** qui renvoie la puissance de deux `int` passés en paramètre. @@ -8,7 +8,7 @@ Les puissances négatives renverront `0`. Les overflows **ne doivent pas** être `for` est **interdit** pour cet exercice. -## Fonction attendue +### Fonction attendue ```go func RecursivePower(int nb, int power) int { @@ -16,7 +16,7 @@ func RecursivePower(int nb, int power) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/revparams.en.md b/subjects/revparams.en.md index 33dcf10a..d387913a 100644 --- a/subjects/revparams.en.md +++ b/subjects/revparams.en.md @@ -1,6 +1,6 @@ -# revparams +## revparams -## Instructions +### Instructions Write a **program** that prints the arguments received in the command line in a reverse order. diff --git a/subjects/revparams.fr.md b/subjects/revparams.fr.md index 35cd2526..7c775531 100644 --- a/subjects/revparams.fr.md +++ b/subjects/revparams.fr.md @@ -1,6 +1,6 @@ -# revparams +## revparams -## Instructions +### Instructions Écrire un **programme** qui affiche les arguments en ligne de commande en ordre inverse. diff --git a/subjects/set.en.md b/subjects/set.en.md index b673118b..ef45e24f 100644 --- a/subjects/set.en.md +++ b/subjects/set.en.md @@ -1,12 +1,12 @@ -# set +## set -## Setting up your development workspace +### Setting up your development workspace [GitHub account](TODO-VIDEO-LINK) -### Choose your code editor +#### Choose your code editor - [VS Code](TODO-LINK) - [Sublime Text](TODO-LINK) -### [How to submit your code with Git](TODO-VIDEO-LINK) +#### [How to submit your code with Git](TODO-VIDEO-LINK) diff --git a/subjects/sortedlistmerge.en.md b/subjects/sortedlistmerge.en.md index 948738d0..7653c3e0 100644 --- a/subjects/sortedlistmerge.en.md +++ b/subjects/sortedlistmerge.en.md @@ -1,6 +1,6 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `SortedListMerge` that mereges two lists, `l1` and `l2`, but it as to join them in ascending order. @@ -8,7 +8,7 @@ Write a function `SortedListMerge` that mereges two lists, `l1` and `l2`, but it - Use pointers when ever you can. -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -21,7 +21,7 @@ func SortedListMerge(l1 *node, l2 *node) *node { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/sortedlistmerge.fr.md b/subjects/sortedlistmerge.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/sortedlistmerge.fr.md +++ b/subjects/sortedlistmerge.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/sortintegertable.en.md b/subjects/sortintegertable.en.md index 0828b745..ca2ff301 100755 --- a/subjects/sortintegertable.en.md +++ b/subjects/sortintegertable.en.md @@ -1,10 +1,10 @@ -# sortintegertable +## sortintegertable -## Instructions +### Instructions - Write a function that reorder an array of `int` in ascending order. -## Expected function +### Expected function ```go func SortIntegerTable(table []int) { @@ -12,7 +12,7 @@ func SortIntegerTable(table []int) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/sortintegertable.fr.md b/subjects/sortintegertable.fr.md index 06c2a1bf..3c92b2f0 100755 --- a/subjects/sortintegertable.fr.md +++ b/subjects/sortintegertable.fr.md @@ -1,10 +1,10 @@ -# sortintegertable +## sortintegertable -## Instructions +### Instructions - Écrire une fonction qui trie un tableau d'`int` (entier) par ordre croissant. -## Fonction attendue +### Fonction attendue ```go func SortIntegerTable(table []int) { @@ -12,7 +12,7 @@ func SortIntegerTable(table []int) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/sortlistinsert.en.md b/subjects/sortlistinsert.en.md index fb578726..b84a35b9 100644 --- a/subjects/sortlistinsert.en.md +++ b/subjects/sortlistinsert.en.md @@ -1,6 +1,6 @@ -# listpushback +## listpushback -## Instructions +### Instructions Write a function `SortListInsert` that inserts `data_ref` in the linked list, but it as to remain sorted in ascending order. @@ -8,7 +8,7 @@ Write a function `SortListInsert` that inserts `data_ref` in the linked list, bu - Use pointers when ever you can. -## Expected function and structure +### Expected function and structure ```go type node struct { @@ -21,7 +21,7 @@ func SortListInsert(l *node, data_ref int) *node{ } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/sortlistinsert.fr.md b/subjects/sortlistinsert.fr.md index 7ff57ef8..7db913a6 100644 --- a/subjects/sortlistinsert.fr.md +++ b/subjects/sortlistinsert.fr.md @@ -1,17 +1,17 @@ -# countif +## countif -## Instructions +### Instructions Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`. -## Fonction attendue +### Fonction attendue ```go func CountIf(f func(string) bool, tab []string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/sortparams.en.md b/subjects/sortparams.en.md index 1aee36b8..bd482d0a 100644 --- a/subjects/sortparams.en.md +++ b/subjects/sortparams.en.md @@ -1,6 +1,6 @@ -# sortparams +## sortparams -## Instructions +### Instructions Write a **program** that prints the arguments received in the command line in ASCII order. diff --git a/subjects/sortparams.fr.md b/subjects/sortparams.fr.md index c644312a..f5c6e5ca 100644 --- a/subjects/sortparams.fr.md +++ b/subjects/sortparams.fr.md @@ -1,6 +1,6 @@ -# sortparams +## sortparams -## Instructions +### Instructions Écrire un **programme** qui affiche les arguments en ligne de commande en ordre asscii. diff --git a/subjects/sortwordarr.en.md b/subjects/sortwordarr.en.md index da2efbda..f1e10c7c 100644 --- a/subjects/sortwordarr.en.md +++ b/subjects/sortwordarr.en.md @@ -1,17 +1,17 @@ -# sortwordarr +## sortwordarr -## Instructions +### Instructions Write a function `SortWordArr` that sorts by `ascii` a `string` array. -## Expected function +### Expected function ```go func SortWordArr(array []string) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/sortwordarr.fr.md b/subjects/sortwordarr.fr.md index f37fdf0e..6a0d81d7 100644 --- a/subjects/sortwordarr.fr.md +++ b/subjects/sortwordarr.fr.md @@ -1,17 +1,17 @@ -# sortwordarr +## sortwordarr -## Instructions +### Instructions Écrire une fonction `SortWordArr` qui trie par ordre `ascii` un tableau de `string`. -## Fonction attendue +### Fonction attendue ```go func SortWordArr(array []string) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/split.en.md b/subjects/split.en.md index c6b31e7b..f1c3366c 100644 --- a/subjects/split.en.md +++ b/subjects/split.en.md @@ -1,19 +1,19 @@ -# split +## split -## Instructions +### Instructions Write a function that seperates the words of a `string` and puts them in a `string` array. The separators are the characters of the charset `string` given in parameter. -## Expected function +### Expected function ```go func Split(str, charset string) []string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/split.fr.md b/subjects/split.fr.md index d6b1bdd0..efa7f9d4 100644 --- a/subjects/split.fr.md +++ b/subjects/split.fr.md @@ -1,19 +1,19 @@ -# split +## split -## Instructions +### Instructions Écrire une fonction qui sépare les mots d'une `string` et les met dans un tableau de `string`. Les séparateurs sont les charactéres de la `string` charset donnée en paramétre. -## Fonction attendue +### Fonction attendue ```go func Split(str, charset string) []string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/splitwhitespaces.en.md b/subjects/splitwhitespaces.en.md index 7930d310..e358921e 100644 --- a/subjects/splitwhitespaces.en.md +++ b/subjects/splitwhitespaces.en.md @@ -1,19 +1,19 @@ -# splitwhitespaces +## splitwhitespaces -## Instructions +### Instructions Write a function that separates the words of a `string` and puts them in a `string` array. The separators are spaces, tabs and newlines. -## Expected function +### Expected function ```go func SplitWhiteSpaces(str string) []string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/splitwhitespaces.fr.md b/subjects/splitwhitespaces.fr.md index 6c85718e..0f9776e1 100644 --- a/subjects/splitwhitespaces.fr.md +++ b/subjects/splitwhitespaces.fr.md @@ -1,19 +1,19 @@ -# splitwhitespaces +## splitwhitespaces -## Instructions +### Instructions Écrire une fonction qui sépare les mots d'une `string` et les met dans un tableau de `string`. Les séparateurs sont les espaces, les tabulations et les retours à la ligne. -## Fonction attendue +### Fonction attendue ```go func SplitWhiteSpaces(str string) []string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/sqrt.en.md b/subjects/sqrt.en.md index 7b82042b..c6a5373c 100644 --- a/subjects/sqrt.en.md +++ b/subjects/sqrt.en.md @@ -1,10 +1,10 @@ -# sqrt +## sqrt -## Intructions +### Intructions Write a function that returns the square root of the `int` passed as parameter if that square root is a whole number. Otherwise it returns `0`. -## Expected function +### Expected function ```go func Sqrt(int nb) int { @@ -12,7 +12,7 @@ func Sqrt(int nb) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/sqrt.fr.md b/subjects/sqrt.fr.md index 148422ad..076385ed 100644 --- a/subjects/sqrt.fr.md +++ b/subjects/sqrt.fr.md @@ -1,10 +1,10 @@ -# sqrt +## sqrt -## Intructions +### Intructions Écrire une fonction qui renvoie la racine carré d'un `int` passé en paramètre as parameter si cette racine carré est un nombre entier. Autrement elle renvoie `0`. -## Fonction attendue +### Fonction attendue ```go func Sqrt(int nb) int { @@ -12,7 +12,7 @@ func Sqrt(int nb) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/strlen.en.md b/subjects/strlen.en.md index a0197e8a..9e3e5dee 100755 --- a/subjects/strlen.en.md +++ b/subjects/strlen.en.md @@ -1,10 +1,10 @@ -# strlen +## strlen -## Instructions +### Instructions - Write a function that counts the characters of a string and that returns that count. -## Expected function +### Expected function ```go func StrLen(str string) int { @@ -12,7 +12,7 @@ func StrLen(str string) int { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/strlen.fr.md b/subjects/strlen.fr.md index b5d957e0..a880e7ae 100755 --- a/subjects/strlen.fr.md +++ b/subjects/strlen.fr.md @@ -1,10 +1,10 @@ -# strlen +## strlen -## Instructions +### Instructions - Écrire une fonction qui compte le nombre de caractères d'une chaîne et qui retourne le nombre trouvé. -## Fonction attendue +### Fonction attendue ```go func StrLen(str string) int { @@ -12,7 +12,7 @@ func StrLen(str string) int { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/strrev.en.md b/subjects/strrev.en.md index 643f0ab3..a5ee9cd8 100755 --- a/subjects/strrev.en.md +++ b/subjects/strrev.en.md @@ -1,12 +1,12 @@ -# strrev +## strrev -## Instructions +### Instructions - Write a function that reverses a `string`. - This function will **return** the s `string`. -## Expected function +### Expected function ```go func StrRev(s string) string { @@ -14,7 +14,7 @@ func StrRev(s string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/strrev.fr.md b/subjects/strrev.fr.md index c5a60aa1..e8b34f35 100755 --- a/subjects/strrev.fr.md +++ b/subjects/strrev.fr.md @@ -1,12 +1,12 @@ -# strrev +## strrev -## Instructions +### Instructions - Écrire une fonction qui inverse une chaîne de caractères(`string`). - Cette fonction **retournera** la chaîne de caractères s(`string`). -## Fonction attendue +### Fonction attendue ```go func StrRev(s string) string { @@ -14,7 +14,7 @@ func StrRev(s string) string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/swap.en.md b/subjects/swap.en.md index 31d0c61a..82d0d04f 100755 --- a/subjects/swap.en.md +++ b/subjects/swap.en.md @@ -1,10 +1,10 @@ -# swap +## swap -## Instructions +### Instructions - Write a function that swaps the contents of two **pointers to an int** (`*int`). -## Expected function +### Expected function ```go func Swap(a *int, b *int) { @@ -12,7 +12,7 @@ func Swap(a *int, b *int) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/swap.fr.md b/subjects/swap.fr.md index 879d3844..42fdc85f 100755 --- a/subjects/swap.fr.md +++ b/subjects/swap.fr.md @@ -1,10 +1,10 @@ -# swap +## swap -## Instructions +### Instructions - Écrire une fonction qui échange les contenus de deux **pointeurs sur entier** (`*int`). -## Fonction attendue +### Fonction attendue ```go func Swap(a *int, b *int) { @@ -12,7 +12,7 @@ func Swap(a *int, b *int) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/to-git-or-not-to-git.en.md b/subjects/to-git-or-not-to-git.en.md index 324bdea2..c312c410 100644 --- a/subjects/to-git-or-not-to-git.en.md +++ b/subjects/to-git-or-not-to-git.en.md @@ -1,11 +1,11 @@ -# to-git-or-not-to-git-? +## to-git-or-not-to-git-? -## Instructions +### Instructions Write in a file `to-git-or-not-to-git.sh` the command that isolates your `gitHub id`. Only the numbers will appears. -## Usage +### Usage ```console $ ./to-git-or-not-to-git.sh diff --git a/subjects/to-git-or-not-to-git.fr.md b/subjects/to-git-or-not-to-git.fr.md index 83baac4b..7e9c5ba7 100644 --- a/subjects/to-git-or-not-to-git.fr.md +++ b/subjects/to-git-or-not-to-git.fr.md @@ -1,11 +1,11 @@ -# to-git-or-not-to-git-? +## to-git-or-not-to-git-? -## Instructions +### Instructions Écrire dans un fichier `to-git-or-not-to-git.sh` la commande qui isoles votre `gitHub id`. Seulement les chiffres apparaitront. -## Utilisation +### Utilisation ```console $ ./to-git-or-not-to-git.sh diff --git a/subjects/tolower.en.md b/subjects/tolower.en.md index 3975d788..0f366d8a 100644 --- a/subjects/tolower.en.md +++ b/subjects/tolower.en.md @@ -1,10 +1,10 @@ -# tolower +## tolower -## Instructions +### Instructions Write a function that lowercases each letter of `string`. -## Expected function +### Expected function ```go func ToLower(s string) string { @@ -12,7 +12,7 @@ func ToLower(s string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/tolower.fr.md b/subjects/tolower.fr.md index e1b70b85..b709621b 100644 --- a/subjects/tolower.fr.md +++ b/subjects/tolower.fr.md @@ -1,10 +1,10 @@ -# tolower +## tolower -## Instructions +### Instructions Écrire une fonction qui met en minuscule chaque lettre d'une `string`. -## Fonction attendue +### Fonction attendue ```go func ToLower(s string) string { @@ -12,7 +12,7 @@ func ToLower(s string) string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/toupper.en.md b/subjects/toupper.en.md index 09d5a3db..62aad29c 100644 --- a/subjects/toupper.en.md +++ b/subjects/toupper.en.md @@ -1,10 +1,10 @@ -# toupper +## toupper -## Instructions +### Instructions Write a function that capitalizes each letter of `string`. -## Expected function +### Expected function ```go func ToUpper(s string) string { @@ -12,7 +12,7 @@ func ToUpper(s string) string { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/toupper.fr.md b/subjects/toupper.fr.md index 94ac9200..2750bf08 100644 --- a/subjects/toupper.fr.md +++ b/subjects/toupper.fr.md @@ -1,10 +1,10 @@ -# toupper +## toupper -## Instructions +### Instructions Écrire une fonction qui met en majuscule chaque lettre d'une `string`. -## Fonction attendue +### Fonction attendue ```go func ToUpper(s string) string { @@ -12,7 +12,7 @@ func ToUpper(s string) string { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/ultimatedivmod.en.md b/subjects/ultimatedivmod.en.md index b1d65f51..0f07bd8c 100755 --- a/subjects/ultimatedivmod.en.md +++ b/subjects/ultimatedivmod.en.md @@ -1,10 +1,10 @@ -# ultimatedivmod +## ultimatedivmod -## Instructions +### Instructions - Write a function that will be formatted as below. -## Expected function +### Expected function ```go func UltimateDivMod(a *int, b *int) { @@ -16,7 +16,7 @@ func UltimateDivMod(a *int, b *int) { - 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 +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/ultimatedivmod.fr.md b/subjects/ultimatedivmod.fr.md index 5514f268..c4fe57c9 100755 --- a/subjects/ultimatedivmod.fr.md +++ b/subjects/ultimatedivmod.fr.md @@ -1,10 +1,10 @@ -# ultimatedivmod +## ultimatedivmod -## Instructions +### Instructions - Écrire une fonction qui aura le format ci-dessous. -## Fonction attendue +### Fonction attendue ```go func UltimateDivMod(a *int, b *int) { @@ -16,7 +16,7 @@ func UltimateDivMod(a *int, b *int) { - Le résultat de la division sera stocké dans l'int pointé par **a**. - Le reste de cette division sera stocké dans l'int pointé par **b**. -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/ultimatepointone.en.md b/subjects/ultimatepointone.en.md index aab539a6..acbdb7e2 100755 --- a/subjects/ultimatepointone.en.md +++ b/subjects/ultimatepointone.en.md @@ -1,10 +1,10 @@ -# ultimatepointone +## ultimatepointone -## Instructions +### 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. -## Expected function +### Expected function ```go func UltimatePointOne(n ***int) { @@ -12,7 +12,7 @@ func UltimatePointOne(n ***int) { } ``` -## Usage +### Usage Here is a possible [program](TODO-LINK) to test your function : diff --git a/subjects/ultimatepointone.fr.md b/subjects/ultimatepointone.fr.md index b229f624..8b4bdaad 100755 --- a/subjects/ultimatepointone.fr.md +++ b/subjects/ultimatepointone.fr.md @@ -1,10 +1,10 @@ -# ultimatepointone +## ultimatepointone -## Instructions +### Instructions - É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 +### Fonction attendue ```go func UltimatePointOne(n ***int) { @@ -12,7 +12,7 @@ func UltimatePointOne(n ***int) { } ``` -## Utilisation +### Utilisation Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : diff --git a/subjects/who-are-you.en.md b/subjects/who-are-you.en.md index 63b9e33a..f6e29717 100644 --- a/subjects/who-are-you.en.md +++ b/subjects/who-are-you.en.md @@ -1,6 +1,6 @@ -# who-are-you +## who-are-you -## Instructions +### Instructions "You just woke up in a dark alley... You can not remember who you are... diff --git a/subjects/who-are-you.fr.md b/subjects/who-are-you.fr.md index 441e6f63..0b6aa9dd 100644 --- a/subjects/who-are-you.fr.md +++ b/subjects/who-are-you.fr.md @@ -1,6 +1,6 @@ -# who-are-you +## who-are-you -## Instructions +### Instructions "Vous venez de vous réveillez dans une allée sombre... Vous n'arrivez pas à vous souvenir qui vous êtes...