Browse Source

Prettier

pull/533/head
Xavier Petit 4 years ago committed by xpetit
parent
commit
7b60956db4
  1. 2
      subjects/addlinkednumbers.en.md
  2. 2
      subjects/anagram.en.md
  3. 2
      subjects/any.fr.md
  4. 1
      subjects/ascii-art-web/ascii-art-web-dockerize.en.md
  5. 3
      subjects/ascii-art/ascii-art-fs.en.md
  6. 2
      subjects/ascii-art/ascii-art-output.en.md
  7. 3
      subjects/ascii-art/ascii-art-reverse-example.md
  8. 2
      subjects/atoibaseprog.en.md
  9. 2
      subjects/atoibaseprog.fr.md
  10. 2
      subjects/atoiprog.en.md
  11. 2
      subjects/changeorder.en.md
  12. 2
      subjects/chunk.en.md
  13. 4
      subjects/compact.fr.md
  14. 2
      subjects/disclaimer.en.md
  15. 2
      subjects/disclaimer.fr.md
  16. 2
      subjects/doppelgangerprog.en.md
  17. 2
      subjects/fib.en.md
  18. 2
      subjects/firstruneprog.en.md
  19. 2
      subjects/flags.en.md
  20. 2
      subjects/flags.fr.md
  21. 2
      subjects/foldint.en.md
  22. 2
      subjects/foreachprog.en.md
  23. 2
      subjects/game23.en.md
  24. 57
      subjects/go-reloaded/go-reloaded.en.md
  25. 1
      subjects/groupie-tracker/groupie-tracker-filters.en.md
  26. 2
      subjects/groupie-tracker/groupie-tracker-visualization.en.md
  27. 2
      subjects/groupie-tracker/groupie-tracker-visualizations.en.md
  28. 1
      subjects/grouping.en.md
  29. 2
      subjects/halfcontestprog.en.md
  30. 2
      subjects/interestingnumber.en.md
  31. 2
      subjects/inverttree.en.md
  32. 2
      subjects/itoabaseprog.en.md
  33. 2
      subjects/itoabaseprog.fr.md
  34. 2
      subjects/itoaprog.en.md
  35. 2
      subjects/lastruneprog.en.md
  36. 2
      subjects/lcm.en.md
  37. 2
      subjects/lem-in/lem-in.en.md
  38. 2
      subjects/listfind.en.md
  39. 2
      subjects/listfind.fr.md
  40. 2
      subjects/listmerge.fr.md
  41. 2
      subjects/listpushparams.en.md
  42. 2
      subjects/listremoveifprog.en.md
  43. 2
      subjects/listsizeprog.en.md
  44. 2
      subjects/maxprog.en.md
  45. 36
      subjects/merge.en.md
  46. 4
      subjects/nauuo.en.md
  47. 3
      subjects/nenokku.en.md
  48. 2
      subjects/nruneprog.en.md
  49. 2
      subjects/options.en.md
  50. 2
      subjects/options.fr.md
  51. 2
      subjects/printmemory.en.md
  52. 2
      subjects/printmemory.fr.md
  53. 2
      subjects/priorprime.en.md
  54. 2
      subjects/reachablenumberprog.en.md
  55. 2
      subjects/reduceint.en.md
  56. 2
      subjects/reverse.en.md
  57. 2
      subjects/reversebits.en.md
  58. 2
      subjects/reversebits.fr.md
  59. 2
      subjects/revivethreenums.en.md
  60. 4
      subjects/revwstr.en.md
  61. 2
      subjects/romannumbers.en.md
  62. 2
      subjects/rot13.en.md
  63. 5
      subjects/sametree.en.md
  64. 9
      subjects/sliceprog.en.md
  65. 2
      subjects/sortll.en.md
  66. 2
      subjects/sortwordarrprog.en.md
  67. 2
      subjects/sortwordarrprog.fr.md
  68. 2
      subjects/splitprog.en.md
  69. 2
      subjects/splitprog.fr.md
  70. 2
      subjects/strlenprog.en.md
  71. 2
      subjects/strlenprog.fr.md
  72. 2
      subjects/swapbits.en.md
  73. 2
      subjects/swapprog.en.md
  74. 2
      subjects/sweetproblem.en.md
  75. 2
      subjects/tetris-optimizer/hardexam.md
  76. 2
      subjects/twosum.en.md
  77. 2
      subjects/volumechanger.en.md

2
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`.

2
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`.

2
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

1
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

3
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$
```

2
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$
```

3
subjects/ascii-art/ascii-art-reverse-example.md

@ -14,6 +14,7 @@
```
### example01
@ -28,6 +29,7 @@
```
### example02
@ -42,6 +44,7 @@
|___|
```
### example03

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

4
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

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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 :

2
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 :

2
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`.

2
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`.

2
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`.

57
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

1
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

2
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

2
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

1
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$
```

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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"`.

2
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.

2
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.

2
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

2
subjects/listpushparams.en.md

@ -17,4 +17,4 @@ the
is
choumi
student@ubuntu:~/[[ROOT]]/test$
````
```

2
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`.

2
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`.

2
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`.

36
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

4
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.

3
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
```
```

2
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`.

2
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 :

2
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 :

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

4
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$
```

2
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:

2
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'`).

5
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

9
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 :

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
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`.

2
subjects/tetris-optimizer/hardexam.md

@ -63,4 +63,4 @@
.#..
....
```
```

2
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`.

2
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`.

Loading…
Cancel
Save