From 83360ef2d4add5301d9448f1523ec0d917a3e557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Tue, 12 Nov 2019 14:06:27 +0000 Subject: [PATCH 01/41] Update cl-camp3.en.md --- subjects/cl-camp3.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/cl-camp3.en.md b/subjects/cl-camp3.en.md index e10fd90d..5372dcba 100644 --- a/subjects/cl-camp3.en.md +++ b/subjects/cl-camp3.en.md @@ -6,8 +6,8 @@ Create a file `look`, which will look for and show, in the current directory and its sub-folders all the files : -- starting with an `a` and, -- all the files ending with a `z` and, +- starting with an `a` or, +- all the files ending with a `z` or, - all files starting with `z` and ending with `a!`. ### Hint From 165ac80bbf19d1e8027ecede16ebc84a7f112da7 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Wed, 13 Nov 2019 12:26:00 +0000 Subject: [PATCH 02/41] Update explain.en.md --- subjects/explain.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/explain.en.md b/subjects/explain.en.md index a3962cf5..9d130b1a 100644 --- a/subjects/explain.en.md +++ b/subjects/explain.en.md @@ -13,7 +13,7 @@ Write an `explain.sh` file that: - displays the first and last name of your key witness - displays the interview number of this witness - displays the colour and the make of the car of the suspects -- displays the names of the 3 other main suspects that were not arrested (in the order that they should have appeared during the investigation) +- displays the names of the 3 other main suspects that were not arrested (in alphabetical order of their last name) ### Usage From 7c61d0ce9982e37a03bbfb596a2a6f2b6cd69698 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Thu, 14 Nov 2019 10:36:37 +0100 Subject: [PATCH 03/41] Fix introduction --- subjects/introduction.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/introduction.en.md b/subjects/introduction.en.md index c1f9074d..ffe99fdb 100644 --- a/subjects/introduction.en.md +++ b/subjects/introduction.en.md @@ -12,7 +12,7 @@ Once created, clone that repository on your desktop. If your username was `choumi` this is the command that will need to be used : -`git clone git@git.alem.school:choumi/piscine-go.git` +`git clone git@git.01.alem.school:choumi/piscine-go.git` This command needs to be adapted with **your own username**. From c1c280d3d00bdf550b19e06a5369ffe58aaab479 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Sat, 16 Nov 2019 10:05:21 +0100 Subject: [PATCH 04/41] Square -> Rectangle --- subjects/raid1a.en.md | 4 ++-- subjects/raid1a.fr.md | 4 ++-- subjects/raid1b.en.md | 4 ++-- subjects/raid1b.fr.md | 4 ++-- subjects/raid1c.en.md | 4 ++-- subjects/raid1c.fr.md | 4 ++-- subjects/raid1d.en.md | 4 ++-- subjects/raid1d.fr.md | 4 ++-- subjects/raid1e.en.md | 4 ++-- subjects/raid1e.fr.md | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/subjects/raid1a.en.md b/subjects/raid1a.en.md index 76e23442..771d5c26 100644 --- a/subjects/raid1a.en.md +++ b/subjects/raid1a.en.md @@ -2,9 +2,9 @@ ### Instructions -Write a function `Raid1a` that prints a **valid** square of width `x` and of height `y`. +Write a function `Raid1a` that prints a **valid** rectangle of width `x` and of height `y`. -The function must draw the squares as in the examples. +The function must draw the rectangles as in the examples. ### Expected function diff --git a/subjects/raid1a.fr.md b/subjects/raid1a.fr.md index 877c76d2..d1e81ba3 100644 --- a/subjects/raid1a.fr.md +++ b/subjects/raid1a.fr.md @@ -2,9 +2,9 @@ ### Instructions -Écrire une fonction `Raid1a` qui affiche un carré **valide** de largeur `x` et de hauteur `y`. +Écrire une fonction `Raid1a` qui affiche un rectangle **valide** de largeur `x` et de hauteur `y`. -Cette fonction doit dessiner les carrés comme sur les examples. +Cette fonction doit dessiner les rectangles comme sur les examples. ### Fonction attendue diff --git a/subjects/raid1b.en.md b/subjects/raid1b.en.md index f096ab6c..1b6a4d04 100644 --- a/subjects/raid1b.en.md +++ b/subjects/raid1b.en.md @@ -2,9 +2,9 @@ ### Instructions -Write a function `Raid1b` that prints a **valid** square of width `x` and of height `y`. +Write a function `Raid1b` that prints a **valid** rectangle of width `x` and of height `y`. -The function must draw the squares as in the examples. +The function must draw the rectangles as in the examples. ### Expected function diff --git a/subjects/raid1b.fr.md b/subjects/raid1b.fr.md index 1289e39b..e32f5061 100644 --- a/subjects/raid1b.fr.md +++ b/subjects/raid1b.fr.md @@ -2,9 +2,9 @@ ### Instructions -Écrire une fonction `Raid1b` qui affiche un carré **valide** de largeur `x` et de hauteur `y`. +Écrire une fonction `Raid1b` qui affiche un rectangle **valide** de largeur `x` et de hauteur `y`. -Cette fonction doit dessiner les carrés comme sur les examples. +Cette fonction doit dessiner les rectangles comme sur les examples. ### Fonction attendue diff --git a/subjects/raid1c.en.md b/subjects/raid1c.en.md index 003be5d6..0cbe57f7 100644 --- a/subjects/raid1c.en.md +++ b/subjects/raid1c.en.md @@ -2,9 +2,9 @@ ### Instructions -Write a function `Raid1c` that prints a **valid** square of width `x` and of height `y`. +Write a function `Raid1c` that prints a **valid** rectangle of width `x` and of height `y`. -The function must draw the squares as in the examples. +The function must draw the rectangles as in the examples. ### Expected function diff --git a/subjects/raid1c.fr.md b/subjects/raid1c.fr.md index d064867a..d5aec9a6 100644 --- a/subjects/raid1c.fr.md +++ b/subjects/raid1c.fr.md @@ -2,9 +2,9 @@ ### Instructions -Écrire une fonction `Raid1c` qui affiche un carré **valide** de largeur `x` et de hauteur `y`. +Écrire une fonction `Raid1c` qui affiche un rectangle **valide** de largeur `x` et de hauteur `y`. -Cette fonction doit dessiner les carrés comme sur les examples. +Cette fonction doit dessiner les rectangles comme sur les examples. ### Fonction attendue diff --git a/subjects/raid1d.en.md b/subjects/raid1d.en.md index c1ae6d8d..d00ec1c1 100644 --- a/subjects/raid1d.en.md +++ b/subjects/raid1d.en.md @@ -2,9 +2,9 @@ ### Instructions -Write a function `Raid1d` that prints a **valid** square of width `x` and of height `y`. +Write a function `Raid1d` that prints a **valid** rectangle of width `x` and of height `y`. -The function must draw the squares as in the examples. +The function must draw the rectangles as in the examples. ### Expected function diff --git a/subjects/raid1d.fr.md b/subjects/raid1d.fr.md index 9cbdc161..7392af6e 100644 --- a/subjects/raid1d.fr.md +++ b/subjects/raid1d.fr.md @@ -2,9 +2,9 @@ ### Instructions -Écrire une fonction `Raid1d` qui affiche un carré **valide** de largeur `x` et de hauteur `y`. +Écrire une fonction `Raid1d` qui affiche un rectangle **valide** de largeur `x` et de hauteur `y`. -Cette fonction doit dessiner les carrés comme sur les examples. +Cette fonction doit dessiner les rectangles comme sur les examples. ### Fonction attendue diff --git a/subjects/raid1e.en.md b/subjects/raid1e.en.md index 94cbce37..cf079839 100644 --- a/subjects/raid1e.en.md +++ b/subjects/raid1e.en.md @@ -2,9 +2,9 @@ ### Instructions -Write a function `Raid1e` that prints a **valid** square of width `x` and of height `y`. +Write a function `Raid1e` that prints a **valid** rectangle of width `x` and of height `y`. -The function must draw the squares as in the examples. +The function must draw the rectangles as in the examples. ### Expected function diff --git a/subjects/raid1e.fr.md b/subjects/raid1e.fr.md index 4b7124a1..8dc9ad35 100644 --- a/subjects/raid1e.fr.md +++ b/subjects/raid1e.fr.md @@ -2,9 +2,9 @@ ### Instructions -Écrire une fonction `Raid1e` qui affiche un carré **valide** de largeur `x` et de hauteur `y`. +Écrire une fonction `Raid1e` qui affiche un rectangle **valide** de largeur `x` et de hauteur `y`. -Cette fonction doit dessiner les carrés comme sur les examples. +Cette fonction doit dessiner les rectangles comme sur les examples. ### Fonction attendue From cff99a8be94e6c0e7886cf06fb3244f9f5695462 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Sat, 16 Nov 2019 10:06:07 +0100 Subject: [PATCH 05/41] Remove unused "fmt" import --- subjects/raid1a.en.md | 4 ---- subjects/raid1a.fr.md | 4 ---- subjects/raid1b.en.md | 4 ---- subjects/raid1b.fr.md | 4 ---- subjects/raid1c.en.md | 4 ---- subjects/raid1c.fr.md | 4 ---- subjects/raid1d.en.md | 4 ---- subjects/raid1d.fr.md | 4 ---- subjects/raid1e.en.md | 4 ---- subjects/raid1e.fr.md | 4 ---- 10 files changed, 40 deletions(-) diff --git a/subjects/raid1a.en.md b/subjects/raid1a.en.md index 771d5c26..1daad823 100644 --- a/subjects/raid1a.en.md +++ b/subjects/raid1a.en.md @@ -24,7 +24,6 @@ Program #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Program #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Program #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Program #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1a.fr.md b/subjects/raid1a.fr.md index d1e81ba3..66d64b9b 100644 --- a/subjects/raid1a.fr.md +++ b/subjects/raid1a.fr.md @@ -24,7 +24,6 @@ Programme #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Programme #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Programme #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Programme #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1b.en.md b/subjects/raid1b.en.md index 1b6a4d04..8e304afe 100644 --- a/subjects/raid1b.en.md +++ b/subjects/raid1b.en.md @@ -24,7 +24,6 @@ Program #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Program #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Program #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Program #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1b.fr.md b/subjects/raid1b.fr.md index e32f5061..d2dc34f8 100644 --- a/subjects/raid1b.fr.md +++ b/subjects/raid1b.fr.md @@ -24,7 +24,6 @@ Programme #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Programme #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Programme #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Programme #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1c.en.md b/subjects/raid1c.en.md index 0cbe57f7..5aaf8a1a 100644 --- a/subjects/raid1c.en.md +++ b/subjects/raid1c.en.md @@ -24,7 +24,6 @@ Program #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Program #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Program #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Program #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1c.fr.md b/subjects/raid1c.fr.md index d5aec9a6..c6613aa5 100644 --- a/subjects/raid1c.fr.md +++ b/subjects/raid1c.fr.md @@ -24,7 +24,6 @@ Programme #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Programme #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Programme #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Programme #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1d.en.md b/subjects/raid1d.en.md index d00ec1c1..691d4010 100644 --- a/subjects/raid1d.en.md +++ b/subjects/raid1d.en.md @@ -24,7 +24,6 @@ Program #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Program #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Program #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Program #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1d.fr.md b/subjects/raid1d.fr.md index 7392af6e..d889014e 100644 --- a/subjects/raid1d.fr.md +++ b/subjects/raid1d.fr.md @@ -24,7 +24,6 @@ Programme #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Programme #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Programme #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Programme #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1e.en.md b/subjects/raid1e.en.md index cf079839..055dcfa3 100644 --- a/subjects/raid1e.en.md +++ b/subjects/raid1e.en.md @@ -24,7 +24,6 @@ Program #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Program #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Program #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Program #4 package main import ( - "fmt" student "./student" ) diff --git a/subjects/raid1e.fr.md b/subjects/raid1e.fr.md index 8dc9ad35..acf2878f 100644 --- a/subjects/raid1e.fr.md +++ b/subjects/raid1e.fr.md @@ -24,7 +24,6 @@ Programme #1 package main import ( - "fmt" student "./student" ) @@ -50,7 +49,6 @@ Programme #2 package main import ( - "fmt" student "./student" ) @@ -74,7 +72,6 @@ Programme #3 package main import ( - "fmt" student "./student" ) @@ -98,7 +95,6 @@ Programme #4 package main import ( - "fmt" student "./student" ) From b6b1e2aaa5cf6e693a3a5eaa414155626892d3e1 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 19 Nov 2019 15:20:32 +0000 Subject: [PATCH 06/41] Fix eightqueens subject --- subjects/eightqueens.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/eightqueens.en.md b/subjects/eightqueens.en.md index bad19e06..9ea15518 100644 --- a/subjects/eightqueens.en.md +++ b/subjects/eightqueens.en.md @@ -25,7 +25,7 @@ The solutions will be printed in ascending order. ### Expected function ```go -package main +package piscine func EightQueens() { From 94c3d25f617585712e23c0c623d7a460beb645ae Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Tue, 19 Nov 2019 19:10:32 +0100 Subject: [PATCH 07/41] Format --- scripts/preseed.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/preseed.cfg b/scripts/preseed.cfg index 5fdd31b5..76d56339 100644 --- a/scripts/preseed.cfg +++ b/scripts/preseed.cfg @@ -14,8 +14,8 @@ d-i mirror/http/hostname string deb.debian.org d-i mirror/http/directory string /debian d-i mirror/http/proxy string -#d-i netcfg/choose_interface select auto -#d-i netcfg/get_hostname string debian -#d-i netcfg/get_domain string local +# d-i netcfg/choose_interface select auto +# d-i netcfg/get_hostname string debian +# d-i netcfg/get_domain string local d-i hw-detect/load_firmware boolean true From 9118651903a93432269a01eaa07c4c9b9f647d7c Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Wed, 20 Nov 2019 03:02:15 +0000 Subject: [PATCH 08/41] Update fprime.en.md --- subjects/fprime.en.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/subjects/fprime.en.md b/subjects/fprime.en.md index 0c4ad4ba..a94b5cf3 100644 --- a/subjects/fprime.en.md +++ b/subjects/fprime.en.md @@ -10,8 +10,6 @@ Write a program that takes a positive `int` and displays its prime factors, foll - The input, when there is one, will always be valid. -- In this exercise the primes factor of 1 is considered as 1. - ### Usage ```console From b5d3df632de238e0871fe80de1558e8173a504f0 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Wed, 20 Nov 2019 03:02:24 +0000 Subject: [PATCH 09/41] Update fprime.en.md --- subjects/fprime.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/fprime.en.md b/subjects/fprime.en.md index a94b5cf3..c33dd89b 100644 --- a/subjects/fprime.en.md +++ b/subjects/fprime.en.md @@ -29,6 +29,6 @@ student@ubuntu:~/piscine-go/test$ ./test a student@ubuntu:~/piscine-go/test$ ./test 0 student@ubuntu:~/piscine-go/test$ ./test 1 -1 + student@ubuntu:~/piscine-go/test$ ``` From b32066fdaf6416435cae20ea5b6093b4c25d3e64 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Wed, 20 Nov 2019 03:07:43 +0000 Subject: [PATCH 10/41] Update fprime.fr.md --- subjects/fprime.fr.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subjects/fprime.fr.md b/subjects/fprime.fr.md index 3aa55c3d..b0602105 100644 --- a/subjects/fprime.fr.md +++ b/subjects/fprime.fr.md @@ -28,5 +28,7 @@ student@ubuntu:~/piscine-go/test$ ./test a student@ubuntu:~/piscine-go/test$ ./test 0 +student@ubuntu:~/piscine-go/test$ ./test 1 + student@ubuntu:~/piscine-go/test$ ``` From a3d9c8605d88efd2613c337decd6e6dbf4bd4548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 20 Nov 2019 18:32:34 +0000 Subject: [PATCH 11/41] Update firstruneprog.en.md --- subjects/firstruneprog.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/firstruneprog.en.md b/subjects/firstruneprog.en.md index c747c00b..f5e8f056 100644 --- a/subjects/firstruneprog.en.md +++ b/subjects/firstruneprog.en.md @@ -1,8 +1,8 @@ ## firstruneprog -## **WARNING! VERY IMPORTANT!** +> ### **WARNING! VERY IMPORTANT!** -For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program: +> For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program This means that: From 67bd2367d3b5c73119736b73d8540662b235d7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 20 Nov 2019 18:32:45 +0000 Subject: [PATCH 12/41] Update firstruneprog.en.md --- subjects/firstruneprog.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/firstruneprog.en.md b/subjects/firstruneprog.en.md index f5e8f056..7e9fa679 100644 --- a/subjects/firstruneprog.en.md +++ b/subjects/firstruneprog.en.md @@ -1,7 +1,7 @@ ## firstruneprog > ### **WARNING! VERY IMPORTANT!** - +> > For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program This means that: From 74defda51c33a7be9062ef9792d2557f8b6d38a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 20 Nov 2019 18:57:32 +0000 Subject: [PATCH 13/41] Create unavailable.en.md --- subjects/unavailable.en.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 subjects/unavailable.en.md diff --git a/subjects/unavailable.en.md b/subjects/unavailable.en.md new file mode 100644 index 00000000..caef4db1 --- /dev/null +++ b/subjects/unavailable.en.md @@ -0,0 +1,3 @@ +# Unavailable + +This subject is currently unavailable for you. From 54104ccbeaf6514cca4d2135976aad6f84b40241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 20 Nov 2019 18:58:05 +0000 Subject: [PATCH 14/41] Create unavailable.fr.md --- subjects/unavailable.fr.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 subjects/unavailable.fr.md diff --git a/subjects/unavailable.fr.md b/subjects/unavailable.fr.md new file mode 100644 index 00000000..fa6f68ce --- /dev/null +++ b/subjects/unavailable.fr.md @@ -0,0 +1,3 @@ +# Indisponible + +Ce sujet est actuelement indisponible pour vous. From 834145a17e0bd63e7d689547a6a76a68fb406089 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Wed, 20 Nov 2019 22:22:46 +0100 Subject: [PATCH 15/41] Typo --- subjects/unavailable.fr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/unavailable.fr.md b/subjects/unavailable.fr.md index fa6f68ce..6be8cf6a 100644 --- a/subjects/unavailable.fr.md +++ b/subjects/unavailable.fr.md @@ -1,3 +1,3 @@ # Indisponible -Ce sujet est actuelement indisponible pour vous. +Ce sujet est actuellement indisponible pour vous. From 3b849c1ba79279358a6302fb6898022af97e6d89 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Wed, 20 Nov 2019 22:22:54 +0100 Subject: [PATCH 16/41] Add server installation instructions --- docs/server-installation.md | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 docs/server-installation.md diff --git a/docs/server-installation.md b/docs/server-installation.md new file mode 100644 index 00000000..0f770247 --- /dev/null +++ b/docs/server-installation.md @@ -0,0 +1,43 @@ +# Server installation + +## DNS configuration + +One domain and one subdomain must point to the IP address of a [dedicated server](server-requirements.md). + +| FQDN | Record type | Address | +| -------------- | ----------- | ------- | +| {{DOMAIN}} | A | X.X.X.X | +| git.{{DOMAIN}} | A | X.X.X.X | + +## Network configuration + +### Inbound + +| Port | Transport | Application | +| ---- | --------- | ---------------- | +| 22 | TCP | SSH | +| 80 | TCP, UDP | HTTP/(1.1, 2, 3) | +| 443 | TCP, UDP | HTTP/(1.1, 2, 3) | +| 521 | TCP | SSH | + +### Outbound + +| Port | Transport | Application | +| ---- | --------- | ----------- | +| 465 | TCP | SMTP | + +### OS installation + +Download and boot the ISO image `amd64` of [Debian](https://www.debian.org/distrib/netinst) + +Select : + +- "Advanced options ..." +- "... Automated install" + +The network is automatically configured with DHCP, you can also configure it manually. + +At the prompt "Location of initial preconfiguration file:", enter the url : `raw.githubusercontent.com/01-edu/public/master/scripts/preseed.cfg` and select "Continue" + +Let us know when the server's remote access is ready, we will configure it. + From f480743c8f94512448802127ccf73527435b2df0 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Wed, 20 Nov 2019 22:28:02 +0100 Subject: [PATCH 17/41] Update server-installation.md --- docs/server-installation.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/server-installation.md b/docs/server-installation.md index 0f770247..089c00ee 100644 --- a/docs/server-installation.md +++ b/docs/server-installation.md @@ -37,7 +37,11 @@ Select : The network is automatically configured with DHCP, you can also configure it manually. -At the prompt "Location of initial preconfiguration file:", enter the url : `raw.githubusercontent.com/01-edu/public/master/scripts/preseed.cfg` and select "Continue" +At the prompt "Location of initial preconfiguration file:", enter the url : -Let us know when the server's remote access is ready, we will configure it. +``` +raw.githubusercontent.com/01-edu/public/master/scripts/preseed.cfg +``` + +and select "Continue", let us know when the server's remote access is ready, we will configure it. From c67fd9be398d6ff38fc8a182be6f80b542317bbf Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 19 Nov 2019 13:18:07 +0000 Subject: [PATCH 18/41] Change subject for splitprog form program to a function --- subjects/atoiprog.en.md | 2 +- subjects/splitprog.en.md | 57 ++++++++++++++++++++++++++++++---------- 2 files changed, 44 insertions(+), 15 deletions(-) diff --git a/subjects/atoiprog.en.md b/subjects/atoiprog.en.md index a786abfb..22117840 100644 --- a/subjects/atoiprog.en.md +++ b/subjects/atoiprog.en.md @@ -1,6 +1,6 @@ ## atoiprog -##**WARNING! VERY IMPORTANT!** +## **WARNING! VERY IMPORTANT!** For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program: diff --git a/subjects/splitprog.en.md b/subjects/splitprog.en.md index 3b62bc72..b814051b 100644 --- a/subjects/splitprog.en.md +++ b/subjects/splitprog.en.md @@ -1,24 +1,53 @@ -## splitprog +## split + +## **WARNING! VERY IMPORTANT!** + +For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program: + +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 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 -Write a program which separates the words of a `string`, which puts them in a `string` array and which then prints it to standard output. +Write a function that separates the words of a `string` and puts them in a `string` array. -The program receives two parameters: +The separators are the characters of the `charset string` given in parameter. -- The first is the `string` -- The second is the separator +### Expected function + +```go +func Split(str, charset string) []string { + +} +``` + +### Usage + +Here is a possible [program](TODO-LINK) to test your function : + +```go +package main + +import ( + "fmt" + piscine ".." +) + +func main() { + str := "HelloHAhowHAareHAyou?" + fmt.Println(piscine.Split(str, "HA")) +} +``` -### Usage : +And its output : ```console -student@ubuntu:~/piscine-go/splitprog$ go build -student@ubuntu:~/piscine-go/splitprog$ ./splitprog "HelloHAhowHAareHAyou?" HA | cat -e -[Hello how are you?]$ -student@ubuntu:~/piscine-go/splitprog$ ./splitprog "Hello,how,are,you?" "," +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine-go/splitprog$ ./splitprog "HelloHAhowHAareHAyou?" -student@ubuntu:~/piscine-go/splitprog$ -student@ubuntu:~/piscine-go/splitprog$ ./splitprog -student@ubuntu:~/piscine-go/splitprog$ +student@ubuntu:~/piscine-go/test$ ``` From 2b330998c541850c2c357f080357b063cadf9491 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Thu, 21 Nov 2019 13:10:36 +0000 Subject: [PATCH 19/41] splitprog subjects en and fr adapted --- subjects/splitprog.en.md | 4 ++-- subjects/splitprog.fr.md | 44 ++++++++++++++++++++++++++++------------ 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/subjects/splitprog.en.md b/subjects/splitprog.en.md index b814051b..b3be18b7 100644 --- a/subjects/splitprog.en.md +++ b/subjects/splitprog.en.md @@ -1,4 +1,4 @@ -## split +## splitprog ## **WARNING! VERY IMPORTANT!** @@ -27,7 +27,7 @@ func Split(str, charset string) []string { ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main diff --git a/subjects/splitprog.fr.md b/subjects/splitprog.fr.md index e0d0eabc..59d84ca2 100644 --- a/subjects/splitprog.fr.md +++ b/subjects/splitprog.fr.md @@ -2,23 +2,41 @@ ### Instructions -Écrire une fonction qui sépare les mots d'une `string`, qui les met dans un tableau de `string` et qui les affichent sur la sortie standard. +Écrire une fonction qui sépare les mots d'une `string`, qui les met dans un tableau de `string`. -Le programme reçoit deux paramètres: +Les séparateurs sont les caractères de la `charset string` donnée en paramètre. -- Le premier est la `string` -- Le deuxième est le séparateur +### Fonction attendue -### Utilisation : +```go +func Split(str, charset string) []string { + +} +``` + +### Usage + +VOici un programm possible pour tester votre fonction : + +```go +package main + +import ( + "fmt" + piscine ".." +) + +func main() { + str := "HelloHAhowHAareHAyou?" + fmt.Println(piscine.Split(str, "HA")) +} +``` + +Et son résultat : ```console -student@ubuntu:~/piscine-go/splitprog$ go build -student@ubuntu:~/piscine-go/splitprog$ ./splitprog "HelloHAhowHAareHAyou?" HA | cat -e -[Hello how are you?]$ -student@ubuntu:~/piscine-go/splitprog$ ./splitprog "Hello,how,are,you?" "," +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine-go/splitprog$ ./splitprog "HelloHAhowHAareHAyou?" -student@ubuntu:~/piscine-go/splitprog$ -student@ubuntu:~/piscine-go/splitprog$ ./splitprog -student@ubuntu:~/piscine-go/splitprog$ +student@ubuntu:~/piscine-go/test$ ``` From 7c591d7483378803e0e0667581d3a9d313bf58b5 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Thu, 21 Nov 2019 13:13:37 +0000 Subject: [PATCH 20/41] remvol of disclaimer --- subjects/itoabase.en.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/subjects/itoabase.en.md b/subjects/itoabase.en.md index ec8d29fd..33338b16 100644 --- a/subjects/itoabase.en.md +++ b/subjects/itoabase.en.md @@ -1,16 +1,5 @@ ## itoabase -## **WARNING! VERY IMPORTANT!** - -For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program: - -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 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 Write a function that: From aa9fa5fc188b986fa902d612e7938e0322e584e3 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Thu, 21 Nov 2019 13:14:52 +0000 Subject: [PATCH 21/41] adding of disclaimer --- subjects/splitprog.fr.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/subjects/splitprog.fr.md b/subjects/splitprog.fr.md index 59d84ca2..ab02dd22 100644 --- a/subjects/splitprog.fr.md +++ b/subjects/splitprog.fr.md @@ -1,5 +1,17 @@ ## splitprog +## **AVERTISSEMENT! TRÈS IMPORTANT!** + +Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cependant l'étudiant **doit quand même** rendre un programme structuré: + +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. +- 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`. + + ### Instructions Écrire une fonction qui sépare les mots d'une `string`, qui les met dans un tableau de `string`. From 6df279d56f9d113b0205774ebaf13bcda986543c Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Thu, 21 Nov 2019 13:15:12 +0000 Subject: [PATCH 22/41] correction of formatting --- subjects/disclaimer.en.md | 2 +- subjects/disclaimer.fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/disclaimer.en.md b/subjects/disclaimer.en.md index 29b469c6..31b6bacc 100644 --- a/subjects/disclaimer.en.md +++ b/subjects/disclaimer.en.md @@ -1,4 +1,4 @@ -##**WARNING! VERY IMPORTANT!** +## **WARNING! VERY IMPORTANT!** For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program: diff --git a/subjects/disclaimer.fr.md b/subjects/disclaimer.fr.md index 85f821d6..ed4eaf66 100644 --- a/subjects/disclaimer.fr.md +++ b/subjects/disclaimer.fr.md @@ -1,4 +1,4 @@ -##**AVERTISSEMENT! TRÈS IMPORTANT!** +## **AVERTISSEMENT! TRÈS IMPORTANT!** Pour cet exercice une fonction sera testée **avec le main de l'examen**. Cependant l'étudiant **doit quand même** rendre un programme structuré: From e87dcb3a9e03c4704705478df057b2423ab10fdb Mon Sep 17 00:00:00 2001 From: Augusto Date: Thu, 21 Nov 2019 13:20:58 +0000 Subject: [PATCH 23/41] Fix subject for reversebits from a program to a function --- subjects/reversebits.en.md | 48 +++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/subjects/reversebits.en.md b/subjects/reversebits.en.md index 433e3258..6839fe35 100644 --- a/subjects/reversebits.en.md +++ b/subjects/reversebits.en.md @@ -1,21 +1,51 @@ ## reversebits +## **WARNING! VERY IMPORTANT!** + +For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program: + +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 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 -Write a program that takes a `byte` in binary format, that reverses it `bit` by `bit` (as shown in the -example) and that prints the result. +Write a function that takes a `byte` in binary format, that reverses it `bit` by `bit` (as shown in the example) and returns the result + +### Expected function + +```go +func ReverseBits(by byte) byte { + +} +``` +### Usage + +Here is a possible [program](TODO-LINK) to test your function : + +```go +package main + +import ( + "fmt" +) + +func main() { + a := byte(0x26) + fmt.Printf("%08b\n", a) + fmt.Printf("%08b\n", ReverseBits(a)) +} +``` ### Expected output ```console student@ubuntu:~/piscine-go/reversebits$ go build student@ubuntu:~/piscine-go/reversebits$ ./reversebits -Not enough arguments. -student@ubuntu:~/piscine-go/reversebits$ ./reversebits 00100110 | cat -e -01100100$ -student@ubuntu:~/piscine-go/reversebits$ ./reversebits "djs" -The argument "djs" does not represent a byte -student@ubuntu:~/piscine-go/reversebits$ ./reversebits "0102039s" | cat -e -The argument "0102039s" does not represent a byte$ +00100110 +01100100 student@ubuntu:~/piscine-go/reversebits$ ``` From 92f02edc2969ecaff6ebfa8e183ed8a926d7cc35 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Thu, 21 Nov 2019 13:35:43 +0000 Subject: [PATCH 24/41] en and fr subject for reversebits --- subjects/reversebits.en.md | 6 +++--- subjects/reversebits.fr.md | 36 ++++++++++++++++++++++++++++-------- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/subjects/reversebits.en.md b/subjects/reversebits.en.md index 6839fe35..9a5199c1 100644 --- a/subjects/reversebits.en.md +++ b/subjects/reversebits.en.md @@ -13,7 +13,7 @@ This means that: ### Instructions -Write a function that takes a `byte` in binary format, that reverses it `bit` by `bit` (as shown in the example) and returns the result +Write a function that takes a `byte`, reverses it `bit` by `bit` (as shown in the example) and returns the result. ### Expected function @@ -24,7 +24,7 @@ func ReverseBits(by byte) byte { ``` ### Usage -Here is a possible [program](TODO-LINK) to test your function : +Here is a possible program to test your function : ```go package main @@ -40,7 +40,7 @@ func main() { } ``` -### Expected output +and its output : ```console student@ubuntu:~/piscine-go/reversebits$ go build diff --git a/subjects/reversebits.fr.md b/subjects/reversebits.fr.md index 50126970..78977347 100644 --- a/subjects/reversebits.fr.md +++ b/subjects/reversebits.fr.md @@ -2,19 +2,39 @@ ### Instructions -Écrire un programme qui prend un `byte`, qui l'inverse `bit` par `bit` (comme montré sur l'exemple) et qui affiche le résultat. +Écrire une fonction qui prend un `byte`, qui l'inverse `bit` par `bit` (comme montré sur l'exemple) et qui retourne le résultat. +### Fonction attendue + +```go +func ReverseBits(by byte) byte { + +} +``` ### Utilisation +Voici un programme possible pour tester votre fonction : + +```go +package main + +import ( + "fmt" +) + +func main() { + a := byte(0x26) + fmt.Printf("%08b\n", a) + fmt.Printf("%08b\n", ReverseBits(a)) +} +``` + +et son résultat : + ```console student@ubuntu:~/piscine-go/reversebits$ go build student@ubuntu:~/piscine-go/reversebits$ ./reversebits -Not enough arguments. -student@ubuntu:~/piscine-go/reversebits$ ./reversebits 00100110 | cat -e -01100100$ -student@ubuntu:~/piscine-go/reversebits$ ./reversebits "djs" -The argument "djs" does not represent a byte -student@ubuntu:~/piscine-go/reversebits$ ./reversebits "0102039s" | cat -e -The argument "0102039s" does not represent a byte$ +00100110 +01100100 student@ubuntu:~/piscine-go/reversebits$ ``` From 9767d8d33fad9676dac498ee353389333b1f8841 Mon Sep 17 00:00:00 2001 From: zhantolin <52797876+zhantolin@users.noreply.github.com> Date: Thu, 21 Nov 2019 13:15:37 +0600 Subject: [PATCH 25/41] test -> printparams --- subjects/printparams.en.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/printparams.en.md b/subjects/printparams.en.md index c521b866..b11a9357 100644 --- a/subjects/printparams.en.md +++ b/subjects/printparams.en.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line. Example of output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./printparams choumi is the best cat +student@ubuntu:~/piscine-go/printparams$ go build +student@ubuntu:~/piscine-go/printparams$ ./printparams choumi is the best cat choumi is the best cat -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/piscine-go/printparams$ ``` From a561ae03a8c0ccca589968e19ed07b32d76fce52 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Thu, 21 Nov 2019 13:47:59 +0000 Subject: [PATCH 26/41] Update printparams.fr.md --- subjects/printparams.fr.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/printparams.fr.md b/subjects/printparams.fr.md index e2b50f96..fba7e7dd 100644 --- a/subjects/printparams.fr.md +++ b/subjects/printparams.fr.md @@ -7,12 +7,12 @@ Exemple de résultat : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./printparams choumi is the best cat +student@ubuntu:~/piscine-go/printparams$ go build +student@ubuntu:~/piscine-go/printparams$ ./printparams choumi is the best cat choumi is the best cat -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/piscine-go/printparams$ ``` From 10801a16337908a7578e414ea6889923d06dcc58 Mon Sep 17 00:00:00 2001 From: PirozhokForAlem <52990395+PirozhokForAlem@users.noreply.github.com> Date: Thu, 21 Nov 2019 18:32:02 +0600 Subject: [PATCH 27/41] Update printnbrbase.en.md --- subjects/printnbrbase.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/printnbrbase.en.md b/subjects/printnbrbase.en.md index 15880adc..226c1ba2 100644 --- a/subjects/printnbrbase.en.md +++ b/subjects/printnbrbase.en.md @@ -17,7 +17,7 @@ The function has to manage negative numbers. (as shown in the example) ### Expected function ```go -func PrintNbrBase(nbr int, base string) () { +func PrintNbrBase(nbr int, base string) { } ``` From 3f25be0758b2eb31c5e08cba286c826275c81061 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Thu, 21 Nov 2019 14:03:03 +0000 Subject: [PATCH 28/41] Update printnbrbase.fr.md --- subjects/printnbrbase.fr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/printnbrbase.fr.md b/subjects/printnbrbase.fr.md index af3ee3a4..4031792b 100644 --- a/subjects/printnbrbase.fr.md +++ b/subjects/printnbrbase.fr.md @@ -17,7 +17,7 @@ La fonction doit gérer les nombres négatifs (comme montré sur l'exemple). ### Fonction attendue ```go -func PrintNbrBase(nbr int, base string) () { +func PrintNbrBase(nbr int, base string) { } ``` From bf2af70045389629def42b7a076d044e91e459e9 Mon Sep 17 00:00:00 2001 From: zhantolin <52797876+zhantolin@users.noreply.github.com> Date: Thu, 21 Nov 2019 23:19:48 +0600 Subject: [PATCH 29/41] test -> sortparams --- subjects/sortparams.en.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/sortparams.en.md b/subjects/sortparams.en.md index eb586885..06dcf007 100644 --- a/subjects/sortparams.en.md +++ b/subjects/sortparams.en.md @@ -7,8 +7,8 @@ Write a **program** that prints the arguments received in the command line in AS Example of output : ```console -student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./sortparams 1 a 2 A 3 b 4 C +student@ubuntu:~/piscine-go/sortparams$ go build +student@ubuntu:~/piscine-go/sortparams$ ./sortparams 1 a 2 A 3 b 4 C 1 2 3 @@ -17,5 +17,5 @@ A C a b -student@ubuntu:~/piscine-go/test$ +student@ubuntu:~/piscine-go/sortparams$ ``` From c6e40d119c31d6c6fc510da1b79056e31409bb5c Mon Sep 17 00:00:00 2001 From: zhantolin <52797876+zhantolin@users.noreply.github.com> Date: Thu, 21 Nov 2019 13:22:14 +0600 Subject: [PATCH 30/41] How to handle empty strings --- subjects/isalpha.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/isalpha.en.md b/subjects/isalpha.en.md index 298a9f02..09b52f81 100644 --- a/subjects/isalpha.en.md +++ b/subjects/isalpha.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that returns `true` if the `string` passed in parameter only contains alphanumerical characters, and that returns `false` otherwise. +Write a function that returns `true` if the `string` passed in parameter only contains alphanumerical characters or is empty, and that returns `false` otherwise. ### Expected function From 99bae9d0eaaeefed910ae7e5039d2c67b551196c Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Sun, 24 Nov 2019 21:41:20 +0000 Subject: [PATCH 31/41] curriculum adapted for bordeaux testing --- docs/grand-prix-go-curriculum.md | 330 +++++++++++++++++++++++++++++++ 1 file changed, 330 insertions(+) create mode 100644 docs/grand-prix-go-curriculum.md diff --git a/docs/grand-prix-go-curriculum.md b/docs/grand-prix-go-curriculum.md new file mode 100644 index 00000000..98783e5f --- /dev/null +++ b/docs/grand-prix-go-curriculum.md @@ -0,0 +1,330 @@ +# Grand Prix Go curriculum + +--- + +## Week One (Lundi 02/12/19 au DImanche 08/12/19) + +### Sprint 1 + +#### Introduction to shell + +Notions: basic usage and interaction with a command line terminal. + +Videos: + +- 1-2 `curl` with the GitHub api and Example of shell file | https://www.youtube.com/watch?v=A0Mqc215igw +- 1-3 `touch`, `chmod` and `echo` | https://www.youtube.com/watch?v=21h-vsuXgDU +- 1-4 `find` and `grep` | https://www.youtube.com/watch?v=7a1JSWHhJlM +- 1-5 `cut`, `sed` and `tr` | https://www.youtube.com/watch?v=Nil7rVP3eMI +- 1-6 `jq` and `wc` | https://www.youtube.com/watch?v=cQmcaOseuiA& + +Exercices: + +- introduction | https://public.01-edu.org/subjects/introduction.en +- make-it-better | https://public.01-edu.org/subjects/make-it-better.en +- to-git-or-not-to-git | https://public.01-edu.org/subjects/to-git-or-not-to-git.en +- who-are-you | https://public.01-edu.org/subjects/who-are-you.en +- cl-camp1 | https://public.01-edu.org/subjects/cl-camp1.en +- cl-camp2 | https://public.01-edu.org/subjects/cl-camp2.en +- cl-camp3 | https://public.01-edu.org/subjects/cl-camp3.en +- cl-camp4 | https://public.01-edu.org/subjects/cl-camp4.en +- cl-camp5 | https://public.01-edu.org/subjects/cl-camp5.en +- cl-camp6 | https://public.01-edu.org/subjects/cl-camp6.en +- cl-camp7 | https://public.01-edu.org/subjects/cl-camp7.en +- cl-camp8 | https://public.01-edu.org/subjects/cl-camp8.en +- now-get-to-work | https://public.01-edu.org/subjects/now-get-to-work.en + +### Sprint 2 + +#### Introduction to Go Lang and basic programmation concepts + +Notions: Variables declaration, Loops, if and else statement, usage of z01.PrintRune function. + +Videos: + +- 02-01-If and Else Statements in Go | https://www.youtube.com/watch?v=rnF1_SfeGE4 +- 02-02-ForLoops | https://www.youtube.com/watch?v=Bt47lx6q2-4 +- 02-03-PrintRune function | https://www.youtube.com/watch?v=o8JrvI3jqoM +- 02-04-Variables Declaration and ascii | https://www.youtube.com/watch?v=RCNOV8m0hJQ + +Exercices: + +- printalphabet | https://public.01-edu.org/subjects/printalphabet.en +- printreversealphabet | https://public.01-edu.org/subjects/printreversealphabet.en +- prindigits | https://public.01-edu.org/subjects/printdigits.en +- isnegative | https://public.01-edu.org/subjects/isnegative.en +- printcomb | https://public.01-edu.org/subjects/printcomb.en +- printcomb2 | https://public.01-edu.org/subjects/printcomb2.en +- printnbr | https://public.01-edu.org/subjects/printnbr.en +- printcombn | https://public.01-edu.org/subjects/printcombn.en + +### Sprint 3 + +#### Introduction to Go Lang and basic programmation concepts II + +Notions: String Manupulation, Range Loops, Pointers, Modulo and Division relative to computer science. + +Videos: + +- 03-01-StringsManipulation | https://www.youtube.com/watch?v=8LplJN_8iOU +- 03-02-RangeLoop | https://www.youtube.com/watch?v=i89N4cjh1-g +- 03-03-Pointers on variables | https://www.youtube.com/watch?v=owVPa5b1BMc +- 03-04-Modulo and Division | https://www.youtube.com/watch?v=NVan-9-Ioec + +Exercices: + +- pointone | https://public.01-edu.org/subjects/pointone.en +- ultimatepointone | https://public.01-edu.org/subjects/ultimatepointone.en +- divmod | https://public.01-edu.org/subjects/divmod.en +- ultimatedivmod | https://public.01-edu.org/subjects/ultimatedivmod.en +- printstr | https://public.01-edu.org/subjects/printstr.en +- strlen | https://public.01-edu.org/subjects/strlen.en +- swap | https://public.01-edu.org/subjects/swap.en +- strrev | https://public.01-edu.org/subjects/strrev.en +- basicatoi | https://public.01-edu.org/subjects/basicatoi.en +- basicatoi2 | https://public.01-edu.org/subjects/basicatoi2.en +- atoi | https://public.01-edu.org/subjects/atoi.en +- sortintegerable | https://public.01-edu.org/subjects/sortintegertable.en + +### Checkpoint 1 (4hours) + +#### Basic functions and programs skills evaluation, based on Sprint 2 and Sprint 3 + +### CLM (Contre La Montre) 1 - Rectangle Drawing + +#### First Group project. Problem resolution. Usage of first knowledge (loop and if/else) + +--- + +## Week Two (Lundi 09/12/2019 à Dimanche 15/12/2019) + +### Sprint 4 + +#### Algorithmia concepts + +Notions: Iterative and recursive programmation + +Videos: + +- 04-01-Iterativity and Recursivity | https://www.youtube.com/watch?v=oCZDdAID5Ik + +Exercices: + +- iterativefactorial | https://public.01-edu.org/subjects/iterativefactorial.en +- recursivefactorial | https://public.01-edu.org/subjects/recursivefactorial.en +- iterativepower | https://public.01-edu.org/subjects/iterativepower.en +- recursivepower | https://public.01-edu.org/subjects/recursivepower.en +- fibonacci | https://public.01-edu.org/subjects/fibonacci.en +- sqrt | https://public.01-edu.org/subjects/sqrt.en +- isprime | https://public.01-edu.org/subjects/isprime.en +- findnextprime | https://public.01-edu.org/subjects/findnextprime.en +- eightqueens | https://public.01-edu.org/subjects/eightqueens.en + +### Sprint 5 + +#### Application of previously viewed concepts. + +Notions: String Manipulation and medium-advanced algorithmia + +Videos: + +- 05-01-Runes, Bytes and Strings | https://www.youtube.com/watch?v=-eIU5ISID64 + +Exercices: + +- firstrune | https://public.01-edu.org/subjects/firstrune.en +- nrune | https://public.01-edu.org/subjects/nrune.en +- lastrune | https://public.01-edu.org/subjects/lastrune.en +- index | https://public.01-edu.org/subjects/index.en +- compare | https://public.01-edu.org/subjects/compare.en +- toupper | https://public.01-edu.org/subjects/toupper.en +- tolower | https://public.01-edu.org/subjects/tolower.en +- capitalize | https://public.01-edu.org/subjects/capitalize.en +- isalpha | https://public.01-edu.org/subjects/isalpha.en +- isnumeric | https://public.01-edu.org/subjects/isnumeric.en +- islower | https://public.01-edu.org/subjects/islower.en +- isupper | https://public.01-edu.org/subjects/isupper.en +- isprintable | https://public.01-edu.org/subjects/isprintable.en +- concat | https://public.01-edu.org/subjects/concat.en +- basicjoin | https://public.01-edu.org/subjects/basicjoin.en +- join | https://public.01-edu.org/subjects/join.en +- printnbrbase | https://public.01-edu.org/subjects/printnbrbase.en +- atoibase | https://public.01-edu.org/subjects/atoibase.en + +### Sprint 6 + +#### Usage of OS.Args + +Notions: Arguments manipulation in programs + +Videos: + +- 06-01-Os.Args | https://www.youtube.com/watch?v=I1xt_TLRhF0 + +Exercices: + +- printprogramname | https://public.01-edu.org/subjects/printprogramname.en +- printparams | https://public.01-edu.org/subjects/printparams.en +- revparams | https://public.01-edu.org/subjects/revparams.en +- sortparams | https://public.01-edu.org/subjects/sortparams.en + +### Sprint 7 + +#### The Memory Allocation in GoLang + +Notions: Usage of Make and Append + +Videos: + +- 07-01-Make and Append methods | https://www.youtube.com/watch?v=2HHVUM0YQuI + +Exercices: + +- appendrange | https://public.01-edu.org/subjects/apprendrange.en +- makerange | https://public.01-edu.org/subjects/makerange.en +- concatparams | https://public.01-edu.org/subjects/concatparams.en +- splitwhitespaces | https://public.01-edu.org/subjects/splitwhitespaces.en +- printwordstables | https://public.01-edu.org/subjects/printwordstables.en +- convertbase | https://public.01-edu.org/subjects/converbase.en +- split | https://public.01-edu.org/subjects/split.en + +### Checkpoint 2 (4hours) + +#### Basic functions and programs skills evaluation, based on Sprint 2 and Sprint 6 + +### CLM (Contre La Montre) 2 - Sudoku + +#### Second Group project. Problem resolution. Usage of Memory manipulation tools + +--- + +## Week Three + Holiday project (Lundi 16/12/2019 à dimache 05/01/2020 ) + +### Sprint 8 + +#### Introduction to Structures and advanced types in GoLang + +Notions: Creation of struct types and file manipulation (Open, Read, Close methods) + +Videos: + +- 08-01-Structures in Go | https://www.youtube.com/watch?v=-24M7r7VuLY +- 08-02-File Manipulation in go | https://www.youtube.com/watch?v=8vUgchQGhcQ + +Exercices: + +- bool | https://public.01-edu.org/subjects/bool.en +- point | https://public.01-edu.org/subjects/point.en +- displayfile | https://public.01-edu.org/subjects/displayfile.en +- cat | https://public.01-edu.org/subjects/cat.en +- ztail | https://public.01-edu.org/subjects/ztail.en + +### Sprint 9 + +#### Functions as argument + +Notions: Advance function prototyping + +Videos: + +- 09-01-Functions as Arguments | https://www.youtube.com/watch?v=lw8jUwsluAE + +Exercices: + +- foreach | https://public.01-edu.org/subjects/foreach.en +- map | https://public.01-edu.org/subjects/map.en +- any | https://public.01-edu.org/subjects/any.en +- countif | https://public.01-edu.org/subjects/countif.en +- issorted | https://public.01-edu.org/subjects/issorted.en +- doop | https://public.01-edu.org/subjects/doop.en +- sortwordarr | https://public.01-edu.org/subjects/sortwordarr.en +- advancedsortwordarr | https://public.01-edu.org/subjects/advancedsortwordarr.en + +### Sprint 10 + +#### Hackathon + +Notions: All previously viewed concepts in team work + +Exercices: + +- rot14 | https://public.01-edu.org/subjects/rot14.en +- abort | https://public.01-edu.org/subjects/abort.en +- collatzcountdown | https://public.01-edu.org/subjects/collatzcountdown.en +- comcheck | https://public.01-edu.org/subjects/comcheck.en +- enigma | https://public.01-edu.org/subjects/enigma.en +- pilot | https://public.01-edu.org/subjects/pilot.en +- fixthemain | https://public.01-edu.org/subjects/fixthemain.en +- compact | https://public.01-edu.org/subjects/compact.en +- activebits | https://public.01-edu.org/subjects/activebits.en +- max | https://public.01-edu.org/subjects/max.en +- join | https://public.01-edu.org/subjects/join.en +- unmatch | https://public.01-edu.org/subjects/unmatch.en + +### Checkpoint 3 (4hours) + +#### Basic functions and programs skills evaluation, based on Sprint 2 and Sprint 8 + +### CLM (Contre La Montre) 3 - File Reader ( Projet pour les 2 semaines de vacances) + +#### Second Group project. Problem resolution. File manipulation based on CLM (Contre La Montre) 1 + +--- + +## Week Four (lundi 06/01/2020 à vendredi 10/01/2020) + +### Sprint 11 + +#### Linked lists in GoLang + +Notions: Pointers manipulation and data structure + +Videos: + +- 11-01-Linked Lists Introduction | https://www.youtube.com/watch?v=EPICVEbylU0 + +Exercices: + +- listpushback | https://public.01-edu.org/subjects/listpushback.en +- listpushfront | https://public.01-edu.org/subjects/listpushfront.en +- listsize | https://public.01-edu.org/subjects/listsize.en +- listlast | https://public.01-edu.org/subjects/listlast.en +- listclear | https://public.01-edu.org/subjects/listclear.en +- listat | https://public.01-edu.org/subjects/listat.en +- listreverse | https://public.01-edu.org/subjects/listreverse.en +- listforeach | https://public.01-edu.org/subjects/listforeach.en +- listforeachif | https://public.01-edu.org/subjects/listforeachif.en +- listfind | https://public.01-edu.org/subjects/listfind.en +- listremoveif | https://public.01-edu.org/subjects/listremoveif.en +- listmerge | https://public.01-edu.org/subjects/listmerge.en +- listsort | https://public.01-edu.org/subjects/listsort.en +- sortlistinsert | https://public.01-edu.org/subjects/sortlistinsert.en +- sortedlistmerge | https://public.01-edu.org/subjects/sortedlistmerge.en + +### Sprint 12 + +#### Binary Trees + +Notions: Advanced Data Structure using binary trees + +Videos: + +- 12-01-Introduction to Binary Trees | https://www.youtube.com/watch?v=3g2WCqWNIVs + +Exercices: + +- btreeinsertdata | https://public.01-edu.org/subjects/btreeinsertdata.en +- btreeapplyinorder | https://public.01-edu.org/subjects/btreeapplyinorder.en +- btreeapplypreorder | https://public.01-edu.org/subjects/btreeapplypreorder.en +- btreesearchitem | https://public.01-edu.org/subjects/btreesearchitem.en +- btreelevelcount | https://public.01-edu.org/subjects/btreelevelcount.en +- btreeisbinary | https://public.01-edu.org/subjects/btreeisbinary.en +- btreeapplylevel | https://public.01-edu.org/subjects/btreeapplylevel.en +- btreemax | https://public.01-edu.org/subjects/btreemax.en +- btreemin | https://public.01-edu.org/subjects/btreemin.en +- btreetransplant | https://public.01-edu.org/subjects/btreetransplant.en +- btreedeletenode | https://public.01-edu.org/subjects/btreedeletenode.en + +### Checkpoint 4 - Final Checkpoint (8hours) + +#### Functions and programs skills evaluation, based on Sprint 2 and Sprint 11 From bf66ee7e1b12e2456f3b38d05c67028ef9b7c98b Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 25 Nov 2019 11:40:58 +0000 Subject: [PATCH 32/41] fix subject cat --- subjects/cat.en.md | 4 ++-- subjects/cat.fr.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 67232219..8e5d2573 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -24,9 +24,9 @@ Write a program that has the same behaviour as the system's `cat` command-line. ```console student@ubuntu:~/piscine-go/cat$ go build -student@ubuntu:~/piscine-go/cat$ ./cat -Hello +student@ubuntu:~/piscine-go/cat$ ./cat Hello There Hello +There student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt diff --git a/subjects/cat.fr.md b/subjects/cat.fr.md index 1ba44989..f7f04a64 100644 --- a/subjects/cat.fr.md +++ b/subjects/cat.fr.md @@ -26,9 +26,9 @@ ```console student@ubuntu:~/piscine-go/cat$ go build -student@ubuntu:~/piscine-go/cat$ ./cat -Hello +student@ubuntu:~/piscine-go/cat$ ./cat Hello There Hello +There student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt From 278f44370db5878b7118fd7dd9d74207aba2daca Mon Sep 17 00:00:00 2001 From: Tlekbai Ali Date: Mon, 25 Nov 2019 17:58:29 +0600 Subject: [PATCH 33/41] Clarify rot14 (#341) * Clarify rot14 On exam not all students faced rot13 before. --- subjects/rot14.en.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subjects/rot14.en.md b/subjects/rot14.en.md index a3191477..3a369444 100644 --- a/subjects/rot14.en.md +++ b/subjects/rot14.en.md @@ -2,9 +2,7 @@ ### Instructions -Write a function `rot14` that returns the `string` within the parameter transformed into a `rot14 string`. - -- There is the need to know what `rot13` stands for. +Write a function `rot14` that returns the `string` within the parameter transformed into a `rot14 string`, that replaces a letter with the 14th letter after it, in the alphabet. ### Expected function From 43c31e91979b58fc5da72355e87ba8731aff3f69 Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 25 Nov 2019 12:35:08 +0000 Subject: [PATCH 34/41] removing error handling --- subjects/cat.en.md | 2 -- subjects/cat.fr.md | 2 -- 2 files changed, 4 deletions(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 8e5d2573..03a923b1 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -18,8 +18,6 @@ Write a program that has the same behaviour as the system's `cat` command-line. `"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. - - The program must be submitted inside a folder named `cat`. ```console diff --git a/subjects/cat.fr.md b/subjects/cat.fr.md index f7f04a64..1d677435 100644 --- a/subjects/cat.fr.md +++ b/subjects/cat.fr.md @@ -18,8 +18,6 @@ `"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."` -- En cas d'erreur le programme doit imprimer l'erreur. - - L eprogramme doit être rendu dans un dossier nommé `cat`. ### Utilisation: From ef478d52c99727fb4a1e152d02e9d0fe70474520 Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 25 Nov 2019 16:30:58 +0000 Subject: [PATCH 35/41] correcting cat subject --- subjects/cat.en.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 03a923b1..67232219 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -18,13 +18,15 @@ Write a program that has the same behaviour as the system's `cat` command-line. `"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. + - The program must be submitted inside a folder named `cat`. ```console student@ubuntu:~/piscine-go/cat$ go build -student@ubuntu:~/piscine-go/cat$ ./cat Hello There +student@ubuntu:~/piscine-go/cat$ ./cat +Hello Hello -There student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt From d51c78c4ccfe88ddd21b48a7c53c31a4b40ae7f3 Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 26 Nov 2019 09:48:22 +0000 Subject: [PATCH 36/41] adding error to exemple --- subjects/cat.en.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 67232219..29aa610e 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -24,13 +24,15 @@ Write a program that has the same behaviour as the system's `cat` command-line. ```console student@ubuntu:~/piscine-go/cat$ go build -student@ubuntu:~/piscine-go/cat$ ./cat -Hello +student@ubuntu:~/piscine-go/cat$ ./cat abc +open abc: no such file or directory Hello student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing +student@ubuntu:~/piscine-go/cat$ ./cat +Hello student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing - "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." +student@ubuntu:~/piscine-go/cat$ ``` From 3bdc916af31ec28b062fadec5f59567798725cf0 Mon Sep 17 00:00:00 2001 From: OGordoo Date: Tue, 26 Nov 2019 10:55:29 +0000 Subject: [PATCH 37/41] Doop Operators and Overflow --- subjects/doop.en.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subjects/doop.en.md b/subjects/doop.en.md index fd67dc19..3f362370 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -10,10 +10,14 @@ The program has to be used with three arguments: - An operator - Another value +The following operators are considered valid: "+", "-", "/", "*", "%". + In case of an invalid operator the programs prints `0`. In case of an invalid number of arguments the program prints nothing. +In case of overflow the program prints **Overflow**. + The program has to handle the modulo and division operations by 0 as shown on the output examples below. `fmt.Print` is authorized. @@ -33,6 +37,8 @@ student@ubuntu:~/piscine-go/test$ ./doop 1 / 0 | cat -e No division by 0$ student@ubuntu:~/piscine-go/test$ ./doop 1 % 0 | cat -e No Modulo by 0$ +student@ubuntu:~/piscine-go/test$ ./doop 9223372036854775807 + 1 +Overflow student@ubuntu:~/piscine-go/test$ ./doop 1 "*" 1 1 student@ubuntu:~/piscine-go/test$ ./doop 1 "*" -1 From 7189b3656dea345842fe1d9dd3b36cc001e8cf04 Mon Sep 17 00:00:00 2001 From: MSilva95 Date: Tue, 26 Nov 2019 12:02:33 +0000 Subject: [PATCH 38/41] add cases of overflow --- subjects/doop.en.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subjects/doop.en.md b/subjects/doop.en.md index 3f362370..ece1b078 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -10,6 +10,8 @@ The program has to be used with three arguments: - An operator - Another value +You should use `Int64`. + The following operators are considered valid: "+", "-", "/", "*", "%". In case of an invalid operator the programs prints `0`. @@ -39,6 +41,10 @@ student@ubuntu:~/piscine-go/test$ ./doop 1 % 0 | cat -e No Modulo by 0$ student@ubuntu:~/piscine-go/test$ ./doop 9223372036854775807 + 1 Overflow +student@ubuntu:~/piscine-go/test$ ./doop -9223372036854775809 "*" 3 +Overflow +student@ubuntu:~/piscine-go/test$ ./doop 9223372036854775807 "*" 3 +Overflow student@ubuntu:~/piscine-go/test$ ./doop 1 "*" 1 1 student@ubuntu:~/piscine-go/test$ ./doop 1 "*" -1 From f553ef1891b6eecdad88cf68e04524b60a1bc5ae Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Tue, 26 Nov 2019 13:05:36 +0000 Subject: [PATCH 39/41] Typo --- subjects/convertbase.en.md | 2 +- subjects/doop.en.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/convertbase.en.md b/subjects/convertbase.en.md index 9c4f1e59..ba136e61 100644 --- a/subjects/convertbase.en.md +++ b/subjects/convertbase.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that returns the convertion of a `string` number from one `string` baseFrom to one `string` baseTo. +Write a function that returns the conversion of a `string` number from one `string` baseFrom to one `string` baseTo. Only valid bases will be tested. diff --git a/subjects/doop.en.md b/subjects/doop.en.md index ece1b078..89773212 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -10,7 +10,7 @@ The program has to be used with three arguments: - An operator - Another value -You should use `Int64`. +You should use `int64`. The following operators are considered valid: "+", "-", "/", "*", "%". From d2e4c89fe34b605a6f9dd269f0df69ca15b689db Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Tue, 26 Nov 2019 13:06:08 +0000 Subject: [PATCH 40/41] Prettify --- subjects/doop.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/doop.en.md b/subjects/doop.en.md index 89773212..3a133185 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -12,13 +12,13 @@ The program has to be used with three arguments: You should use `int64`. -The following operators are considered valid: "+", "-", "/", "*", "%". +The following operators are considered valid: `+`, `-`, `/`, `*`, `%`. In case of an invalid operator the programs prints `0`. In case of an invalid number of arguments the program prints nothing. -In case of overflow the program prints **Overflow**. +In case of overflow the program prints `Overflow`. The program has to handle the modulo and division operations by 0 as shown on the output examples below. From 1fbca1cccb2cc881f69de9e2ca09780900389d32 Mon Sep 17 00:00:00 2001 From: LEEDASILVA <39002521+LEEDASILVA@users.noreply.github.com> Date: Tue, 26 Nov 2019 14:40:21 +0000 Subject: [PATCH 41/41] Update cat.en.md --- subjects/cat.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 29aa610e..8e5875d3 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -26,11 +26,11 @@ Write a program that has the same behaviour as the system's `cat` command-line. student@ubuntu:~/piscine-go/cat$ go build student@ubuntu:~/piscine-go/cat$ ./cat abc open abc: no such file or directory -Hello student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing student@ubuntu:~/piscine-go/cat$ ./cat Hello +Hello^C student@ubuntu:~/piscine-go/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "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."