Browse Source

Remove template variable [[ROOT]] from subjects and fix subjects

pull/779/head
xpetit 4 years ago
parent
commit
32eddefd09
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 6
      subjects/abort/README.md
  2. 6
      subjects/activebits/README.md
  3. 4
      subjects/adding/README.md
  4. 4
      subjects/adding_twice/README.md
  5. 6
      subjects/addlinkednumbers/README.md
  6. 16
      subjects/addprimesum/README.md
  7. 6
      subjects/advancedsortwordarr/README.md
  8. 6
      subjects/alphacount/README.md
  9. 10
      subjects/alphamirror/README.md
  10. 6
      subjects/any/README.md
  11. 6
      subjects/appendrange/README.md
  12. 4
      subjects/arrange_it/README.md
  13. 4
      subjects/arrays/README.md
  14. 6
      subjects/atoi/README.md
  15. 6
      subjects/atoibase/README.md
  16. 10
      subjects/balancedstring/README.md
  17. 4
      subjects/banner/README.md
  18. 6
      subjects/basicatoi/README.md
  19. 6
      subjects/basicatoi2/README.md
  20. 6
      subjects/basicjoin/README.md
  21. 4
      subjects/bigger/README.md
  22. 4
      subjects/blood_types/README.md
  23. 4
      subjects/blood_types_s/README.md
  24. 6
      subjects/boolean/README.md
  25. 4
      subjects/border_cross/README.md
  26. 4
      subjects/borrow/README.md
  27. 4
      subjects/borrow_box/README.md
  28. 4
      subjects/borrow_me_the_reference/README.md
  29. 4
      subjects/box_it/README.md
  30. 4
      subjects/box_recursion/README.md
  31. 4
      subjects/boxing_todo/README.md
  32. 10
      subjects/brackets/README.md
  33. 10
      subjects/brackets_matching/README.md
  34. 12
      subjects/brainfuck/README.md
  35. 6
      subjects/btreeapplybylevel/README.md
  36. 6
      subjects/btreeapplyinorder/README.md
  37. 6
      subjects/btreeapplypostorder/README.md
  38. 6
      subjects/btreeapplypreorder/README.md
  39. 6
      subjects/btreedeletenode/README.md
  40. 6
      subjects/btreeinsertdata/README.md
  41. 6
      subjects/btreeisbinary/README.md
  42. 6
      subjects/btreelevelcount/README.md
  43. 6
      subjects/btreemax/README.md
  44. 6
      subjects/btreemin/README.md
  45. 6
      subjects/btreeprintroot/README.md
  46. 6
      subjects/btreesearchitem/README.md
  47. 6
      subjects/btreetransplant/README.md
  48. 6
      subjects/capitalize/README.md
  49. 4
      subjects/capitalizing/README.md
  50. 4
      subjects/card_deck/README.md
  51. 20
      subjects/cat/README.md
  52. 4
      subjects/changes/README.md
  53. 6
      subjects/chunk/README.md
  54. 4
      subjects/cipher/README.md
  55. 4
      subjects/circle/README.md
  56. 4
      subjects/cl-camp2/README.md
  57. 6
      subjects/cl-camp4/README.md
  58. 4
      subjects/cl-camp5/README.md
  59. 4
      subjects/cl-camp6/README.md
  60. 4
      subjects/cl-camp7/README.md
  61. 12
      subjects/cleanstr/README.md
  62. 4
      subjects/closures/README.md
  63. 4
      subjects/collect/README.md
  64. 8
      subjects/comcheck/README.md
  65. 4
      subjects/commits_stats/README.md
  66. 6
      subjects/compact/README.md
  67. 6
      subjects/compare/README.md
  68. 6
      subjects/concat/README.md
  69. 6
      subjects/concatparams/README.md
  70. 6
      subjects/convertbase/README.md
  71. 4
      subjects/copy/README.md
  72. 6
      subjects/countdown/README.md
  73. 6
      subjects/countif/README.md
  74. 4
      subjects/counting_words/README.md
  75. 6
      subjects/createelem/README.md
  76. 4
      subjects/delete_prefix/README.md
  77. 4
      subjects/diamond_creation/README.md
  78. 4
      subjects/display_table/README.md
  79. 10
      subjects/displaya/README.md
  80. 6
      subjects/displayalpham/README.md
  81. 6
      subjects/displayalrevm/README.md
  82. 12
      subjects/displayfile/README.md
  83. 10
      subjects/displayfirstparam/README.md
  84. 12
      subjects/displaylastparam/README.md
  85. 10
      subjects/displayz/README.md
  86. 4
      subjects/division_and_remainder/README.md
  87. 6
      subjects/divmod/README.md
  88. 26
      subjects/doop/README.md
  89. 4
      subjects/doubtful/README.md
  90. 4
      subjects/drop_the_thread/README.md
  91. 4
      subjects/easy_traits/README.md
  92. 4
      subjects/edit_distance/README.md
  93. 4
      subjects/eightqueens/README.md
  94. 6
      subjects/enigma/README.md
  95. 2
      subjects/ephemeris/README.md
  96. 4
      subjects/error_types/README.md
  97. 4
      subjects/events/README.md
  98. 12
      subjects/expandstr/README.md
  99. 4
      subjects/explain/README.md
  100. 6
      subjects/fib/README.md
  101. Some files were not shown because too many files changed in this diff diff.show_more

6
subjects/abort/README.md

@ -33,8 +33,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/abort/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/abort/test$ ./test
5 5
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/abort/test$
``` ```

6
subjects/activebits/README.md

@ -32,8 +32,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/activebits/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/activebits/test$ ./test
3 3
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/activebits/test$
``` ```

4
subjects/adding/README.md

@ -26,9 +26,9 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/adding/test$ cargo run
-5 -5
2261 2261
305696 305696
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/adding/test$
``` ```

4
subjects/adding_twice/README.md

@ -50,10 +50,10 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/adding_twice/test$ cargo run
The value is 27 The value is 27
The value is 47 The value is 47
The value is 67 The value is 67
The value is -57 The value is -57
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/adding_twice/test$
``` ```

6
subjects/addlinkednumbers/README.md

