From 7b60956db425e7d3db27cdba83d4b716d4db3f43 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Mon, 6 Apr 2020 13:43:07 +0200 Subject: [PATCH] Prettier --- subjects/addlinkednumbers.en.md | 2 +- subjects/anagram.en.md | 2 +- subjects/any.fr.md | 2 +- .../ascii-art-web-dockerize.en.md | 1 + subjects/ascii-art/ascii-art-fs.en.md | 3 + subjects/ascii-art/ascii-art-output.en.md | 2 + .../ascii-art/ascii-art-reverse-example.md | 3 + subjects/atoibaseprog.en.md | 2 +- subjects/atoibaseprog.fr.md | 2 +- subjects/atoiprog.en.md | 2 +- subjects/changeorder.en.md | 2 +- subjects/chunk.en.md | 2 +- subjects/compact.fr.md | 4 +- subjects/disclaimer.en.md | 2 +- subjects/disclaimer.fr.md | 2 +- subjects/doppelgangerprog.en.md | 2 +- subjects/fib.en.md | 2 +- subjects/firstruneprog.en.md | 2 +- subjects/flags.en.md | 2 +- subjects/flags.fr.md | 2 +- subjects/foldint.en.md | 2 +- subjects/foreachprog.en.md | 2 +- subjects/game23.en.md | 2 +- subjects/go-reloaded/go-reloaded.en.md | 57 ++++++++++--------- .../groupie-tracker-filters.en.md | 1 + .../groupie-tracker-visualization.en.md | 2 +- .../groupie-tracker-visualizations.en.md | 2 +- subjects/grouping.en.md | 1 + subjects/halfcontestprog.en.md | 2 +- subjects/interestingnumber.en.md | 2 +- subjects/inverttree.en.md | 2 +- subjects/itoabaseprog.en.md | 2 +- subjects/itoabaseprog.fr.md | 2 +- subjects/itoaprog.en.md | 2 +- subjects/lastruneprog.en.md | 2 +- subjects/lcm.en.md | 2 +- subjects/lem-in/lem-in.en.md | 2 +- subjects/listfind.en.md | 2 +- subjects/listfind.fr.md | 2 +- subjects/listmerge.fr.md | 2 +- subjects/listpushparams.en.md | 2 +- subjects/listremoveifprog.en.md | 2 +- subjects/listsizeprog.en.md | 2 +- subjects/maxprog.en.md | 2 +- subjects/merge.en.md | 36 ++++++------ subjects/nauuo.en.md | 4 +- subjects/nenokku.en.md | 3 +- subjects/nruneprog.en.md | 2 +- subjects/options.en.md | 2 +- subjects/options.fr.md | 2 +- subjects/printmemory.en.md | 2 +- subjects/printmemory.fr.md | 2 +- subjects/priorprime.en.md | 2 +- subjects/reachablenumberprog.en.md | 2 +- subjects/reduceint.en.md | 2 +- subjects/reverse.en.md | 2 +- subjects/reversebits.en.md | 2 +- subjects/reversebits.fr.md | 2 +- subjects/revivethreenums.en.md | 2 +- subjects/revwstr.en.md | 4 +- subjects/romannumbers.en.md | 2 +- subjects/rot13.en.md | 2 +- subjects/sametree.en.md | 5 +- subjects/sliceprog.en.md | 9 ++- subjects/sortll.en.md | 2 +- subjects/sortwordarrprog.en.md | 2 +- subjects/sortwordarrprog.fr.md | 2 +- subjects/splitprog.en.md | 2 +- subjects/splitprog.fr.md | 2 +- subjects/strlenprog.en.md | 2 +- subjects/strlenprog.fr.md | 2 +- subjects/swapbits.en.md | 2 +- subjects/swapprog.en.md | 2 +- subjects/sweetproblem.en.md | 2 +- subjects/tetris-optimizer/hardexam.md | 2 +- subjects/twosum.en.md | 2 +- subjects/volumechanger.en.md | 2 +- 77 files changed, 136 insertions(+), 123 deletions(-) diff --git a/subjects/addlinkednumbers.en.md b/subjects/addlinkednumbers.en.md index 70481c4e..f9b773bf 100644 --- a/subjects/addlinkednumbers.en.md +++ b/subjects/addlinkednumbers.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testing are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/anagram.en.md b/subjects/anagram.en.md index e46cd6dd..b4cb6e09 100644 --- a/subjects/anagram.en.md +++ b/subjects/anagram.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/any.fr.md b/subjects/any.fr.md index 9e2dc88e..25fd46ad 100644 --- a/subjects/any.fr.md +++ b/subjects/any.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `Any` qui retourne `true`, pour un tableau de `string` : -- si, lorsque ce tableau de `string` est passé à travers une fonction `f`, au moins un element retourne `true`. +- si, lorsque ce tableau de `string` est passé à travers une fonction `f`, au moins un element retourne `true`. ### Fonction attendue diff --git a/subjects/ascii-art-web/ascii-art-web-dockerize.en.md b/subjects/ascii-art-web/ascii-art-web-dockerize.en.md index 659e7c6f..4403b7d3 100644 --- a/subjects/ascii-art-web/ascii-art-web-dockerize.en.md +++ b/subjects/ascii-art-web/ascii-art-web-dockerize.en.md @@ -5,6 +5,7 @@ You must follow the same [principles](https://public.01-edu.org/subjects/ascii-art-web/ascii-art-web.en) as the first subject. - For this project you must create at least : + - one Dockerfile - one image - one container diff --git a/subjects/ascii-art/ascii-art-fs.en.md b/subjects/ascii-art/ascii-art-fs.en.md index 94d72dde..1b97198b 100644 --- a/subjects/ascii-art/ascii-art-fs.en.md +++ b/subjects/ascii-art/ascii-art-fs.en.md @@ -37,6 +37,7 @@ student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard |_| |_| \___| |_| |_| \___/ + student@ubuntu:~/ascii-art$ ./ascii-art "Hello There!" shadow _| _| _| _| _|_|_|_|_| _| _| @@ -46,6 +47,7 @@ _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _|_|_| _| _| _|_| _| _| _| _|_|_| _| _|_|_| _| + student@ubuntu:~/ascii-art$ ./ascii-art "Hello There!" thinkertoy o o o o o-O-o o @@ -55,5 +57,6 @@ O--O o-o | | o-o | O--o o-o o-o o-o | o o o-o o o o-o o o o o-o o o-o O + student@ubuntu:~/ascii-art$ ``` diff --git a/subjects/ascii-art/ascii-art-output.en.md b/subjects/ascii-art/ascii-art-output.en.md index 2859a3fc..dddbb531 100644 --- a/subjects/ascii-art/ascii-art-output.en.md +++ b/subjects/ascii-art/ascii-art-output.en.md @@ -39,6 +39,7 @@ student@ubuntu:~/ascii-art$ cat banner.txt |_| |_| \___| |_| |_| \___/ + student@ubuntu:~/ascii-art$ ./ascii-art "Hello There!" shadow --output=banner.txt student@ubuntu:~/ascii-art$ cat banner.txt @@ -49,5 +50,6 @@ _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _|_|_| _| _| _|_| _| _| _| _|_|_| _| _|_|_| _| + student@ubuntu:~/ascii-art$ ``` diff --git a/subjects/ascii-art/ascii-art-reverse-example.md b/subjects/ascii-art/ascii-art-reverse-example.md index f2745836..55bae938 100644 --- a/subjects/ascii-art/ascii-art-reverse-example.md +++ b/subjects/ascii-art/ascii-art-reverse-example.md @@ -14,6 +14,7 @@ + ``` ### example01 @@ -28,6 +29,7 @@ + ``` ### example02 @@ -42,6 +44,7 @@ |___| + ``` ### example03 diff --git a/subjects/atoibaseprog.en.md b/subjects/atoibaseprog.en.md index 1740f542..4154ffc9 100644 --- a/subjects/atoibaseprog.en.md +++ b/subjects/atoibaseprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/atoibaseprog.fr.md b/subjects/atoibaseprog.fr.md index b9029076..4af879de 100644 --- a/subjects/atoibaseprog.fr.md +++ b/subjects/atoibaseprog.fr.md @@ -7,7 +7,7 @@ Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cepend Cela signifie que: - Le package doit être nommé `package main`. -- Le code rendu doit avoir une fonction main déclarée(```func main()```) même si elle est vide. +- Le code rendu doit avoir une fonction main déclarée(`func main()`) même si elle est vide. - La fonction main déclarée doit **aussi passer** le `Restrictions Checker`(le testeur de fonctions illégales). Il est conseillé à l'étudiant de rendre une fonction main vide après ses tests finis. - Toutes les autres régles sont les mêmes que pour un `programme`. diff --git a/subjects/atoiprog.en.md b/subjects/atoiprog.en.md index 3355f3f5..d94818c0 100644 --- a/subjects/atoiprog.en.md +++ b/subjects/atoiprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/changeorder.en.md b/subjects/changeorder.en.md index 7f044ba0..0d5e82c3 100644 --- a/subjects/changeorder.en.md +++ b/subjects/changeorder.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testing are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/chunk.en.md b/subjects/chunk.en.md index eed3e2b1..743ff78f 100644 --- a/subjects/chunk.en.md +++ b/subjects/chunk.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/compact.fr.md b/subjects/compact.fr.md index 16b094d9..42bc8b4a 100644 --- a/subjects/compact.fr.md +++ b/subjects/compact.fr.md @@ -5,9 +5,9 @@ Écrire une fonction `Compact` qui prend un pointeur sur slice de `string` comme paramètre. Cette fonction doit: -- Retourner le nombre d'éléments avec des valeurs non-`nil` +- Retourner le nombre d'éléments avec des valeurs non-`nil` -- Comprimer, c.à.d., effacer les éléments qui ont une valeur `nil` dans la slice. +- Comprimer, c.à.d., effacer les éléments qui ont une valeur `nil` dans la slice. ### Fonction attendue diff --git a/subjects/disclaimer.en.md b/subjects/disclaimer.en.md index 31b6bacc..c1165361 100644 --- a/subjects/disclaimer.en.md +++ b/subjects/disclaimer.en.md @@ -5,6 +5,6 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/disclaimer.fr.md b/subjects/disclaimer.fr.md index ed4eaf66..a79a45aa 100644 --- a/subjects/disclaimer.fr.md +++ b/subjects/disclaimer.fr.md @@ -5,6 +5,6 @@ Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cepend Cela signifie que: - Le package doit être nommé `package main`. -- Le code rendu doit avoir une fonction main déclarée(```func main()```) même si elle est vide. +- Le code rendu doit avoir une fonction main déclarée(`func main()`) même si elle est vide. - La fonction main déclarée doit **aussi passer** le `Restrictions Checker`(le testeur de fonctions illégales). Il est conseillé à l'étudiant de rendre une fonction main vide après ses tests finis. - Toutes les autres régles sont les mêmes que pour un `programme`. diff --git a/subjects/doppelgangerprog.en.md b/subjects/doppelgangerprog.en.md index fe03ff3c..1c7ec1b4 100644 --- a/subjects/doppelgangerprog.en.md +++ b/subjects/doppelgangerprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/fib.en.md b/subjects/fib.en.md index 5bf6c204..d8452bf1 100644 --- a/subjects/fib.en.md +++ b/subjects/fib.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/firstruneprog.en.md b/subjects/firstruneprog.en.md index 7e9fa679..7b2e736e 100644 --- a/subjects/firstruneprog.en.md +++ b/subjects/firstruneprog.en.md @@ -7,7 +7,7 @@ This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/flags.en.md b/subjects/flags.en.md index 88897f40..d703c8e2 100644 --- a/subjects/flags.en.md +++ b/subjects/flags.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a **program** that can have as arguments `--insert` (or `-i`), `--order` (or `-o`) and a `string`. +Write a **program** that can have as arguments `--insert` (or `-i`), `--order` (or `-o`) and a `string`. This program should : diff --git a/subjects/flags.fr.md b/subjects/flags.fr.md index 88897f40..d703c8e2 100644 --- a/subjects/flags.fr.md +++ b/subjects/flags.fr.md @@ -2,7 +2,7 @@ ### Instructions -Write a **program** that can have as arguments `--insert` (or `-i`), `--order` (or `-o`) and a `string`. +Write a **program** that can have as arguments `--insert` (or `-i`), `--order` (or `-o`) and a `string`. This program should : diff --git a/subjects/foldint.en.md b/subjects/foldint.en.md index ee055791..6534de33 100644 --- a/subjects/foldint.en.md +++ b/subjects/foldint.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker\`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/foreachprog.en.md b/subjects/foreachprog.en.md index 0465bdb8..2ad28aac 100644 --- a/subjects/foreachprog.en.md +++ b/subjects/foreachprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/game23.en.md b/subjects/game23.en.md index b9cfe008..3482e53c 100644 --- a/subjects/game23.en.md +++ b/subjects/game23.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/go-reloaded/go-reloaded.en.md b/subjects/go-reloaded/go-reloaded.en.md index 3c416c12..95e0bffb 100644 --- a/subjects/go-reloaded/go-reloaded.en.md +++ b/subjects/go-reloaded/go-reloaded.en.md @@ -27,13 +27,13 @@ We advise you to create your own tests for yourself and for when you will correc ### Instructions -- Write a [function](TODO-LINK) that simulates the behaviour of the `Atoi` function in Go. `Atoi` transforms a number represented as a `string` in a number represented as an `int`. +- Write a [function](TODO-LINK) that simulates the behaviour of the `Atoi` function in Go. `Atoi` transforms a number represented as a `string` in a number represented as an `int`. -- `Atoi` returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters. +- `Atoi` returns `0` if the `string` is not considered as a valid number. For this exercise **non-valid `string` chains will be tested**. Some will contain non-digits characters. -- For this exercise the handling of the signs + or - **does have** to be taken into account. +- For this exercise the handling of the signs + or - **does have** to be taken into account. -- This function will **only** have to return the `int`. For this exercise the `error` result of atoi is not required. +- This function will **only** have to return the `int`. For this exercise the `error` result of atoi is not required. ### Expected function @@ -164,15 +164,15 @@ student@ubuntu:~/[[ROOT]]/test$ ### Instructions -- Write a function that prints all possible combinations of **n** different digits in ascending order. +- Write a function that prints all possible combinations of **n** different digits in ascending order. -- n will be defined as : 0 < n < 10 +- n will be defined as : 0 < n < 10 below are your references for the **printing format** expected. -- (for n = 1) '0, 1, 2, 3, ...8, 9' +- (for n = 1) '0, 1, 2, 3, ...8, 9' -- (for n = 3) '012, 013, 014, 015, 016, 017, 018, 019, 023,...689, 789' +- (for n = 3) '012, 013, 014, 015, 016, 017, 018, 019, 023,...689, 789' ### Expected function @@ -226,9 +226,9 @@ If the base is not valid, the function prints `NV` (Not Valid): Validity rules for a base : -- A base must contain at least 2 characters. -- Each character of a base must be unique. -- A base should not contain `+` or `-` characters. +- A base must contain at least 2 characters. +- Each character of a base must be unique. +- A base should not contain `+` or `-` characters. The function has to manage negative numbers. (as shown in the example) @@ -356,9 +356,9 @@ If the base or the `string` number is not valid it returns `0`: Validity rules for a base : -- A base must contain at least 2 characters. -- Each character of a base must be unique. -- A base should not contain `+` or `-` characters. +- A base must contain at least 2 characters. +- Each character of a base must be unique. +- A base should not contain `+` or `-` characters. Only valid `string` numbers will be tested. @@ -405,6 +405,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 0 student@ubuntu:~/[[ROOT]]/test$ ``` + --- ## splitwhitespaces @@ -662,23 +663,23 @@ student@ubuntu:~/[[ROOT]]/test$ Write a program that has the same behaviour as the system's `cat` command-line. -- The `options` do not have to be handled. +- The `options` do not have to be handled. -- If the program is called without arguments it should take the `input` and print it back (as shown with the "Hello" example below). +- If the program is called without arguments it should take the `input` and print it back (as shown with the "Hello" example below). -- In the program folder create two files named `quest8.txt` and `quest8T.txt`. +- In the program folder create two files named `quest8.txt` and `quest8T.txt`. -- Copy to the `quest8.txt` file the following sentence : +- Copy to the `quest8.txt` file the following sentence : `"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing` -- Copy to the `quest8T.txt` file the following sentence : +- Copy to the `quest8T.txt` file the following sentence : `"Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."` -- In case of error the program should print the error. +- In case of error the program should print the error. -- The program must be submitted inside a folder named `cat`. +- The program must be submitted inside a folder named `cat`. ```console student@ubuntu:~/[[ROOT]]/cat$ go build @@ -713,15 +714,15 @@ student@ubuntu:~/[[ROOT]]/cat$ Write a program called `ztail` that has the same behaviour as the system command `tail`, but which takes at least one file as argument. -- The only option to be handled is `-c`. This option will be used in all tests. +- The only option to be handled is `-c`. This option will be used in all tests. -- For this program the "os" package can be used. +- For this program the "os" package can be used. -- For the program to pass the tests the convention for the return code of program in Unix systems should be followed (see os.Exit). +- For the program to pass the tests the convention for the return code of program in Unix systems should be followed. -- Handle the errors and output the same error messages as `tail`. +- Handle the errors and output the same error messages as `tail`. -- For more information consult the man page for `tail`. +- For more information consult the man page for `tail`. ### Note: @@ -786,7 +787,7 @@ student@ubuntu:~/[[ROOT]]/test$ Write a function `SortListInsert` that inserts `data_ref` in the linked list `l` while keeping the list sorted in ascending order. -- During the tests the list passed as an argument will be already sorted. +- During the tests the list passed as an argument will be already sorted. ### Expected function and structure @@ -870,7 +871,7 @@ student@ubuntu:~/[[ROOT]]/test$ Write a function `SortedListMerge` that merges two lists `n1` and `n2` in ascending order. -- During the tests `n1` and `n2` will already be initially sorted. +- During the tests `n1` and `n2` will already be initially sorted. ### Expected function and structure diff --git a/subjects/groupie-tracker/groupie-tracker-filters.en.md b/subjects/groupie-tracker/groupie-tracker-filters.en.md index 618ece47..03082919 100644 --- a/subjects/groupie-tracker/groupie-tracker-filters.en.md +++ b/subjects/groupie-tracker/groupie-tracker-filters.en.md @@ -7,6 +7,7 @@ You must follow the same [principles](https://public.01-edu.org/subjects/groupie - Groupie Tracker Filters consists on letting the user filter the artists/bands that will be shown. - Your project must incorporate at least these four filters: + - filter by creation date - filter by first album date - filter by number of members diff --git a/subjects/groupie-tracker/groupie-tracker-visualization.en.md b/subjects/groupie-tracker/groupie-tracker-visualization.en.md index 340ba908..b92268b7 100644 --- a/subjects/groupie-tracker/groupie-tracker-visualization.en.md +++ b/subjects/groupie-tracker/groupie-tracker-visualization.en.md @@ -4,7 +4,7 @@ You must follow the same [principles](https://public.01-edu.org/subjects/groupie-tracker/groupie-tracker.en) as the first subject. -Groupie-tracker-visualization consists on manipulating the data coming from the API and displaying it in the most presentable way possible to you, following the [*Schneiderman's 8 Golden Rules of Interface Design*](https://www.interaction-design.org/literature/article/shneiderman-s-eight-golden-rules-will-help-you-design-better-interfaces) : +Groupie-tracker-visualization consists on manipulating the data coming from the API and displaying it in the most presentable way possible to you, following the [_Schneiderman's 8 Golden Rules of Interface Design_](https://www.interaction-design.org/literature/article/shneiderman-s-eight-golden-rules-will-help-you-design-better-interfaces) : - Strive for consistency - Enable frequent users to use shortcuts diff --git a/subjects/groupie-tracker/groupie-tracker-visualizations.en.md b/subjects/groupie-tracker/groupie-tracker-visualizations.en.md index de9bea8b..5453a99b 100644 --- a/subjects/groupie-tracker/groupie-tracker-visualizations.en.md +++ b/subjects/groupie-tracker/groupie-tracker-visualizations.en.md @@ -4,7 +4,7 @@ You must follow the same [principles](https://public.01-edu.org/subjects/groupie-tracker/groupie-tracker.en) as the first subject. -Groupie-tracker-visualizations consists on manipulating the data coming from the API and displaying it in the most presentable way possible to you, following the [*Schneiderman's 8 Golden Rules of Interface Design*](https://www.interaction-design.org/literature/article/shneiderman-s-eight-golden-rules-will-help-you-design-better-interfaces) : +Groupie-tracker-visualizations consists on manipulating the data coming from the API and displaying it in the most presentable way possible to you, following the [_Schneiderman's 8 Golden Rules of Interface Design_](https://www.interaction-design.org/literature/article/shneiderman-s-eight-golden-rules-will-help-you-design-better-interfaces) : - Strive for consistency - Enable frequent users to use shortcuts diff --git a/subjects/grouping.en.md b/subjects/grouping.en.md index 189e01e6..8dd2fc0c 100644 --- a/subjects/grouping.en.md +++ b/subjects/grouping.en.md @@ -38,3 +38,4 @@ student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(s)" "" student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "i" "Something in the air" student@ubuntu:~/[[ROOT]]/test$ +``` diff --git a/subjects/halfcontestprog.en.md b/subjects/halfcontestprog.en.md index 01e273cc..f9feaa07 100644 --- a/subjects/halfcontestprog.en.md +++ b/subjects/halfcontestprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/interestingnumber.en.md b/subjects/interestingnumber.en.md index 27afba8c..2fc9fed8 100644 --- a/subjects/interestingnumber.en.md +++ b/subjects/interestingnumber.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/inverttree.en.md b/subjects/inverttree.en.md index 381d7d47..c31c8793 100644 --- a/subjects/inverttree.en.md +++ b/subjects/inverttree.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/itoabaseprog.en.md b/subjects/itoabaseprog.en.md index e97b8cd9..0bdea21d 100644 --- a/subjects/itoabaseprog.en.md +++ b/subjects/itoabaseprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/itoabaseprog.fr.md b/subjects/itoabaseprog.fr.md index d4a91fdd..5bf1191a 100644 --- a/subjects/itoabaseprog.fr.md +++ b/subjects/itoabaseprog.fr.md @@ -7,7 +7,7 @@ Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cepend Cela signifie que: - Le package doit être nommé `package main`. -- Le code rendu doit avoir une fonction main déclarée(```func main()```) même si elle est vide. +- Le code rendu doit avoir une fonction main déclarée(`func main()`) même si elle est vide. - La fonction main déclarée doit **aussi passer** le `Restrictions Checker`(le testeur de fonctions illégales). Il est conseillé à l'étudiant de rendre une fonction main vide après ses tests finis. - Toutes les autres régles sont les mêmes que pour un `programme`. diff --git a/subjects/itoaprog.en.md b/subjects/itoaprog.en.md index eac8e82c..226d2267 100644 --- a/subjects/itoaprog.en.md +++ b/subjects/itoaprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/lastruneprog.en.md b/subjects/lastruneprog.en.md index 7cd5b671..0c0fab5e 100644 --- a/subjects/lastruneprog.en.md +++ b/subjects/lastruneprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/lcm.en.md b/subjects/lcm.en.md index 49b43787..f025adfc 100644 --- a/subjects/lcm.en.md +++ b/subjects/lcm.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/lem-in/lem-in.en.md b/subjects/lem-in/lem-in.en.md index c20377ad..1b8d8430 100644 --- a/subjects/lem-in/lem-in.en.md +++ b/subjects/lem-in/lem-in.en.md @@ -31,7 +31,7 @@ Lx-y Lz-w Lr-o ... ``` - x, z, r represents the ants numbers (going from 1 to number_of_ants) and y, -w, o represents the rooms names. + w, o represents the rooms names. - A room is defined by `"name coord_x coord_y"`, and will usually look like `"Room 1 2", "nameoftheroom 1 6", "4 6 7"`. diff --git a/subjects/listfind.en.md b/subjects/listfind.en.md index 861c5fa6..6d398204 100644 --- a/subjects/listfind.en.md +++ b/subjects/listfind.en.md @@ -67,4 +67,4 @@ student@ubuntu:~/[[ROOT]]/test$ ### Note -- The address may be different in each execution of the program. +- The address may be different in each execution of the program. diff --git a/subjects/listfind.fr.md b/subjects/listfind.fr.md index 8415665e..1ed1f1fe 100644 --- a/subjects/listfind.fr.md +++ b/subjects/listfind.fr.md @@ -67,4 +67,4 @@ student@ubuntu:~/[[ROOT]]/test$ ### Note -- L'addresse peut être différente à chaque exécution du programme. +- L'addresse peut être différente à chaque exécution du programme. diff --git a/subjects/listmerge.fr.md b/subjects/listmerge.fr.md index 702b926e..49e092b7 100644 --- a/subjects/listmerge.fr.md +++ b/subjects/listmerge.fr.md @@ -4,7 +4,7 @@ Écrire une fonction `ListMerge` qui place les éléments d'une liste `l2` à la fin d'une autre liste `l1`. -- Des nouveaux éléments ne doivent pas être créés! +- Des nouveaux éléments ne doivent pas être créés! ### Fonction et structure attendues diff --git a/subjects/listpushparams.en.md b/subjects/listpushparams.en.md index b3fa39bc..c7e50016 100644 --- a/subjects/listpushparams.en.md +++ b/subjects/listpushparams.en.md @@ -17,4 +17,4 @@ the is choumi student@ubuntu:~/[[ROOT]]/test$ -```` +``` diff --git a/subjects/listremoveifprog.en.md b/subjects/listremoveifprog.en.md index db00c0c5..6df9b591 100644 --- a/subjects/listremoveifprog.en.md +++ b/subjects/listremoveifprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/listsizeprog.en.md b/subjects/listsizeprog.en.md index 5684ee64..3dbfb1d4 100644 --- a/subjects/listsizeprog.en.md +++ b/subjects/listsizeprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/maxprog.en.md b/subjects/maxprog.en.md index 42cccadb..0ac672a6 100644 --- a/subjects/maxprog.en.md +++ b/subjects/maxprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/merge.en.md b/subjects/merge.en.md index 9f0d2634..b36fa9c6 100644 --- a/subjects/merge.en.md +++ b/subjects/merge.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testing are done. - Every other rules are obviously the same than for a `program`. @@ -23,26 +23,26 @@ Note: The merging process must start from the root nodes of both trees. Example 1: Input: - - 1 - / \ - 2 3 - - [1,2,3] - - 1 - / \ - 2 3 - - [1,2,3] + + 1 + / \ + 2 3 + + [1,2,3] + + 1 + / \ + 2 3 + + [1,2,3] Merged Tree: - 2 - / \ - 4 6 - - [2,4,6] + 2 + / \ + 4 6 + + [2,4,6] ### Expected function diff --git a/subjects/nauuo.en.md b/subjects/nauuo.en.md index 49cf8da0..d568e471 100644 --- a/subjects/nauuo.en.md +++ b/subjects/nauuo.en.md @@ -7,13 +7,13 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. ### Instructions -There was a vote. There are people who voted positively, negatively, and randomly. +There was a vote. There are people who voted positively, negatively, and randomly. Figure out if the final answer depends on random people or not. If it does, return '?', otherwise the result must be either '+', '-', or '0' Previous characters stand for outcome of the vote: positive/negative/draw. diff --git a/subjects/nenokku.en.md b/subjects/nenokku.en.md index f67080e0..a1eaae2c 100644 --- a/subjects/nenokku.en.md +++ b/subjects/nenokku.en.md @@ -3,6 +3,7 @@ ### Instructions You are given unknown amount of operations. There are 3 types of operations, you should handle each appropriately: + 1. "A word" - add the "word" into your "dictionary" of words. 2. "? word" - check if the "word" is in your "dictionary". 3. "x word" - end of operations. @@ -17,4 +18,4 @@ NO YES NO YES -``` \ No newline at end of file +``` diff --git a/subjects/nruneprog.en.md b/subjects/nruneprog.en.md index 95197740..15b49e05 100644 --- a/subjects/nruneprog.en.md +++ b/subjects/nruneprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/options.en.md b/subjects/options.en.md index 490728dd..55927b79 100644 --- a/subjects/options.en.md +++ b/subjects/options.en.md @@ -5,7 +5,7 @@ Write a program that takes an undefined number of arguments which could be considered as `options` and writes on the standard output a representation of those `options` as groups of `bytes` followed by a newline (`'\n'`). - An `option` is an argument that begins with a `-` and that can have multiple characters which could be : - -abcdefghijklmnopqrstuvwxyz + -abcdefghijklmnopqrstuvwxyz - All `options` are stocked in a single `int` and each `options` represents a bit of that `int`, and should be stocked like this : diff --git a/subjects/options.fr.md b/subjects/options.fr.md index 6f3ad919..b110b67b 100644 --- a/subjects/options.fr.md +++ b/subjects/options.fr.md @@ -5,7 +5,7 @@ Écrire un programme qui prend un nombre indéfini d'arguments qui peuvent être considérés comme des `options` et qui affiche sur la sortie standard une représentation de ces `options` comme groupes de `bytes`(octets) suivi d'un retour à la ligne (`'\n'`). - Une `option` est un argument qui commence avec un `-` et qui peux avoir de multiples caractères qui peuvent être : - -abcdefghijklmnopqrstuvwxyz + -abcdefghijklmnopqrstuvwxyz - Toutes les `options` sont stockées dans un seul `int` et chaque `option` représente un bit de cet `int`, et doit être stocké comme ci-dessous : diff --git a/subjects/printmemory.en.md b/subjects/printmemory.en.md index c98f2b1b..2807b631 100644 --- a/subjects/printmemory.en.md +++ b/subjects/printmemory.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/printmemory.fr.md b/subjects/printmemory.fr.md index e2afe042..c78518d0 100644 --- a/subjects/printmemory.fr.md +++ b/subjects/printmemory.fr.md @@ -7,7 +7,7 @@ Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cepend Cela signifie que: - Le package doit être nommé `package main`. -- Le code rendu doit avoir une fonction main déclarée(```func main()```) même si elle est vide. +- Le code rendu doit avoir une fonction main déclarée(`func main()`) même si elle est vide. - La fonction main déclarée doit **aussi passer** le `Restrictions Checker`(le testeur de fonctions illégales). Il est conseillé à l'étudiant de rendre une fonction main vide après ses tests finis. - Toutes les autres régles sont les mêmes que pour un `programme`. diff --git a/subjects/priorprime.en.md b/subjects/priorprime.en.md index d6347522..d48da855 100644 --- a/subjects/priorprime.en.md +++ b/subjects/priorprime.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testing are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/reachablenumberprog.en.md b/subjects/reachablenumberprog.en.md index 8dd4ea9c..f790264c 100644 --- a/subjects/reachablenumberprog.en.md +++ b/subjects/reachablenumberprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/reduceint.en.md b/subjects/reduceint.en.md index ad649b9c..094dc279 100644 --- a/subjects/reduceint.en.md +++ b/subjects/reduceint.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/reverse.en.md b/subjects/reverse.en.md index 2db9daa6..3fd2f862 100644 --- a/subjects/reverse.en.md +++ b/subjects/reverse.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testing are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/reversebits.en.md b/subjects/reversebits.en.md index 7ae7fd19..d21eb1ed 100644 --- a/subjects/reversebits.en.md +++ b/subjects/reversebits.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/reversebits.fr.md b/subjects/reversebits.fr.md index cd08a450..2c4ea454 100644 --- a/subjects/reversebits.fr.md +++ b/subjects/reversebits.fr.md @@ -7,7 +7,7 @@ Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cepend Cela signifie que: - Le package doit être nommé `package main`. -- Le code rendu doit avoir une fonction main déclarée(```func main()```) même si elle est vide. +- Le code rendu doit avoir une fonction main déclarée(`func main()`) même si elle est vide. - La fonction main déclarée doit **aussi passer** le `Restrictions Checker`(le testeur de fonctions illégales). Il est conseillé à l'étudiant de rendre une fonction main vide après ses tests finis. - Toutes les autres régles sont les mêmes que pour un `programme`. diff --git a/subjects/revivethreenums.en.md b/subjects/revivethreenums.en.md index ec4f9b67..9da1f9d0 100644 --- a/subjects/revivethreenums.en.md +++ b/subjects/revivethreenums.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/revwstr.en.md b/subjects/revwstr.en.md index a95f9db4..749f8f57 100644 --- a/subjects/revwstr.en.md +++ b/subjects/revwstr.en.md @@ -8,7 +8,7 @@ Write a program that takes a `string` as a parameter, and prints its words in re - If the number of parameters is different from 1, the program will display newline (`'\n'`). -- In the parameters that are going to be tested, there will not be any extra spaces. (meaning that there will not be additional spaces at the beginning or at the end of the `string` and that words will always be separated by exactly one space). +- In the parameters that are going to be tested, there will not be any extra spaces. (meaning that there will not be additional spaces at the beginning or at the end of the `string` and that words will always be separated by exactly one space). ### Usage @@ -22,5 +22,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test "he stared at the mountain" mountain the at stared he student@ubuntu:~/[[ROOT]]/test$ ./test "" | cat-e $ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/[[ROOT]]/test$ ``` diff --git a/subjects/romannumbers.en.md b/subjects/romannumbers.en.md index b9ab87e0..e35e535b 100644 --- a/subjects/romannumbers.en.md +++ b/subjects/romannumbers.en.md @@ -4,7 +4,7 @@ Write a program called `rn`. The objective is to convert a number, given as an argument, into a roman number and print it with its roman number calculation. -The program should have a limit of `4000`. In case of an invalid number, for example `"hello"` or `0` the program should print `ERROR: can not convert to roman digit`. +The program should have a limit of `4000`. In case of an invalid number, for example `"hello"` or `0` the program should print `ERROR: can not convert to roman digit`. Roman Numerals reminder: diff --git a/subjects/rot13.en.md b/subjects/rot13.en.md index 5f44a700..fc90ad0b 100644 --- a/subjects/rot13.en.md +++ b/subjects/rot13.en.md @@ -5,7 +5,7 @@ Write a program that takes a `string` and displays it, replacing each of its letters by the letter 13 spaces ahead in alphabetical order. -- 'z' becomes 'm' and 'Z' becomes 'M'. The case of the letter stays the same. +- 'z' becomes 'm' and 'Z' becomes 'M'. The case of the letter stays the same. - The output will be followed by a newline (`'\n'`). diff --git a/subjects/sametree.en.md b/subjects/sametree.en.md index ebe13d86..16f6aae3 100644 --- a/subjects/sametree.en.md +++ b/subjects/sametree.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testing are done. - Every other rules are obviously the same than for a `program`. @@ -41,7 +41,7 @@ Input: 1 / \ 2 3 - + [1,2,3] 1 @@ -69,6 +69,7 @@ Input: Output: false Input: + ``` 1 diff --git a/subjects/sliceprog.en.md b/subjects/sliceprog.en.md index 8051399b..8d848479 100644 --- a/subjects/sliceprog.en.md +++ b/subjects/sliceprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. @@ -15,9 +15,9 @@ This means that: Write a **function** that replicates the javascript function `slice`. -The function receives an array of strings and one or more integers, and returns an array of strings. The returned array is part of the received one but cut from the position indicated in the first int, until the position indicated by the second int. +The function receives an array of strings and one or more integers, and returns an array of strings. The returned array is part of the received one but cut from the position indicated in the first int, until the position indicated by the second int. -In case there only exists one int, the resulting array begins in the position indicated by the int and ends at the end of the received array. +In case there only exists one int, the resulting array begins in the position indicated by the int and ends at the end of the received array. The ints can be lower than 0. @@ -29,8 +29,7 @@ func Slice(arr []string, nbrs... int) []string{ } ``` - -### Usage +### Usage Here is a possible program to test your function : diff --git a/subjects/sortll.en.md b/subjects/sortll.en.md index 84830e9b..0c91a5f2 100644 --- a/subjects/sortll.en.md +++ b/subjects/sortll.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/sortwordarrprog.en.md b/subjects/sortwordarrprog.en.md index af3f0e02..15371c33 100644 --- a/subjects/sortwordarrprog.en.md +++ b/subjects/sortwordarrprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/sortwordarrprog.fr.md b/subjects/sortwordarrprog.fr.md index 639d8336..209a2e81 100644 --- a/subjects/sortwordarrprog.fr.md +++ b/subjects/sortwordarrprog.fr.md @@ -7,7 +7,7 @@ Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cepend Cela signifie que: - Le package doit être nommé `package main`. -- Le code rendu doit avoir une fonction main déclarée(```func main()```) même si elle est vide. +- Le code rendu doit avoir une fonction main déclarée(`func main()`) même si elle est vide. - La fonction main déclarée doit **aussi passer** le `Restrictions Checker`(le testeur de fonctions illégales). Il est conseillé à l'étudiant de rendre une fonction main vide après ses tests finis. - Toutes les autres régles sont les mêmes que pour un `programme`. diff --git a/subjects/splitprog.en.md b/subjects/splitprog.en.md index ad01ddc4..831ee504 100644 --- a/subjects/splitprog.en.md +++ b/subjects/splitprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/splitprog.fr.md b/subjects/splitprog.fr.md index 312502bc..5a92cd66 100644 --- a/subjects/splitprog.fr.md +++ b/subjects/splitprog.fr.md @@ -7,7 +7,7 @@ Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cepend Cela signifie que: - Le package doit être nommé `package main`. -- Le code rendu doit avoir une fonction main déclarée(```func main()```) même si elle est vide. +- Le code rendu doit avoir une fonction main déclarée(`func main()`) même si elle est vide. - La fonction main déclarée doit **aussi passer** le `Restrictions Checker`(le testeur de fonctions illégales). Il est conseillé à l'étudiant de rendre une fonction main vide après ses tests finis. - Toutes les autres régles sont les mêmes que pour un `programme`. diff --git a/subjects/strlenprog.en.md b/subjects/strlenprog.en.md index c69e90d5..cf6dab42 100644 --- a/subjects/strlenprog.en.md +++ b/subjects/strlenprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/strlenprog.fr.md b/subjects/strlenprog.fr.md index 27e81301..8cc6e298 100644 --- a/subjects/strlenprog.fr.md +++ b/subjects/strlenprog.fr.md @@ -7,7 +7,7 @@ Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cepend Cela signifie que: - Le package doit être nommé `package main`. -- Le code rendu doit avoir une fonction main déclarée(```func main()```) même si elle est vide. +- Le code rendu doit avoir une fonction main déclarée(`func main()`) même si elle est vide. - La fonction main déclarée doit **aussi passer** le `Restrictions Checker`(le testeur de fonctions illégales). Il est conseillé à l'étudiant de rendre une fonction main vide après ses tests finis. - Toutes les autres régles sont les mêmes que pour un `programme`. diff --git a/subjects/swapbits.en.md b/subjects/swapbits.en.md index 9c3782a9..8c7f3937 100644 --- a/subjects/swapbits.en.md +++ b/subjects/swapbits.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/swapprog.en.md b/subjects/swapprog.en.md index 74ff5472..c0083f0a 100644 --- a/subjects/swapprog.en.md +++ b/subjects/swapprog.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/sweetproblem.en.md b/subjects/sweetproblem.en.md index 5f6ecb30..9386384d 100644 --- a/subjects/sweetproblem.en.md +++ b/subjects/sweetproblem.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/tetris-optimizer/hardexam.md b/subjects/tetris-optimizer/hardexam.md index 9c07f07c..23d39487 100644 --- a/subjects/tetris-optimizer/hardexam.md +++ b/subjects/tetris-optimizer/hardexam.md @@ -63,4 +63,4 @@ .#.. .... -``` \ No newline at end of file +``` diff --git a/subjects/twosum.en.md b/subjects/twosum.en.md index bbf043fd..1d8bc286 100644 --- a/subjects/twosum.en.md +++ b/subjects/twosum.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. diff --git a/subjects/volumechanger.en.md b/subjects/volumechanger.en.md index 35c462c9..26380686 100644 --- a/subjects/volumechanger.en.md +++ b/subjects/volumechanger.en.md @@ -7,7 +7,7 @@ For this exercise a function will be tested **with the exam own main**. However This means that: - The package needs to be named `package main`. -- The submitted code needs one declared function main(```func main()```) even if empty. +- The submitted code needs one declared function main(`func main()`) even if empty. - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`.