From 8f185125621e94b54691e2f1996d81c3a779ff75 Mon Sep 17 00:00:00 2001 From: Augusto Date: Mon, 7 Jun 2021 15:03:13 +0100 Subject: [PATCH 01/29] Rephrase the explanation for iterative and recursive power exercise --- subjects/iterativepower/README.md | 2 +- subjects/recursivepower/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/iterativepower/README.md b/subjects/iterativepower/README.md index 52b0228e..05542790 100644 --- a/subjects/iterativepower/README.md +++ b/subjects/iterativepower/README.md @@ -2,7 +2,7 @@ ### Instructions -Write an **iterative** function that returns the power of the `int` passed as parameter. +Write an **iterative** function that returns the value of `nb` to the power of `power`. Negative powers will return `0`. Overflows do **not** have to be dealt with. diff --git a/subjects/recursivepower/README.md b/subjects/recursivepower/README.md index 3e2c6163..580e17c9 100644 --- a/subjects/recursivepower/README.md +++ b/subjects/recursivepower/README.md @@ -2,7 +2,7 @@ ### Instructions -Write an **recursive** function that returns the power of the `int` passed as parameter. +Write a **recursive** function that returns the the value of `nb` to the power `power`. Negative powers will return `0`. Overflows do **not** have to be dealt with. From 5aa202fc57f76bd1d51053cada2e60a1c53ba002 Mon Sep 17 00:00:00 2001 From: Augusto Date: Mon, 7 Jun 2021 15:24:44 +0100 Subject: [PATCH 02/29] Rephrase fibonacci exercise instructions --- subjects/fibonacci/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/fibonacci/README.md b/subjects/fibonacci/README.md index cb90c944..68e66353 100644 --- a/subjects/fibonacci/README.md +++ b/subjects/fibonacci/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a **recursive** function that returns the value of the fibonacci sequence matching the index passed as parameter. +Write a **recursive** function that returns the value at the position `index` in the fibonacci sequence. The first value is at index `0`. From 0dc5d03516b53c7e037b938a9f6d8fb01559e0d4 Mon Sep 17 00:00:00 2001 From: Augusto Date: Mon, 7 Jun 2021 16:29:17 +0100 Subject: [PATCH 03/29] Rephrase instructions for exercise splitwhitespaces and some small fixes --- subjects/appendrange/README.md | 2 +- subjects/makerange/README.md | 2 +- subjects/printwordstables/README.md | 4 +--- subjects/splitwhitespaces/README.md | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/subjects/appendrange/README.md b/subjects/appendrange/README.md index 3190b4d2..0b0140da 100644 --- a/subjects/appendrange/README.md +++ b/subjects/appendrange/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that takes an `int` min and an `int` max as parameters. That function returns a slice of `int` with all the values between min and max. +Write a function that takes an `int` min and an `int` max as parameters. That function returns a slice of `int`s with all the values between min and max. Min is included, and max is excluded. diff --git a/subjects/makerange/README.md b/subjects/makerange/README.md index 588781ca..feccdab2 100644 --- a/subjects/makerange/README.md +++ b/subjects/makerange/README.md @@ -3,7 +3,7 @@ ### Instructions Write a function that takes an `int` min and an `int` max as parameters. -That function returns a slice of `int` with all the values between min and max. +That function returns a slice of `int`s with all the values between min and max. Min is included, and max is excluded. diff --git a/subjects/printwordstables/README.md b/subjects/printwordstables/README.md index 21cd4f55..5297255e 100644 --- a/subjects/printwordstables/README.md +++ b/subjects/printwordstables/README.md @@ -2,9 +2,7 @@ ### Instructions -Write a function that prints the words of a `string` slice that will be returned by a function `SplitWhiteSpaces`. - -Each word is on a single line (each word ends with a `\n`). +Write a function that receives a `string slice` and prints each element of the slice in one line. ### Expected function diff --git a/subjects/splitwhitespaces/README.md b/subjects/splitwhitespaces/README.md index de3247ba..96769706 100644 --- a/subjects/splitwhitespaces/README.md +++ b/subjects/splitwhitespaces/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that separates the words of a `string` and puts them in a `string` slice. +Write a function that separates the words of a `string` and puts them in a `string slice`. The separators are spaces, tabs and newlines. From 9e97040d7936ca64c75c1d89a9001302ba5fcf6f Mon Sep 17 00:00:00 2001 From: Augusto Date: Mon, 7 Jun 2021 16:35:41 +0100 Subject: [PATCH 04/29] Rephrase instructions of exercise `split` --- subjects/split/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subjects/split/README.md b/subjects/split/README.md index f98fdc5b..dae5d8f3 100644 --- a/subjects/split/README.md +++ b/subjects/split/README.md @@ -2,9 +2,7 @@ ### Instructions -Write a function that separates the words of a `string` and puts them in a `string` slice. - -The separators are the characters of the separator string given in parameter. +Write a function that receives a string and a separator and returns a `slice of strings` that results of splitting the string `s` by the separator `sep`. ### Expected function From 2c240127afbe7087a64cf22a08bea1925dc95da7 Mon Sep 17 00:00:00 2001 From: Augusto Date: Mon, 7 Jun 2021 16:47:10 +0100 Subject: [PATCH 05/29] Rephrase instructions for exercise `convertbase` --- subjects/convertbase/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subjects/convertbase/README.md b/subjects/convertbase/README.md index 06269e65..6638e799 100644 --- a/subjects/convertbase/README.md +++ b/subjects/convertbase/README.md @@ -2,7 +2,10 @@ ### Instructions -Write a function that returns the conversion of a `string` number from one `string` baseFrom to one `string` baseTo. +Write a function that receives three arguments: +- `nbr`: A string representing a numberic value in a [base](https://simple.wikipedia.org/wiki/Base_(mathematics)). +- `baseFrom`: A string representing the base `nbr` it's using. +- `baseTo`: A string representing the base `nbr` should be represented in the returned value. Only valid bases will be tested. From 1d3e8ab4ace246a20a78ce42acd9ec64a404274b Mon Sep 17 00:00:00 2001 From: Augusto Date: Mon, 7 Jun 2021 17:17:30 +0100 Subject: [PATCH 06/29] Clarify instructions for the exercise `boolean` --- subjects/boolean/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/subjects/boolean/README.md b/subjects/boolean/README.md index e098eb92..997b51e2 100644 --- a/subjects/boolean/README.md +++ b/subjects/boolean/README.md @@ -2,14 +2,12 @@ ### Instructions -Create a `.go` file. +Create a new directory called `boolean`. -- The code below has to be copied in that file. +- The code below has to be copied in a file called `main.go` inside the `boolean` directory. - The necessary changes have to be applied so that the program works. -- The program must be submitted inside a folder with the name `boolean`. - ### Code to be copied ```go From 4eced704b87be7897ceaca06fb92d91b103e9433 Mon Sep 17 00:00:00 2001 From: Augusto Date: Mon, 7 Jun 2021 17:30:20 +0100 Subject: [PATCH 07/29] Rephrase the instructions of the exercise `point` --- subjects/convertbase/README.md | 3 +++ subjects/point/README.md | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/subjects/convertbase/README.md b/subjects/convertbase/README.md index 6638e799..bb830281 100644 --- a/subjects/convertbase/README.md +++ b/subjects/convertbase/README.md @@ -3,8 +3,11 @@ ### Instructions Write a function that receives three arguments: + - `nbr`: A string representing a numberic value in a [base](https://simple.wikipedia.org/wiki/Base_(mathematics)). + - `baseFrom`: A string representing the base `nbr` it's using. + - `baseTo`: A string representing the base `nbr` should be represented in the returned value. Only valid bases will be tested. diff --git a/subjects/point/README.md b/subjects/point/README.md index 7d532066..0c4c901b 100644 --- a/subjects/point/README.md +++ b/subjects/point/README.md @@ -2,14 +2,12 @@ ### Instructions -Create a `.go` file. +Create a new directory called `point`. -- The code below has to be copied in that file. +- The code below has to be copied in a file called `main.go` inside the `point` directory. - The necessary changes have to be applied so that the program works. -- The program must be submitted inside a folder with the name `point`. - ### Code to be copied ```go From cba96cfa4ad1f91f9d95b768f72a255f99e1b775 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 11:44:20 +0100 Subject: [PATCH 08/29] Add link to the collatz conjecture --- subjects/collatzcountdown/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/collatzcountdown/README.md b/subjects/collatzcountdown/README.md index f2547dd3..3bbf69a7 100644 --- a/subjects/collatzcountdown/README.md +++ b/subjects/collatzcountdown/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, `CollatzCountdown`, that returns the number of steps necessary to reach 1 using the collatz countdown. +Write a function, `CollatzCountdown`, that returns the number of steps necessary to reach 1 using the [collatz countdown](https://en.wikipedia.org/wiki/Collatz_conjecture). - It must return `-1` if `start` is equal to `0` or negative. From a6f7ce3c308dfa36a20cd13d3df65ed443d35f31 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 11:49:49 +0100 Subject: [PATCH 09/29] Fix grammar in exercise `enigma` --- subjects/enigma/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/enigma/README.md b/subjects/enigma/README.md index 84d2efee..d4136e02 100644 --- a/subjects/enigma/README.md +++ b/subjects/enigma/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function called `Enigma` that receives pointers to as arguments and move its values around to hide them. +Write a function called `Enigma` that receives pointers as arguments and move its values around to hide them. This function will put : From 39e8eb3ccf446b699a52c184da71ab455ee843b0 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 12:02:51 +0100 Subject: [PATCH 10/29] Clarify instructution for exercise `pilot` --- subjects/pilot/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subjects/pilot/README.md b/subjects/pilot/README.md index e3b7f370..c12200d7 100644 --- a/subjects/pilot/README.md +++ b/subjects/pilot/README.md @@ -2,7 +2,11 @@ ### Instructions -Append to the code below what is needed so that the program compiles. +- Create a directory called `pilot`. +- Inside the directory `pilot` create a file `main.go`. +- Copy the code below to `main.go` and add the code needed so that the program compiles. + +> Note: You can only add code, not delete. ### Usage From 7d693b518b7333c8f152d7171b94bd48f8427ac4 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 12:09:09 +0100 Subject: [PATCH 11/29] Add link to the explanation of `zero values` in go` --- subjects/compact/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/compact/README.md b/subjects/compact/README.md index 709d5c72..2a3470be 100644 --- a/subjects/compact/README.md +++ b/subjects/compact/README.md @@ -2,10 +2,10 @@ ### Instructions -Write a function `Compact` that takes a pointer to a slice of `string` as the argument. +Write a function `Compact` that takes a pointer to a slice of `string`s as the argument. This function must: -- Return the number of elements with non-zero value. +- Return the number of elements with [non-zero value](https://tour.golang.org/basics/12). - Compact, i.e., delete the elements with zero-values in the slice. From 7d8872744a26eebbba9d55d10313a54a34e775d5 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 12:17:29 +0100 Subject: [PATCH 12/29] Fix typo in `unmatched` instructions` --- subjects/unmatch/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/unmatch/README.md b/subjects/unmatch/README.md index 5e071a7f..25de0b7a 100644 --- a/subjects/unmatch/README.md +++ b/subjects/unmatch/README.md @@ -4,7 +4,7 @@ Write a function, `Unmatch`, that returns the element of the slice that does not have a correspondent pair. -- If all the number have a correspondent pair, it shoud return `-1`. +- If all the number have a correspondent pair, it should return `-1`. ### Expected function From 86f550a54564a71098964fa53efedebf9980ef0e Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 12:21:09 +0100 Subject: [PATCH 13/29] Fix grammar and phrasing of instructions of `join` exercise --- subjects/join/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/join/README.md b/subjects/join/README.md index fdf73457..6fb436ee 100644 --- a/subjects/join/README.md +++ b/subjects/join/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that simulates the behaviour of the `Join` function in Go. This function returns the concatenation of all the strings of a slice of strings **separated** by a separator passed in argument. +Write a function that returns the concatenation of all the `string`s of a slice of `string`s **separated** by the separator passed in the argument `sep`. ### Expected function From 9fae2e59686da6483fc1e06b8c781061f6c703f3 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 13:34:09 +0100 Subject: [PATCH 14/29] Add notions of the binary trees --- subjects/btreeinsertdata/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subjects/btreeinsertdata/README.md b/subjects/btreeinsertdata/README.md index 7b637a78..558ba57d 100644 --- a/subjects/btreeinsertdata/README.md +++ b/subjects/btreeinsertdata/README.md @@ -2,10 +2,14 @@ ### Instructions -Write a function that inserts new data in a binary search tree following the properties of binary search trees. +Write a function that inserts new data in a `binary search tree` following the special properties of a `binary search trees`. The nodes must be defined as follows : +### Notions + +- [binary search trees](https://en.wikipedia.org/wiki/Binary_search_tree) + ### Expected function ```go From c96169c4e37705ebbad5cfd192cc3593790c880e Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 13:55:01 +0100 Subject: [PATCH 15/29] Add notions for the tree traversal exercises --- subjects/btreeapplyinorder/README.md | 6 +++++- subjects/btreeapplypostorder/README.md | 6 +++++- subjects/btreeapplypreorder/README.md | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/subjects/btreeapplyinorder/README.md b/subjects/btreeapplyinorder/README.md index ac93b868..4b4c99f1 100644 --- a/subjects/btreeapplyinorder/README.md +++ b/subjects/btreeapplyinorder/README.md @@ -2,7 +2,11 @@ ### Instructions -Write a function that applies a function in order to each element in the tree (see "in order tree walks"). +Write a function that applies a given function `f`, **in order**, to each element in the tree. + +### Notions + +- [Tree Traversal](https://en.wikipedia.org/wiki/Tree_traversal) ### Expected function diff --git a/subjects/btreeapplypostorder/README.md b/subjects/btreeapplypostorder/README.md index 80bf85b9..4c5f6121 100644 --- a/subjects/btreeapplypostorder/README.md +++ b/subjects/btreeapplypostorder/README.md @@ -2,7 +2,11 @@ ### Instructions -Write a function that applies a function using a postorder walk to each element in the tree. +Write a function that applies a given function `f`, to each element in the tree using a postorder walk. + +### Notions + +- [Tree Traversal](https://en.wikipedia.org/wiki/Tree_traversal) ### Expected function diff --git a/subjects/btreeapplypreorder/README.md b/subjects/btreeapplypreorder/README.md index b60cd9a5..5c9f154a 100644 --- a/subjects/btreeapplypreorder/README.md +++ b/subjects/btreeapplypreorder/README.md @@ -2,7 +2,11 @@ ### Instructions -Write a function that applies a function using a preorder walk to each element in the tree. +Write a function that applies a given function `f` to each element in the tree using a preorder walk. + +### Notions + +- [Tree Traversal](https://en.wikipedia.org/wiki/Tree_traversal) ### Expected function From da117bbf261d369080aae3cd37be2805884d6b96 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 13:57:24 +0100 Subject: [PATCH 16/29] Clarify instructions for the exercise `btreesearchitem` --- subjects/btreesearchitem/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/btreesearchitem/README.md b/subjects/btreesearchitem/README.md index 67b29d08..a364f57a 100644 --- a/subjects/btreesearchitem/README.md +++ b/subjects/btreesearchitem/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that searches for a node with a data element equal to `elem`and that returns that node. +Write a function that returns the `TreeNode` with a `data` field equal to `elem` if it exists in the tree, otherwise return `nil`. ### Expected function From 28840611b2ffefb72740812318f2e6f0dce1d165 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 14:03:34 +0100 Subject: [PATCH 17/29] Add a link for the binary trees definition --- subjects/btreeisbinary/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/btreeisbinary/README.md b/subjects/btreeisbinary/README.md index 7d57aa7b..d3a03faf 100644 --- a/subjects/btreeisbinary/README.md +++ b/subjects/btreeisbinary/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, `BTreeIsBinary`, that returns `true` only if the tree given by `root` follows the binary search tree properties. +Write a function, `BTreeIsBinary`, that returns `true` only if the tree given by `root` follows the binary search tree [properties](https://en.wikipedia.org/wiki/Binary_search_tree#Definition). ### Expected function From bd67fd2b5fc915c0919a984ee66cd7eda6aa67a8 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 14:06:08 +0100 Subject: [PATCH 18/29] Fix typo --- subjects/btreeapplybylevel/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/btreeapplybylevel/README.md b/subjects/btreeapplybylevel/README.md index 49854009..c9594c1b 100644 --- a/subjects/btreeapplybylevel/README.md +++ b/subjects/btreeapplybylevel/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, `BTreeApplyByLevel`, that applies the function given by `fn` to each node of the tree given by `root`. +Write a function, `BTreeApplyByLevel`, that applies the function given by `f`, to each node of the tree given by `root`. ### Expected function From 64280edf52102b9a74f77176a93ab141f4ef0b97 Mon Sep 17 00:00:00 2001 From: Augusto Date: Fri, 17 Sep 2021 15:10:16 +0100 Subject: [PATCH 19/29] Fix typo --- subjects/recursivepower/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/recursivepower/README.md b/subjects/recursivepower/README.md index 580e17c9..b4e92614 100644 --- a/subjects/recursivepower/README.md +++ b/subjects/recursivepower/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a **recursive** function that returns the the value of `nb` to the power `power`. +Write a **recursive** function that returns the value of `nb` to the power of `power`. Negative powers will return `0`. Overflows do **not** have to be dealt with. From 3265a9312d551f559006fc73b47cc73984ea6451 Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 20 Sep 2021 17:44:21 +0100 Subject: [PATCH 20/29] ascii-art-web: fix malformed relative links --- subjects/ascii-art-web/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subjects/ascii-art-web/README.md b/subjects/ascii-art-web/README.md index 08309414..efd64b81 100644 --- a/subjects/ascii-art-web/README.md +++ b/subjects/ascii-art-web/README.md @@ -4,7 +4,11 @@ Ascii-art-web consists in creating and running a server, in which it will be possible to use a web **GUI** (graphical user interface) version of your last project, [ascii-art](../ascii-art). -Your webpage must allow the use of different [banners](../ascii-art). +Your webpage must allow the use of the different banners: + +- [shadow](../ascii-art/shadow.txt) +- [standard](../ascii-art/standard.txt) +- [thinkertoy](../ascii-art/thinkertoy.txt) Implement the following HTTP endpoints: From 326cf046ef2312c32a2a89640939428bed147dbd Mon Sep 17 00:00:00 2001 From: OGordoo Date: Mon, 20 Sep 2021 18:29:10 +0100 Subject: [PATCH 21/29] go-reloaded " missing --- subjects/go-reloaded/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/go-reloaded/README.md b/subjects/go-reloaded/README.md index 91644ca7..38cb7680 100644 --- a/subjects/go-reloaded/README.md +++ b/subjects/go-reloaded/README.md @@ -29,7 +29,7 @@ The tool you are about to build will receive as arguments the name of a file con - Every instance of the ponctuations `'.'`, `','`, `'!'`, `'?'`, `':'` and `';'` should be close to the previous word and with a space appart from the next one. (Ex: "I was sitting over there ,and then BAMM !!" -> "I was sitting over there, and then BAMM!!"). - Except if there are groups of ponctuation like: '...' or '!?'. In this case the program should format the text as in the following example: "I was thinking ... You were right" -> "I was thinking... You were right". - The ponctuation mark `'''` should not have spaces if there are letters in both sides of it. Otherwise, the mark should be placed to the right of the next word and the following `'''` mark should be placed to its left. (Ex: "I'm exactly how they describe me: ' awesome '" -> "I'm exactly how they describe me: 'awesome'") - - If there are more than one word between the two `'''`, the program should place the marks next to the corresponding words (Ex: "As Elton John said: ' I am the most well-known homosexual in the world '" -> As Elton John said: 'I am the most well-known homosexual in the world') + - If there are more than one word between the two `'''`, the program should place the marks next to the corresponding words (Ex: "As Elton John said: ' I am the most well-known homosexual in the world '" -> "As Elton John said: 'I am the most well-known homosexual in the world'") - Every instance of `"a"` should turned into `"an"` if the next word begans with a vowel or an 'h'. (Ex: "There it was. A amazing rock!" -> "There it was. An amazing rock!"). ### Allowed packages From 517db85108de0b0bc35a0225242c48f2e2018df2 Mon Sep 17 00:00:00 2001 From: OGordoo Date: Tue, 21 Sep 2021 09:53:18 +0100 Subject: [PATCH 22/29] go-reloaded typo "ponctuation" --- subjects/go-reloaded/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subjects/go-reloaded/README.md b/subjects/go-reloaded/README.md index 38cb7680..1f84a5b7 100644 --- a/subjects/go-reloaded/README.md +++ b/subjects/go-reloaded/README.md @@ -26,9 +26,9 @@ The tool you are about to build will receive as arguments the name of a file con - For `(low)`, `(up)`, `(cap)` if a number appears next to it, like so: `(low, )` it turns the previous specified number of words in lowercase, uppercase or capitalized accordingly. (Ex: "This is so exciting (up, 2)" -> "This is SO EXCITING") -- Every instance of the ponctuations `'.'`, `','`, `'!'`, `'?'`, `':'` and `';'` should be close to the previous word and with a space appart from the next one. (Ex: "I was sitting over there ,and then BAMM !!" -> "I was sitting over there, and then BAMM!!"). - - Except if there are groups of ponctuation like: '...' or '!?'. In this case the program should format the text as in the following example: "I was thinking ... You were right" -> "I was thinking... You were right". -- The ponctuation mark `'''` should not have spaces if there are letters in both sides of it. Otherwise, the mark should be placed to the right of the next word and the following `'''` mark should be placed to its left. (Ex: "I'm exactly how they describe me: ' awesome '" -> "I'm exactly how they describe me: 'awesome'") +- Every instance of the punctuations `'.'`, `','`, `'!'`, `'?'`, `':'` and `';'` should be close to the previous word and with a space appart from the next one. (Ex: "I was sitting over there ,and then BAMM !!" -> "I was sitting over there, and then BAMM!!"). + - Except if there are groups of punctuation like: '...' or '!?'. In this case the program should format the text as in the following example: "I was thinking ... You were right" -> "I was thinking... You were right". +- The punctuation mark `'''` should not have spaces if there are letters in both sides of it. Otherwise, the mark should be placed to the right of the next word and the following `'''` mark should be placed to its left. (Ex: "I'm exactly how they describe me: ' awesome '" -> "I'm exactly how they describe me: 'awesome'") - If there are more than one word between the two `'''`, the program should place the marks next to the corresponding words (Ex: "As Elton John said: ' I am the most well-known homosexual in the world '" -> "As Elton John said: 'I am the most well-known homosexual in the world'") - Every instance of `"a"` should turned into `"an"` if the next word begans with a vowel or an 'h'. (Ex: "There it was. A amazing rock!" -> "There it was. An amazing rock!"). @@ -64,12 +64,12 @@ $cat result.txt There is no greater agony than bearing an untold story inside you. $ cat sample.txt -Ponctuation tests are ... kinda boring ,don't you think !? +Punctuation tests are ... kinda boring ,don't you think !? $ go run . sample.txt result.txt $cat result.txt -Ponctuation tests are... kinda boring, don't you think!? +Punctuation tests are... kinda boring, don't you think!? ``` This project will help you learn about : From 0a4fa4e8123ada39b3a889c8d57f9d6001c68991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 27 Sep 2021 11:23:36 +0100 Subject: [PATCH 23/29] Create README.md --- subjects/free-project/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 subjects/free-project/README.md diff --git a/subjects/free-project/README.md b/subjects/free-project/README.md new file mode 100644 index 00000000..6b954a48 --- /dev/null +++ b/subjects/free-project/README.md @@ -0,0 +1,29 @@ +## free-project + +### Instructions + +The free project is the opportunity to show what you have learned by making your +own webpage. + +You need to submit at least one `index.html` page, have some styling in a +`style.css` file and add a a `script.js` file, all of them must be properly +linked and used. + +Focus on building something that interest you, anything you want as long as you +use the given files for it: + +- Interactive trivia pages of something you love +- Business oriented ? Build your own branding with your online CV +- Artistic soul ? Make your own generative art +- You have a story to tell ? Make a point and click adventure +- Looking for a fun but ambitious idea ? Try a basic game (lots of JS) + +**Don't hesitate to use the code from the previous raid to get a head start.** + +> Not inspired ? Just focus on improving your previous raid: +> +> - Customize the colors +> - Change the subject +> - Add a new section, pictures +> - Do all the bonuses +> - Make sections collapsable From 34e20c9f91fce6b8da245c5866ed3b5d15792ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 27 Sep 2021 11:40:16 +0100 Subject: [PATCH 24/29] add free-project audit --- subjects/free-project/audit/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 subjects/free-project/audit/README.md diff --git a/subjects/free-project/audit/README.md b/subjects/free-project/audit/README.md new file mode 100644 index 00000000..96862459 --- /dev/null +++ b/subjects/free-project/audit/README.md @@ -0,0 +1,13 @@ +#### Required + +###### Is the `index.html` webpage displayed properly ? + +###### Is css applied from the `style.css` file ? + +###### Are scripts loaded from `script.js` file and no errors shown in the console ? + +#### Optional + +###### +Did you use a service to publish it ? (github pages or equivalent) + +###### +Does the webpage work on multiple window size ? (phone, tablets, computers...) From deb42d7726bc7712ac3444d5268cc6f1805a085b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 27 Sep 2021 11:46:24 +0100 Subject: [PATCH 25/29] Add bonuses to the free-project subject --- subjects/free-project/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subjects/free-project/README.md b/subjects/free-project/README.md index 6b954a48..4c1e46b2 100644 --- a/subjects/free-project/README.md +++ b/subjects/free-project/README.md @@ -27,3 +27,9 @@ use the given files for it: > - Add a new section, pictures > - Do all the bonuses > - Make sections collapsable + +### Extra + +If you want to go the extra mile here is to way to gain extra credits: +- Responsive (Make your web page work on mobile and desktop) +- Publish It ! (Use a service, like [github pages](https://pages.github.com/) or [cloudflare pages](https://pages.cloudflare.com/) to host your page, it's free) From ab7dda3592e67de13b89f45063183a425abd47cc Mon Sep 17 00:00:00 2001 From: OGordoo Date: Mon, 27 Sep 2021 14:34:02 +0100 Subject: [PATCH 26/29] ascii-art color usage small fix --- subjects/ascii-art/color/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/ascii-art/color/README.md b/subjects/ascii-art/color/README.md index 45bff366..f9c092db 100644 --- a/subjects/ascii-art/color/README.md +++ b/subjects/ascii-art/color/README.md @@ -11,9 +11,9 @@ The output should manipulate colors using the **flag** `--color=`, in whi - The flag must have exactly the same format as above, any other formats must return the following usage message: ```console -Usage: go run . [STRING] [BANNER] [OPTION] +Usage: go run . [STRING] [OPTION] -EX: go run . something standard --color= +EX: go run . something --color= ``` ### Instructions From 8cc8f5f743af9d016e8ac4792d19366cc882a9f0 Mon Sep 17 00:00:00 2001 From: OGordoo Date: Mon, 27 Sep 2021 14:43:59 +0100 Subject: [PATCH 27/29] go-reloaded: quotation marks fix --- subjects/go-reloaded/audit/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/go-reloaded/audit/README.md b/subjects/go-reloaded/audit/README.md index 9c630462..2a9ecf12 100644 --- a/subjects/go-reloaded/audit/README.md +++ b/subjects/go-reloaded/audit/README.md @@ -2,18 +2,18 @@ ###### Has the requirement for the allowed packages been respected? (Reminder for this project: (only [standard packages](https://golang.org/pkg/) -##### In a file called `sample.txt`, place the following text (without the quotation marks): "If I make you BREAKFAST IN BED (low, 3) just say thank you instead of: how (cap) did you get in my house (up, 2) ?". Now run the student program with the arguments: `sample.txt result.txt`. +##### In a file called `sample.txt`, place the following text (without the double quotes): "If I make you BREAKFAST IN BED (low, 3) just say thank you instead of: how (cap) did you get in my house (up, 2) ?". Now run the student program with the arguments: `sample.txt result.txt`. ###### Is the text present in `result.txt` equal to: "If I make you breakfast in bed just say thank you instead of: How did you get in MY HOUSE?" -##### In a file called `sample.txt` place the following text (without the quotation marks): "I have to pack 101 (bin) outfits. Packed 1a (hex) just to be sure". Now run the student program with the arguments: `sample.txt result.txt`. +##### In a file called `sample.txt` place the following text (without the double quotes): "I have to pack 101 (bin) outfits. Packed 1a (hex) just to be sure". Now run the student program with the arguments: `sample.txt result.txt`. ###### Is the text present in `result.txt` equal to: "I have to pack 5 outfits. Packed 26 just to be sure"? -##### In a file called `sample.txt` place the following text (without the quotation marks): "Don't be sad ,because sad backwards is das . And das not good". Now run the student program with the arguments: `sample.txt result.txt`. +##### In a file called `sample.txt` place the following text (without the double quotes): "Don't be sad ,because sad backwards is das . And das not good". Now run the student program with the arguments: `sample.txt result.txt`. ###### Is the text present in `result.txt` equal to: "Don't be sad, because sad backwards is das. And das not good" -##### In a file called `sample.txt` place the following text (without the quotation marks): "harold wilson (cap, 2) : ' I’m a optimist ,but a optimist who carries a raincoat . '". Now run the student program with the arguments: `sample.txt result.txt`. +##### In a file called `sample.txt` place the following text (without the double quotes): "harold wilson (cap, 2) : ' I’m a optimist ,but a optimist who carries a raincoat . '". Now run the student program with the arguments: `sample.txt result.txt`. ###### Is the text present in `result.txt` equal to: "Harold Wilson: 'I’m an optimist, but an optimist who carries a raincoat.'" From 826827f807504c4f9ff5a64cdd3fcf9044fb22f6 Mon Sep 17 00:00:00 2001 From: OGordoo Date: Tue, 28 Sep 2021 09:51:25 +0100 Subject: [PATCH 28/29] printwordstables clarification --- subjects/printwordstables/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/printwordstables/README.md b/subjects/printwordstables/README.md index 5297255e..d738ea84 100644 --- a/subjects/printwordstables/README.md +++ b/subjects/printwordstables/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that receives a `string slice` and prints each element of the slice in one line. +Write a function that receives a `string slice` and prints each element of the slice in a seperate line. ### Expected function From ed5b04c1ab75661dc6b8f96e32cf288b11e1c67a Mon Sep 17 00:00:00 2001 From: OGordoo Date: Wed, 6 Oct 2021 14:20:21 +0100 Subject: [PATCH 29/29] math-skills expected result fix --- subjects/math-skills/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subjects/math-skills/README.md b/subjects/math-skills/README.md index 133bef81..a32b7708 100644 --- a/subjects/math-skills/README.md +++ b/subjects/math-skills/README.md @@ -5,9 +5,9 @@ The purpose of this project is for you to calculate the following: - Average -- Standard Deviation -- Variance - Median +- Variance +- Standard Deviation ### Instructions @@ -35,9 +35,9 @@ After reading the file, your program must execute each of the calculations asked ```console Average: 35 -Standard Deviation: 65 -Variance: 5 Median: 4 +Variance: 5 +Standard Deviation: 65 ``` Please note that the values are rounded integers. @@ -52,6 +52,6 @@ This project will help you learn about: - Statistics and Mathematics - [Average](https://en.wikipedia.org/wiki/Average) - - [Standard Deviation](https://en.wikipedia.org/wiki/Standard_deviation) - - [Variance](https://en.wikipedia.org/wiki/Variance) - [Median](https://en.wikipedia.org/wiki/Median) + - [Variance](https://en.wikipedia.org/wiki/Variance) + - [Standard Deviation](https://en.wikipedia.org/wiki/Standard_deviation)