@ -60,8 +60,8 @@ func main() {
An its output: An its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/addlinkednumbers/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./main student@ubuntu:~/addlinkednumbers/test$ ./main
9 -> 0 -> 7 9 -> 0 -> 7
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/addlinkednumbers/test$
``` ```

16
subjects/addprimesum/README.md

@ -9,18 +9,18 @@ Write a program that takes a positive integer as argument and displays the sum o
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/addprimesum/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test 5 student@ubuntu:~/addprimesum/test$ ./test 5
10 10
student@ubuntu:~/[[ROOT]]/test$ ./test 7 student@ubuntu:~/addprimesum/test$ ./test 7
17 17
student@ubuntu:~/[[ROOT]]/test$ ./test -2 student@ubuntu:~/addprimesum/test$ ./test -2
0 0
student@ubuntu:~/[[ROOT]]/test$ ./test 0 student@ubuntu:~/addprimesum/test$ ./test 0
0 0
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/addprimesum/test$ ./test
0 0
student@ubuntu:~/[[ROOT]]/test$ ./test 5 7 student@ubuntu:~/addprimesum/test$ ./test 5 7
0 0
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/addprimesum/test$
``` ```

6
subjects/advancedsortwordarr/README.md

@ -36,8 +36,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/advancedsortwordarr/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/advancedsortwordarr/test$ ./test
[1 2 3 A B C a b c] [1 2 3 A B C a b c]
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/advancedsortwordarr/test$
``` ```

6
subjects/alphacount/README.md

@ -37,8 +37,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/alphacount/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/alphacount/test$ ./test
10 10
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/alphacount/test$
``` ```

10
subjects/alphamirror/README.md

@ -16,11 +16,11 @@ If the number of arguments is different from 1, the program displays nothing.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/alphamirror$ go build student@ubuntu:~/alphamirror$ go build
student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "abc" student@ubuntu:~/alphamirror$ ./alphamirror "abc"
zyx zyx
student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e student@ubuntu:~/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e
Nb slihv rh Znzarmt.$ Nb slihv rh Znzarmt.$
student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror student@ubuntu:~/alphamirror$ ./alphamirror
student@ubuntu:~/[[ROOT]]/alphamirror$ student@ubuntu:~/alphamirror$
``` ```

6
subjects/any/README.md

@ -41,9 +41,9 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/any/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/any/test$ ./test
false false
true true
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/any/test$
``` ```

6
subjects/appendrange/README.md

@ -39,9 +39,9 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/appendrange/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/appendrange/test$ ./test
[5 6 7 8 9] [5 6 7 8 9]
[] []
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/appendrange/test$
``` ```

4
subjects/arrange_it/README.md

@ -35,7 +35,7 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/arrange_it/test$ cargo run
"This is a Test" "This is a Test"
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/arrange_it/test$
``` ```

4
subjects/arrays/README.md

@ -54,10 +54,10 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/arrays/test$ cargo run
The Sum of the elements in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] = 55 The Sum of the elements in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] = 55
The Sum of the elements in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] = 55 The Sum of the elements in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] = 55
The Sum of the elements in [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] = 50 The Sum of the elements in [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] = 50
Array size 32 with only 10's in it [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10] Array size 32 with only 10's in it [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/arrays/test$
``` ```

6
subjects/atoi/README.md

@ -45,8 +45,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/atoi/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/atoi/test$ ./test
12345 12345
12345 12345
0 0
@ -55,5 +55,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test
-1234 -1234
0 0
0 0
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/atoi/test$
``` ```

6
subjects/atoibase/README.md

@ -50,12 +50,12 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/atoibase/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/atoibase/test$ ./test
125 125
125 125
125 125
125 125
0 0
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/atoibase/test$
``` ```

10
subjects/balancedstring/README.md

@ -14,14 +14,14 @@ It will only be tested strings containing the characters 'C' and 'D'.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/balancedstring$ go build student@ubuntu:~/balancedstring$ go build
student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDCCDDCDCD" student@ubuntu:~/balancedstring$ ./balancedstring "CDCCDDCDCD"
4 4
student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDDDDCCCDC" student@ubuntu:~/balancedstring$ ./balancedstring "CDDDDCCCDC"
3 3
student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "DDDDCCCC" student@ubuntu:~/balancedstring$ ./balancedstring "DDDDCCCC"
1 1
student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDCCCDDCDD" student@ubuntu:~/balancedstring$ ./balancedstring "CDCCCDDCDD"
2 2
``` ```

4
subjects/banner/README.md

@ -111,10 +111,10 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/banner/test$ cargo run
"0.5" "0.5"
"0" "0"
"invalid float literal" "invalid float literal"
"invalid float literal" "invalid float literal"
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/banner/test$
``` ```

6
subjects/basicatoi/README.md

@ -40,10 +40,10 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/basicatoi/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/basicatoi/test$ ./test
12345 12345
12345 12345
0 0
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/basicatoi/test$
``` ```

6
subjects/basicatoi2/README.md

@ -41,11 +41,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/basicatoi2/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/basicatoi2/test$ ./test
12345 12345
12345 12345
0 0
0 0
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/basicatoi2/test$
``` ```

6
subjects/basicjoin/README.md

@ -33,8 +33,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/basicjoin/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/basicjoin/test$ ./test
Hello! How are you? Hello! How are you?
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/basicjoin/test$
``` ```

4
subjects/bigger/README.md

@ -38,7 +38,7 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/bigger/test$ cargo run
The biggest of the elements in the HashMap is 334 The biggest of the elements in the HashMap is 334
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/bigger/test$
``` ```

4
subjects/blood_types/README.md

@ -104,9 +104,9 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/blood_types/test$ cargo run
recipients of O+ [AB+, O+, A+, B+] recipients of O+ [AB+, O+, A+, B+]
donors of O+ [O+, O-] donors of O+ [O+, O-]
donors of O+ can receive from A- false donors of O+ can receive from A- false
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/blood_types/test$
``` ```

4
subjects/blood_types_s/README.md

@ -84,9 +84,9 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/blood_types_s/test$ cargo run
recipients of O+ [BloodType { antigen: AB, rh_factor: Positive }, BloodType { antigen: O, rh_factor: Positive }, BloodType { antigen: A, rh_factor: Positive }, BloodType { antigen: B, rh_factor: Positive }] recipients of O+ [BloodType { antigen: AB, rh_factor: Positive }, BloodType { antigen: O, rh_factor: Positive }, BloodType { antigen: A, rh_factor: Positive }, BloodType { antigen: B, rh_factor: Positive }]
donors of O+ [BloodType { antigen: O, rh_factor: Positive }, BloodType { antigen: O, rh_factor: Negative }] donors of O+ [BloodType { antigen: O, rh_factor: Positive }, BloodType { antigen: O, rh_factor: Negative }]
donors of O+ can receive from BloodType { antigen: O, rh_factor: Positive } true donors of O+ can receive from BloodType { antigen: O, rh_factor: Positive } true
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/blood_types_s/test$
``` ```

6
subjects/boolean/README.md

@ -40,9 +40,9 @@ func main() {
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/boolean$ go build student@ubuntu:~/boolean$ go build
student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not" "odd" student@ubuntu:~/boolean$ ./boolean "not" "odd"
I have an even number of arguments I have an even number of arguments
student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not even" student@ubuntu:~/boolean$ ./boolean "not even"
I have an odd number of arguments I have an odd number of arguments
``` ```

4
subjects/border_cross/README.md

@ -73,7 +73,7 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/border_cross/test$ cargo run
["Model 3", "Ranger"] ["Model 3", "Ranger"]
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/border_cross/test$
``` ```

4
subjects/borrow/README.md

@ -33,8 +33,8 @@ fn main() {
And its output: And its output:
```rust ```rust
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/borrow/test$ cargo run
str_len("hello") = 5 str_len("hello") = 5
str_len("camelCase") = 9 str_len("camelCase") = 9
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/borrow/test$
``` ```

4
subjects/borrow_box/README.md

@ -82,10 +82,10 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/borrow_box/test$ cargo run
("Same score! tied", 0) ("Same score! tied", 0)
("Same score! tied", 2) ("Same score! tied", 2)
("Joao", 3) ("Joao", 3)
"game deleted: id -> 0" "game deleted: id -> 0"
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/borrow_box/test$
``` ```

4
subjects/borrow_me_the_reference/README.md

@ -54,7 +54,7 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/borrow_me_the_reference/test$ cargo run
("borrow", ["✔", "✔", "✘", "✔"], 75) ("borrow", ["✔", "✔", "✘", "✔"], 75)
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/borrow_me_the_reference/test$
``` ```

4
subjects/box_it/README.md

@ -50,10 +50,10 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/box_it/test$ cargo run
Box value : [5500, 8900, 32] Box value : [5500, 8900, 32]
size occupied in the stack : 8 bytes size occupied in the stack : 8 bytes
value : [5500, 8900, 32] value : [5500, 8900, 32]
size occupied in the stack : 24 bytes size occupied in the stack : 24 bytes
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/box_it/test$
``` ```

4
subjects/box_recursion/README.md

@ -72,9 +72,9 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/box_recursion/test$ cargo run
WorkEnvironment { grade: Some(Worker { worker_type: "Normal Worker", worker_name: "Alice", next_worker: Some(Worker { worker_type: "Normal Worker", worker_name: "Ana", next_worker: Some(Worker { worker_type: "Manager", worker_name: "Monica", next_worker: Some(Worker { worker_type: "CEO", worker_name: "Marie", next_worker: None }) }) }) }) } WorkEnvironment { grade: Some(Worker { worker_type: "Normal Worker", worker_name: "Alice", next_worker: Some(Worker { worker_type: "Normal Worker", worker_name: "Ana", next_worker: Some(Worker { worker_type: "Manager", worker_name: "Monica", next_worker: Some(Worker { worker_type: "CEO", worker_name: "Marie", next_worker: None }) }) }) }) }
Some(("Alice", "Normal Worker")) Some(("Alice", "Normal Worker"))
WorkEnvironment { grade: None } WorkEnvironment { grade: None }
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/box_recursion/test$
``` ```

4
subjects/boxing_todo/README.md

@ -165,9 +165,9 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/boxing_todo/test$ cargo run
TodoList { title: "TODO LIST FOR PISCINE RUST", tasks: [Task { id: 0, description: "do this", level: 0 }, Task { id: 1, description: "do that", level: 5 }] } TodoList { title: "TODO LIST FOR PISCINE RUST", tasks: [Task { id: 0, description: "do this", level: 0 }, Task { id: 1, description: "do that", level: 5 }] }
Todo List parse failed: None Todo List parse failed: None
Fail to parses todo Some(Malformed(UnexpectedCharacter { ch: ',', line: 2, column: 18 })) Fail to parses todo Some(Malformed(UnexpectedCharacter { ch: ',', line: 2, column: 18 }))
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/boxing_todo/test$
``` ```

10
subjects/brackets/README.md

@ -13,13 +13,13 @@ If there is no argument, the program must print nothing.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '(johndoe)' | cat -e student@ubuntu:~/brackets$ ./brackets '(johndoe)' | cat -e
OK$ OK$
student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '([)]' | cat -e student@ubuntu:~/brackets$ ./brackets '([)]' | cat -e
Error$ Error$
student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e student@ubuntu:~/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e
OK$ OK$
OK$ OK$
student@ubuntu:~/[[ROOT]]/brackets$ ./brackets student@ubuntu:~/brackets$ ./brackets
student@ubuntu:~/[[ROOT]]/brackets$ student@ubuntu:~/brackets$
``` ```

10
subjects/brackets_matching/README.md

@ -13,13 +13,13 @@ If there is no argument, the program must print nothing.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '(johndoe)' | cat -e student@ubuntu:~/brackets_matching/brackets$ ./brackets '(johndoe)' | cat -e
OK$ OK$
student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '([)]' | cat -e student@ubuntu:~/brackets_matching/brackets$ ./brackets '([)]' | cat -e
Error$ Error$
student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e student@ubuntu:~/brackets_matching/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e
OK$ OK$
OK$ OK$
student@ubuntu:~/[[ROOT]]/brackets$ ./brackets student@ubuntu:~/brackets_matching/brackets$ ./brackets
student@ubuntu:~/[[ROOT]]/brackets$ student@ubuntu:~/brackets_matching/brackets$
``` ```

12
subjects/brainfuck/README.md

@ -22,13 +22,13 @@ Any other character is a comment.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/brainfuck$ go build student@ubuntu:~/brainfuck$ go build
student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e student@ubuntu:~/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e
Hello World!$ Hello World!$
student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e student@ubuntu:~/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e
Hi$ Hi$
student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e student@ubuntu:~/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e
abc$ abc$
student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck student@ubuntu:~/brainfuck$ ./brainfuck
student@ubuntu:~/[[ROOT]]/brainfuck$ student@ubuntu:~/brainfuck$
``` ```

6
subjects/btreeapplybylevel/README.md

@ -36,11 +36,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreeapplybylevel/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreeapplybylevel/test$ ./test
4 4
1 1
7 7
5 5
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreeapplybylevel/test$
``` ```

6
subjects/btreeapplyinorder/README.md

@ -37,11 +37,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreeapplyinorder/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreeapplyinorder/test$ ./test
1 1
4 4
5 5
7 7
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreeapplyinorder/test$
``` ```

6
subjects/btreeapplypostorder/README.md

@ -37,11 +37,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreeapplypostorder/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreeapplypostorder/test$ ./test
1 1
5 5
7 7
4 4
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreeapplypostorder/test$
``` ```

6
subjects/btreeapplypreorder/README.md

@ -37,11 +37,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreeapplypreorder/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreeapplypreorder/test$ ./test
4 4
1 1
7 7
5 5
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreeapplypreorder/test$
``` ```

6
subjects/btreedeletenode/README.md

@ -43,8 +43,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreedeletenode/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreedeletenode/test$ ./test
Before delete: Before delete:
1 1
4 4
@ -54,5 +54,5 @@ After delete:
1 1
5 5
7 7
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreedeletenode/test$
``` ```

6
subjects/btreeinsertdata/README.md

@ -47,11 +47,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/btreeinsertdata$ go build student@ubuntu:~/btreeinsertdata$ go build
student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ./btreeinsertdata student@ubuntu:~/btreeinsertdata$ ./btreeinsertdata
1 1
4 4
5 5
7 7
student@ubuntu:~/[[ROOT]]/btreeinsertdata$ student@ubuntu:~/btreeinsertdata$
``` ```

6
subjects/btreeisbinary/README.md

@ -36,8 +36,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreeisbinary/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreeisbinary/test$ ./test
true true
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreeisbinary/test$
``` ```

6
subjects/btreelevelcount/README.md

@ -37,8 +37,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreelevelcount/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreelevelcount/test$ ./test
3 3
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreelevelcount/test$
``` ```

6
subjects/btreemax/README.md

@ -38,8 +38,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreemax/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreemax/test$ ./test
7 7
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreemax/test$
``` ```

6
subjects/btreemin/README.md

@ -38,8 +38,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreemin/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreemin/test$ ./test
1 1
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreemin/test$
``` ```

6
subjects/btreeprintroot/README.md

@ -38,10 +38,10 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/printroot$ go build student@ubuntu:~/btreeprintroot/printroot$ go build
student@ubuntu:~/[[ROOT]]/printroot$ ./printroot student@ubuntu:~/btreeprintroot/printroot$ ./printroot
who who
are are
you you
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreeprintroot/test$
``` ```

6
subjects/btreesearchitem/README.md

@ -63,11 +63,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreesearchitem/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreesearchitem/test$ ./test
Item selected -> 7 Item selected -> 7
Parent of selected item -> 4 Parent of selected item -> 4
Left child of selected item -> 5 Left child of selected item -> 5
Right child of selected item -> nil Right child of selected item -> nil
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreesearchitem/test$
``` ```

6
subjects/btreetransplant/README.md

@ -39,11 +39,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/btreetransplant/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/btreetransplant/test$ ./test
3 3
4 4
5 5
7 7
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/btreetransplant/test$
``` ```

6
subjects/capitalize/README.md

@ -34,8 +34,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/capitalize/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/capitalize/test$ ./test
Hello! How Are You? How+Are+Things+4you? Hello! How Are You? How+Are+Things+4you?
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/capitalize/test$
``` ```

4
subjects/capitalizing/README.md

@ -38,9 +38,9 @@ fn main() {
And its output And its output
```consoole ```consoole
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/capitalizing/test$ cargo run
Joe is missing Joe is missing
Jill Is Leaving A Jill Is Leaving A
HEllO thERE HEllO thERE
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/capitalizing/test$
``` ```

4
subjects/card_deck/README.md

@ -82,7 +82,7 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/card_deck/test$ cargo run
Your card is Card { suit: Club, rank: Ace } Your card is Card { suit: Club, rank: Ace }
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/card_deck/test$
``` ```

20
subjects/cat/README.md

@ -9,26 +9,26 @@ Write a program that behaves like a simplified `cat` command.
- If the program is called without arguments it should take the standard input (stdin) and print it back on the standard output (stdout). - If the program is called without arguments it should take the standard input (stdin) and print it back on the standard output (stdout).
```console ```console
student@ubuntu:~/[[ROOT]]/cat$ echo '"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing' > quest8.txt student@ubuntu:~/cat$ echo '"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing' > quest8.txt
student@ubuntu:~/[[ROOT]]/cat$ cat <<EOF> quest8T.txt student@ubuntu:~/cat$ cat <<EOF> quest8T.txt
"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." "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."
EOF EOF
student@ubuntu:~/[[ROOT]]/cat$ go build student@ubuntu:~/cat$ go build
student@ubuntu:~/[[ROOT]]/cat$ ./cat abc student@ubuntu:~/cat$ ./cat abc
ERROR: abc: No such file or directory ERROR: abc: No such file or directory
student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt student@ubuntu:~/cat$ ./cat quest8.txt
"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing
student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt abc student@ubuntu:~/cat$ ./cat quest8.txt abc
"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing
ERROR: abc: No such file or directory ERROR: abc: No such file or directory
student@ubuntu:~/[[ROOT]]/cat$ cat quest8.txt | ./cat student@ubuntu:~/cat$ cat quest8.txt | ./cat
"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing
student@ubuntu:~/[[ROOT]]/cat$ ./cat student@ubuntu:~/cat$ ./cat
Hello Hello
Hello Hello
^C ^C
student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt quest8T.txt student@ubuntu:~/cat$ ./cat quest8.txt quest8T.txt
"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "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." "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:~/[[ROOT]]/cat$ student@ubuntu:~/cat$
``` ```

4
subjects/changes/README.md

@ -54,8 +54,8 @@ fn main() {
And its expected output And its expected output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/changes/test$ cargo run
brightness = 0 brightness = 0
new brightness = 200 new brightness = 200
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/changes/test$
``` ```

6
subjects/chunk/README.md

@ -33,12 +33,12 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/chunk/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/chunk/test$ ./test
[] []
[[0 1 2] [3 4 5] [6 7]] [[0 1 2] [3 4 5] [6 7]]
[[0 1 2 3 4] [5 6 7]] [[0 1 2 3 4] [5 6 7]]
[[0 1 2 3] [4 5 6 7]] [[0 1 2 3] [4 5 6 7]]
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/chunk/test$
``` ```

4
subjects/cipher/README.md

@ -48,9 +48,9 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/cipher/test$ cargo run
Some(Ok(true)) Some(Ok(true))
Some(Err(CipherError { validation: false, expected: "1Svool 2dliow!" })) Some(Err(CipherError { validation: false, expected: "1Svool 2dliow!" }))
None None
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/cipher/test$
``` ```

4
subjects/circle/README.md

@ -93,11 +93,11 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/circle/test$ cargo run
circle = Circle { center: Point { x: 500.0, y: 500.0 }, radius: 150.0 } area = 70685.83470577035 circle = Circle { center: Point { x: 500.0, y: 500.0 }, radius: 150.0 } area = 70685.83470577035
circle = Circle { center: Point { x: 500.0, y: 500.0 }, radius: 150.0 } diameter = 300 circle = Circle { center: Point { x: 500.0, y: 500.0 }, radius: 150.0 } diameter = 300
circle1 = Circle { center: Point { x: 80.0, y: 115.0 }, radius: 30.0 } diameter = 60 circle1 = Circle { center: Point { x: 80.0, y: 115.0 }, radius: 30.0 } diameter = 60
circle and circle1 intersect = false circle and circle1 intersect = false
distance between Point { x: 1.0, y: 1.0 } and Point { x: 0.0, y: 0.0 } is 1.4142135623730951 distance between Point { x: 1.0, y: 1.0 } and Point { x: 0.0, y: 0.0 } is 1.4142135623730951
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/circle/test$
``` ```

4
subjects/cl-camp2/README.md

@ -11,7 +11,7 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cat -e r student@ubuntu:~/cl-camp2/test$ cat -e r
R$ R$
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/cl-camp2/test$
``` ```

6
subjects/cl-camp4/README.md

@ -17,8 +17,8 @@ Create a file `myfamily.sh`, which will show a subject's family (key: relatives)
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ export HERO_ID=1 student@ubuntu:~/cl-camp4/test$ export HERO_ID=1
student@ubuntu:~/[[ROOT]]/test$ ./myfamily.sh student@ubuntu:~/cl-camp4/test$ ./myfamily.sh
Marlo Chandler-Jones (wife); Polly (aunt); Mrs. Chandler (mother-in-law); Keith Chandler, Ray Chandler, three unidentified others (brothers-in-law); unidentified father (deceased); Jackie Shorr (alleged mother; unconfirmed) Marlo Chandler-Jones (wife); Polly (aunt); Mrs. Chandler (mother-in-law); Keith Chandler, Ray Chandler, three unidentified others (brothers-in-law); unidentified father (deceased); Jackie Shorr (alleged mother; unconfirmed)
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/cl-camp4/test$
``` ```

4
subjects/cl-camp5/README.md

@ -13,11 +13,11 @@ That command will only show the name of the files without the `.sh`.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ ./lookagain.sh | cat -e student@ubuntu:~/cl-camp5/test$ ./lookagain.sh | cat -e
file1$ file1$
file2$ file2$
file3$ file3$
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/cl-camp5/test$
``` ```
### Hint ### Hint

4
subjects/cl-camp6/README.md

@ -9,7 +9,7 @@ Create a file `countfiles.sh`, which will print the number **(and only the numbe
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ ./countfiles.sh | cat -e student@ubuntu:~/cl-camp6/test$ ./countfiles.sh | cat -e
12$ 12$
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/cl-camp6/test$
``` ```

4
subjects/cl-camp7/README.md

@ -9,7 +9,7 @@ Create a file `"\?$*'ChouMi'*$?\"` that will contain "01" and **nothing else**.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ ls | cat -e student@ubuntu:~/cl-camp7/test$ ls | cat -e
"\?$*'ChouMi'*$?\"$ "\?$*'ChouMi'*$?\"$
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/cl-camp7/test$
``` ```

12
subjects/cleanstr/README.md

@ -17,13 +17,13 @@ program displays nothing.
### Usage : ### Usage :
```console ```console
student@ubuntu:~/[[ROOT]]/cleanstr$ go build student@ubuntu:~/cleanstr$ go build
student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e student@ubuntu:~/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e
you see it's easy to display the same thing$ you see it's easy to display the same thing$
student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " only it's harder " student@ubuntu:~/cleanstr$ ./cleanstr " only it's harder "
only it's harder$ only it's harder$
student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?" student@ubuntu:~/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?"
$ $
student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "" student@ubuntu:~/cleanstr$ ./cleanstr ""
student@ubuntu:~/[[ROOT]]/cleanstr$ student@ubuntu:~/cleanstr$
``` ```

4
subjects/closures/README.md

@ -35,7 +35,7 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/closures/test$ cargo run
All elements in [4, 16, 36, ..., 10000], len = 50 All elements in [4, 16, 36, ..., 10000], len = 50
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/closures/test$
``` ```

4
subjects/collect/README.md

@ -32,8 +32,8 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/collect/test$ cargo run
[1, 2, 3, 4, 5, 7] [1, 2, 3, 4, 5, 7]
[1, 2, 3, 4, 5, 7] [1, 2, 3, 4, 5, 7]
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/collect/test$
``` ```

8
subjects/comcheck/README.md

@ -11,10 +11,10 @@ Write a program `comcheck` that displays on the standard output `Alert!!!` follo
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/comcheck$ go build student@ubuntu:~/comcheck$ go build
student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" student@ubuntu:~/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy"
Alert!!! Alert!!!
student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" student@ubuntu:~/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me"
Alert!!! Alert!!!
student@ubuntu:~/[[ROOT]]/comcheck$ student@ubuntu:~/comcheck$
``` ```

4
subjects/commits_stats/README.md

@ -51,8 +51,8 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/commits_stats/test$ cargo run
{"2020-W44": 5, "2020-W36": 1, "2020-W31": 1, ... ,"2020-W45": 4, "2020-W46": 4} {"2020-W44": 5, "2020-W36": 1, "2020-W31": 1, ... ,"2020-W45": 4, "2020-W46": 4}
{"homembaixinho": 2, "mwenzkowski": 3, ... ,"tamirzb": 1, "paul-ri": 2, "RPigott": 1} {"homembaixinho": 2, "mwenzkowski": 3, ... ,"tamirzb": 1, "paul-ri": 2, "RPigott": 1}
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/commits_stats/test$
``` ```

6
subjects/compact/README.md

@ -53,8 +53,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/compact/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/compact/test$ ./test
a a
b b
@ -65,5 +65,5 @@ Size after compacting: 3
a a
b b
c c
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/compact/test$
``` ```

6
subjects/compare/README.md

@ -34,10 +34,10 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/compare/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/compare/test$ ./test
0 0
-1 -1
1 1
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/compare/test$
``` ```

6
subjects/concat/README.md

@ -33,8 +33,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/concat/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/concat/test$ ./test
Hello! How are you? Hello! How are you?
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/concat/test$
``` ```

6
subjects/concatparams/README.md

@ -34,11 +34,11 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/concatparams/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/concatparams/test$ ./test
Hello Hello
how how
are are
you? you?
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/concatparams/test$
``` ```

6
subjects/convertbase/README.md

@ -37,8 +37,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/convertbase/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/convertbase/test$ ./test
43 43
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/convertbase/test$
``` ```

4
subjects/copy/README.md

@ -60,9 +60,9 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/copy/test$ cargo run
(0, 1.0, inf) (0, 1.0, inf)
("1 2 4 5 6", "2.718281828459045 7.38905609893065 54.598150033144236 148.4131591025766 403.4287934927351") ("1 2 4 5 6", "2.718281828459045 7.38905609893065 54.598150033144236 148.4131591025766 403.4287934927351")
([1, 2, 4, 5], [0.0, 0.6931471805599453, 1.3862943611198906, 1.6094379124341003]) ([1, 2, 4, 5], [0.0, 0.6931471805599453, 1.3862943611198906, 1.6094379124341003])
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/copy/test$
``` ```

6
subjects/countdown/README.md

@ -7,8 +7,8 @@ Write a program that displays all digits in descending order, followed by a newl
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/countdown/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/countdown/test$ ./test
9876543210 9876543210
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/countdown/test$
``` ```

6
subjects/countif/README.md

@ -37,9 +37,9 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/countif/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/countif/test$ ./test
0 0
2 2
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/countif/test$
``` ```

4
subjects/counting_words/README.md

@ -42,9 +42,9 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/counting_words/test$ cargo run
{"hello": 1, "world": 1} {"hello": 1, "world": 1}
{"and": 2, "human": 1, "universe": 2, "the": 2, "i\'m": 1, "about": 1, "einstein": 1, "are": 1, "infinite": 1, "sure": 1, "albert": 1, "two": 1, "things": 1, "not": 1, "stupidity": 1} {"and": 2, "human": 1, "universe": 2, "the": 2, "i\'m": 1, "about": 1, "einstein": 1, "are": 1, "infinite": 1, "sure": 1, "albert": 1, "two": 1, "things": 1, "not": 1, "stupidity": 1}
{"batman": 3, "stop": 2} {"batman": 3, "stop": 2}
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/counting_words/test$
``` ```

6
subjects/createelem/README.md

@ -38,8 +38,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/createelem/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/createelem/test$ ./test
&{1234} &{1234}
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/createelem/test$
``` ```

4
subjects/delete_prefix/README.md

@ -27,8 +27,8 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/delete_prefix/test$ cargo run
Some("cdefghijklmnop") Some("cdefghijklmnop")
None None
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/delete_prefix/test$
``` ```

4
subjects/diamond_creation/README.md

@ -43,8 +43,8 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/diamond_creation/test$ cargo run
["A"] ["A"]
[" A ", " B B ", "C C", " B B ", " A "] [" A ", " B B ", "C C", " B B ", " A "]
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/diamond_creation/test$
``` ```

4
subjects/display_table/README.md

@ -74,11 +74,11 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/display_table/test$ cargo run
| Model | Piece N° | In Stock | Description | | Model | Piece N° | In Stock | Description |
|---------+-------------+-----------+-------------| |---------+-------------+-----------+-------------|
| model 1 | 43-EWQE304 | 30 | Piece for x | | model 1 | 43-EWQE304 | 30 | Piece for x |
| model 2 | 98-QCVX5433 | 100000000 | - | | model 2 | 98-QCVX5433 | 100000000 | - |
| model y | 78-NMNH | 60 | nothing | | model y | 78-NMNH | 60 | nothing |
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/display_table/test$
``` ```

10
subjects/displaya/README.md

@ -9,12 +9,12 @@ If the number of arguments is not 1, the program displays an `a` followed by a n
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/displaya/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test "abc" student@ubuntu:~/displaya/test$ ./test "abc"
a a
student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvA" student@ubuntu:~/displaya/test$ ./test "bcvbvA"
a a
student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" student@ubuntu:~/displaya/test$ ./test "nbv"
a a
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/displaya/test$
``` ```

6
subjects/displayalpham/README.md

@ -7,8 +7,8 @@ Write a program that displays the alphabet, with even letters in uppercase, and
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/displayalpham$ go build student@ubuntu:~/displayalpham$ go build
student@ubuntu:~/[[ROOT]]/displayalpham$ ./displayalpham | cat -e student@ubuntu:~/displayalpham$ ./displayalpham | cat -e
aBcDeFgHiJkLmNoPqRsTuVwXyZ$ aBcDeFgHiJkLmNoPqRsTuVwXyZ$
student@ubuntu:~/[[ROOT]]/displayalpham$ student@ubuntu:~/displayalpham$
``` ```

6
subjects/displayalrevm/README.md

@ -7,8 +7,8 @@ Write a program that displays the alphabet in reverse, with even letters in uppe
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/displayalrevm$ go build student@ubuntu:~/displayalrevm$ go build
student@ubuntu:~/[[ROOT]]/displayalrevm$ ./displayalrevm | cat -e student@ubuntu:~/displayalrevm$ ./displayalrevm | cat -e
zYxWvUtSrQpOnMlKjIhGfEdCbA$ zYxWvUtSrQpOnMlKjIhGfEdCbA$
student@ubuntu:~/[[ROOT]]/displayalrevm$ student@ubuntu:~/displayalrevm$
``` ```

12
subjects/displayfile/README.md

@ -7,13 +7,13 @@ Write a program that displays, on the standard output, the content of a file giv
### Usage : ### Usage :
```console ```console
student@ubuntu:~/[[ROOT]]/displayfile$ go build student@ubuntu:~/displayfile$ go build
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile student@ubuntu:~/displayfile$ ./displayfile
File name missing File name missing
student@ubuntu:~/[[ROOT]]/displayfile$ echo "Almost there!!" > quest8.txt student@ubuntu:~/displayfile$ echo "Almost there!!" > quest8.txt
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt main.go student@ubuntu:~/displayfile$ ./displayfile quest8.txt main.go
Too many arguments Too many arguments
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt student@ubuntu:~/displayfile$ ./displayfile quest8.txt
Almost there!! Almost there!!
student@ubuntu:~/[[ROOT]]/displayfile$ student@ubuntu:~/displayfile$
``` ```

10
subjects/displayfirstparam/README.md

@ -7,11 +7,11 @@ Write a program that displays its first argument, if there is one.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/displayfirstparam/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test hello there student@ubuntu:~/displayfirstparam/test$ ./test hello there
hello hello
student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you student@ubuntu:~/displayfirstparam/test$ ./test "hello there" how are you
hello there hello there
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/displayfirstparam/test$ ./test
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/displayfirstparam/test$
``` ```

12
subjects/displaylastparam/README.md

@ -7,13 +7,13 @@ Write a program that displays its last argument, if there is one.
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/displaylastparam/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test hello there student@ubuntu:~/displaylastparam/test$ ./test hello there
there there
student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you student@ubuntu:~/displaylastparam/test$ ./test "hello there" how are you
you you
student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" student@ubuntu:~/displaylastparam/test$ ./test "hello there"
hello there hello there
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/displaylastparam/test$ ./test
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/displaylastparam/test$
``` ```

10
subjects/displayz/README.md

@ -9,12 +9,12 @@ If the number of arguments is not 1, the program displays an `z` followed by a n
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/displayz/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test "xyz" student@ubuntu:~/displayz/test$ ./test "xyz"
z z
student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvZ" student@ubuntu:~/displayz/test$ ./test "bcvbvZ"
z z
student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" student@ubuntu:~/displayz/test$ ./test "nbv"
z z
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/displayz/test$ ./test
``` ```

4
subjects/division_and_remainder/README.md

@ -41,7 +41,7 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/division_and_remainder/test$ cargo run
9/4: division = 2, remainder = 1 9/4: division = 2, remainder = 1
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/division_and_remainder/test$
``` ```

6
subjects/divmod/README.md

@ -42,9 +42,9 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/divmod/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/divmod/test$ ./test
6 6
1 1
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/divmod/test$
``` ```

26
subjects/doop/README.md

@ -17,25 +17,25 @@ The program has to handle the modulo and division operations by 0 as shown on th
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build doop.go student@ubuntu:~/doop/test$ go build doop.go
student@ubuntu:~/[[ROOT]]/test$ ./doop student@ubuntu:~/doop/test$ ./doop
student@ubuntu:~/[[ROOT]]/test$ ./doop 1 + 1 | cat -e student@ubuntu:~/doop/test$ ./doop 1 + 1 | cat -e
2$ 2$
student@ubuntu:~/[[ROOT]]/test$ ./doop hello + 1 student@ubuntu:~/doop/test$ ./doop hello + 1
student@ubuntu:~/[[ROOT]]/test$ ./doop 1 p 1 student@ubuntu:~/doop/test$ ./doop 1 p 1
student@ubuntu:~/[[ROOT]]/test$ ./doop 1 / 0 | cat -e student@ubuntu:~/doop/test$ ./doop 1 / 0 | cat -e
No division by 0$ No division by 0$
student@ubuntu:~/[[ROOT]]/test$ ./doop 1 % 0 | cat -e student@ubuntu:~/doop/test$ ./doop 1 % 0 | cat -e
No modulo by 0$ No modulo by 0$
student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 + 1 student@ubuntu:~/doop/test$ ./doop 9223372036854775807 + 1
0 0
student@ubuntu:~/[[ROOT]]/test$ ./doop -9223372036854775809 - 3 student@ubuntu:~/doop/test$ ./doop -9223372036854775809 - 3
0 0
student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 "*" 3 student@ubuntu:~/doop/test$ ./doop 9223372036854775807 "*" 3
0 0
student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" 1 student@ubuntu:~/doop/test$ ./doop 1 "*" 1
1 1
student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" -1 student@ubuntu:~/doop/test$ ./doop 1 "*" -1
-1 -1
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/doop/test$
``` ```

4
subjects/doubtful/README.md

@ -38,8 +38,8 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/doubtful/test$ cargo run
Before changing the string: Hello Before changing the string: Hello
After changing the string: Hello? After changing the string: Hello?
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/doubtful/test$
``` ```

4
subjects/drop_the_thread/README.md

@ -105,9 +105,9 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/drop_the_thread/test$ cargo run
(true, 0, Cell { value: 1 }) (true, 0, Cell { value: 1 })
(true, 1, Cell { value: 2 }) (true, 1, Cell { value: 2 })
(false, 2, Cell { value: 2 }, 1) (false, 2, Cell { value: 2 }, 1)
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/drop_the_thread/test$
``` ```

4
subjects/easy_traits/README.md

@ -42,8 +42,8 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/easy_traits/test$ cargo run
hello world hello world
["one", "two", "three"] ["one", "two", "three"]
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/easy_traits/test$
``` ```

4
subjects/edit_distance/README.md

@ -37,7 +37,7 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/edit_distance/test$ cargo run
It's necessary to make 2 change(s) to alignment, to get assignment It's necessary to make 2 change(s) to alignment, to get assignment
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/edit_distance/test$
``` ```

4
subjects/eightqueens/README.md

@ -9,8 +9,8 @@ Recursivity must be used to solve this problem.
It should print something like this : It should print something like this :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/eightqueens/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/eightqueens/test$ ./test
15863724 15863724
16837425 16837425
17468253 17468253

6
subjects/enigma/README.md

@ -74,8 +74,8 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/enigma/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/enigma/test$ ./test
5 5
2 2
7 7
@ -85,5 +85,5 @@ After using Enigma
6 6
5 5
7 7
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/enigma/test$
``` ```

2
subjects/ephemeris/README.md

@ -35,7 +35,7 @@ In order to get your daily informations out of your favorite websites, you'll ha
First, create a new repository named `ephemeris` and run this command line in your terminal, in the repository: First, create a new repository named `ephemeris` and run this command line in your terminal, in the repository:
```console ```console
student@ubuntu:~/[[ROOT]]/ephemeris$ npm install puppeteer student@ubuntu:~/ephemeris$ npm install puppeteer
``` ```
Then, create a new file `ephemeris.mjs` in which you will use the puppeteer module: Then, create a new file `ephemeris.mjs` in which you will use the puppeteer module:

4
subjects/error_types/README.md

@ -115,12 +115,12 @@ fn main() {
And its output: And its output:
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/error_types/test$ cargo run
Form { first_name: "Lee", last_name: "Silva", birth: 2015-09-05, sex: Male, birth_location: "Africa", password: "qwqwsa1dty_" } Form { first_name: "Lee", last_name: "Silva", birth: 2015-09-05, sex: Male, birth_location: "Africa", password: "qwqwsa1dty_" }
["Valid first name", "Valid password"] ["Valid first name", "Valid password"]
FErr { form_values: ("first_name", ""), date: "2020-12-28 13:29:11", err: "No user name" } FErr { form_values: ("first_name", ""), date: "2020-12-28 13:29:11", err: "No user name" }
FErr { form_values: ("password", "dty_1"), date: "2020-12-28 13:29:11", err: "At least 8 characters" } FErr { form_values: ("password", "dty_1"), date: "2020-12-28 13:29:11", err: "At least 8 characters" }
FErr { form_values: ("password", "asdasASd(_"), date: "2020-12-28 13:29:11", err: "Combination of different ASCII character types (numbers, letters and none alphanumeric characters)" } FErr { form_values: ("password", "asdasASd(_"), date: "2020-12-28 13:29:11", err: "Combination of different ASCII character types (numbers, letters and none alphanumeric characters)" }
FErr { form_values: ("password", "asdasASd123SA"), date: "2020-12-28 13:29:11", err: "Combination of different ASCII character types (numbers, letters and none alphanumeric characters)" } FErr { form_values: ("password", "asdasASd123SA"), date: "2020-12-28 13:29:11", err: "Combination of different ASCII character types (numbers, letters and none alphanumeric characters)" }
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/error_types/test$
``` ```

4
subjects/events/README.md

@ -110,10 +110,10 @@ fn main() {
And its output And its output
```console ```console
student@ubuntu:~/[[ROOT]]/test$ cargo run student@ubuntu:~/events/test$ cargo run
(Bottom, 50, Go to the doctor) (Bottom, 50, Go to the doctor)
(Top, 30, You have 13H:38M:14S left before the registration ends) (Top, 30, You have 13H:38M:14S left before the registration ends)
(Center, 100, Go to the doctor) (Center, 100, Go to the doctor)
(Top, 25, Enjoy your holiday) (Top, 25, Enjoy your holiday)
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/events/test$
``` ```

12
subjects/expandstr/README.md

@ -13,12 +13,12 @@ If the number of arguments is not 1, or if there are no word, the program displa
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/expandstr$ go build student@ubuntu:~/expandstr$ go build
student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e student@ubuntu:~/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e
you see it's easy to display the same thing$ you see it's easy to display the same thing$
student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " only it's harder " | cat -e student@ubuntu:~/expandstr$ ./expandstr " only it's harder " | cat -e
only it's harder$ only it's harder$
student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e student@ubuntu:~/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e
student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr student@ubuntu:~/expandstr$ ./expandstr
student@ubuntu:~/[[ROOT]]/expandstr$ student@ubuntu:~/expandstr$
``` ```

4
subjects/explain/README.md

@ -18,14 +18,14 @@ Write an `explain.sh` file that:
### Usage ### Usage
```console ```console
student@ubuntu:~/[[ROOT]]/test$ ./explain.sh | cat -e student@ubuntu:~/explain/test$ ./explain.sh | cat -e
FirstNameOfWitness LastNameOfWitness$ FirstNameOfWitness LastNameOfWitness$
123456$ 123456$
Red Ferrari$ Red Ferrari$
FirstNameOfSuspect1 LastNameOfSuspect1$ FirstNameOfSuspect1 LastNameOfSuspect1$
FirstNameOfSuspect2 LastNameOfSuspect2$ FirstNameOfSuspect2 LastNameOfSuspect2$
FirstNameOfSuspect3 LastNameOfSuspect3$ FirstNameOfSuspect3 LastNameOfSuspect3$
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/explain/test$
``` ```
### Hint ### Hint

6
subjects/fib/README.md

@ -38,10 +38,10 @@ func main() {
And its output : And its output :
```console ```console
student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/fib/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test student@ubuntu:~/fib/test$ ./test
0 0
1 1
1 1
student@ubuntu:~/[[ROOT]]/test$ student@ubuntu:~/fib/test$
``` ```

Some files were not shown because too many files changed in this diff diff.show_more

Loading…
Cancel
Save