From 32eddefd0923a53fadb49750323f1bbb6973d39c Mon Sep 17 00:00:00 2001 From: xpetit <32063953+xpetit@users.noreply.github.com> Date: Mon, 26 Apr 2021 16:24:52 +0200 Subject: [PATCH] Remove template variable [[ROOT]] from subjects and fix subjects --- subjects/abort/README.md | 6 +- subjects/activebits/README.md | 6 +- subjects/adding/README.md | 4 +- subjects/adding_twice/README.md | 4 +- subjects/addlinkednumbers/README.md | 6 +- subjects/addprimesum/README.md | 16 +- subjects/advancedsortwordarr/README.md | 6 +- subjects/alphacount/README.md | 6 +- subjects/alphamirror/README.md | 10 +- subjects/any/README.md | 6 +- subjects/appendrange/README.md | 6 +- subjects/arrange_it/README.md | 4 +- subjects/arrays/README.md | 4 +- subjects/atoi/README.md | 6 +- subjects/atoibase/README.md | 6 +- subjects/balancedstring/README.md | 10 +- subjects/banner/README.md | 4 +- subjects/basicatoi/README.md | 6 +- subjects/basicatoi2/README.md | 6 +- subjects/basicjoin/README.md | 6 +- subjects/bigger/README.md | 4 +- subjects/blood_types/README.md | 4 +- subjects/blood_types_s/README.md | 4 +- subjects/boolean/README.md | 6 +- subjects/border_cross/README.md | 4 +- subjects/borrow/README.md | 4 +- subjects/borrow_box/README.md | 4 +- subjects/borrow_me_the_reference/README.md | 4 +- subjects/box_it/README.md | 4 +- subjects/box_recursion/README.md | 4 +- subjects/boxing_todo/README.md | 4 +- subjects/brackets/README.md | 10 +- subjects/brackets_matching/README.md | 10 +- subjects/brainfuck/README.md | 12 +- subjects/btreeapplybylevel/README.md | 6 +- subjects/btreeapplyinorder/README.md | 6 +- subjects/btreeapplypostorder/README.md | 6 +- subjects/btreeapplypreorder/README.md | 6 +- subjects/btreedeletenode/README.md | 6 +- subjects/btreeinsertdata/README.md | 6 +- subjects/btreeisbinary/README.md | 6 +- subjects/btreelevelcount/README.md | 6 +- subjects/btreemax/README.md | 6 +- subjects/btreemin/README.md | 6 +- subjects/btreeprintroot/README.md | 6 +- subjects/btreesearchitem/README.md | 6 +- subjects/btreetransplant/README.md | 6 +- subjects/capitalize/README.md | 6 +- subjects/capitalizing/README.md | 4 +- subjects/card_deck/README.md | 4 +- subjects/cat/README.md | 20 +-- subjects/changes/README.md | 4 +- subjects/chunk/README.md | 6 +- subjects/cipher/README.md | 4 +- subjects/circle/README.md | 4 +- subjects/cl-camp2/README.md | 4 +- subjects/cl-camp4/README.md | 6 +- subjects/cl-camp5/README.md | 4 +- subjects/cl-camp6/README.md | 4 +- subjects/cl-camp7/README.md | 4 +- subjects/cleanstr/README.md | 12 +- subjects/closures/README.md | 4 +- subjects/collect/README.md | 4 +- subjects/comcheck/README.md | 8 +- subjects/commits_stats/README.md | 4 +- subjects/compact/README.md | 6 +- subjects/compare/README.md | 6 +- subjects/concat/README.md | 6 +- subjects/concatparams/README.md | 6 +- subjects/convertbase/README.md | 6 +- subjects/copy/README.md | 4 +- subjects/countdown/README.md | 6 +- subjects/countif/README.md | 6 +- subjects/counting_words/README.md | 4 +- subjects/createelem/README.md | 6 +- subjects/delete_prefix/README.md | 4 +- subjects/diamond_creation/README.md | 4 +- subjects/display_table/README.md | 4 +- subjects/displaya/README.md | 10 +- subjects/displayalpham/README.md | 6 +- subjects/displayalrevm/README.md | 6 +- subjects/displayfile/README.md | 12 +- subjects/displayfirstparam/README.md | 10 +- subjects/displaylastparam/README.md | 12 +- subjects/displayz/README.md | 10 +- subjects/division_and_remainder/README.md | 4 +- subjects/divmod/README.md | 6 +- subjects/doop/README.md | 26 ++-- subjects/doubtful/README.md | 4 +- subjects/drop_the_thread/README.md | 4 +- subjects/easy_traits/README.md | 4 +- subjects/edit_distance/README.md | 4 +- subjects/eightqueens/README.md | 4 +- subjects/enigma/README.md | 6 +- subjects/ephemeris/README.md | 2 +- subjects/error_types/README.md | 4 +- subjects/events/README.md | 4 +- subjects/expandstr/README.md | 12 +- subjects/explain/README.md | 4 +- subjects/fib/README.md | 6 +- subjects/fibonacci/README.md | 6 +- subjects/fibonacci2/README.md | 4 +- subjects/filter_table/README.md | 4 +- subjects/find_factorial/README.md | 4 +- subjects/findnextprime/README.md | 6 +- subjects/firstrune/README.md | 6 +- subjects/firstword/README.md | 12 +- subjects/flags/README.md | 22 +-- subjects/flat_tree/README.md | 4 +- subjects/foldint/README.md | 6 +- subjects/foreach/README.md | 6 +- subjects/fprime/README.md | 20 +-- subjects/game23/README.md | 6 +- subjects/gcd/README.md | 16 +- subjects/generics/README.md | 4 +- subjects/get_products/README.md | 4 +- subjects/go-reloaded/README.md | 150 +++++++++---------- subjects/groceries/README.md | 4 +- subjects/grouping/README.md | 14 +- subjects/halfcontest/README.md | 6 +- subjects/handling/README.md | 4 +- subjects/hashing/README.md | 4 +- subjects/hello-there/README.md | 2 +- subjects/hello/README.md | 6 +- subjects/hello_rust/README.md | 4 +- subjects/hiddenp/README.md | 14 +- subjects/highest/README.md | 4 +- subjects/how-2-js/README.md | 2 +- subjects/how_many_references/README.md | 4 +- subjects/index/README.md | 6 +- subjects/insertion_sort/README.md | 4 +- subjects/inter/README.md | 8 +- subjects/interestingnumber/README.md | 6 +- subjects/introduction/README.md | 8 +- subjects/inv_pyramid/README.md | 4 +- subjects/isalpha/README.md | 6 +- subjects/islower/README.md | 6 +- subjects/isnegative/README.md | 6 +- subjects/isnumeric/README.md | 6 +- subjects/isprime/README.md | 6 +- subjects/isprintable/README.md | 6 +- subjects/issorted/README.md | 6 +- subjects/isupper/README.md | 6 +- subjects/iterativefactorial/README.md | 6 +- subjects/iterativepower/README.md | 6 +- subjects/iterators/README.md | 4 +- subjects/join/README.md | 6 +- subjects/lalgebra_scalar/README.md | 4 +- subjects/lalgebra_vector/README.md | 4 +- subjects/lastrune/README.md | 6 +- subjects/lastup/README.md | 4 +- subjects/lastword/README.md | 14 +- subjects/lcm/README.md | 6 +- subjects/lifetimes/README.md | 4 +- subjects/listat/README.md | 6 +- subjects/listclear/README.md | 6 +- subjects/listfind/README.md | 6 +- subjects/listforeach/README.md | 6 +- subjects/listforeachif/README.md | 8 +- subjects/listlast/README.md | 6 +- subjects/listmerge/README.md | 6 +- subjects/listpushback/README.md | 6 +- subjects/listpushfront/README.md | 6 +- subjects/listpushpara/README.md | 6 +- subjects/listpushparams/README.md | 6 +- subjects/listremoveif/README.md | 6 +- subjects/listreverse/README.md | 6 +- subjects/listsize/README.md | 6 +- subjects/listsort/README.md | 6 +- subjects/logic_number/README.md | 4 +- subjects/lunch_queue/README.md | 4 +- subjects/makerange/README.md | 6 +- subjects/map/README.md | 6 +- subjects/matrix/README.md | 4 +- subjects/matrix_display/README.md | 4 +- subjects/matrix_mult/README.md | 4 +- subjects/matrix_ops/README.md | 4 +- subjects/matrix_transposition/README.md | 4 +- subjects/matrix_transposition_4by3/README.md | 4 +- subjects/max/README.md | 6 +- subjects/merge/README.md | 6 +- subjects/name_initials/README.md | 4 +- subjects/nauuo/README.md | 6 +- subjects/now-get-to-work/README.md | 4 +- subjects/nrune/README.md | 6 +- subjects/options/README.md | 24 +-- subjects/ordinal/README.md | 4 +- subjects/ownership/README.md | 4 +- subjects/pangram/README.md | 4 +- subjects/panic/README.md | 6 +- subjects/paramcount/README.md | 10 +- subjects/pig_latin/README.md | 4 +- subjects/point/README.md | 6 +- subjects/pointone/README.md | 6 +- subjects/printalphabet/README.md | 6 +- subjects/printalphabetalt/README.md | 6 +- subjects/printalphabetalt2/README.md | 6 +- subjects/printalphabetg/README.md | 6 +- subjects/printalt/README.md | 6 +- subjects/printalt2/README.md | 6 +- subjects/printaltu/README.md | 6 +- subjects/printaltu2/README.md | 6 +- subjects/printchessboard/README.md | 10 +- subjects/printcomb/README.md | 6 +- subjects/printcomb2/README.md | 6 +- subjects/printcombn/README.md | 6 +- subjects/printdigits/README.md | 6 +- subjects/printhex/README.md | 14 +- subjects/printmemory/README.md | 6 +- subjects/printnbr/README.md | 6 +- subjects/printnbrbase/README.md | 6 +- subjects/printnbrinorder/README.md | 6 +- subjects/printparams/README.md | 6 +- subjects/printprogramname/README.md | 14 +- subjects/printrevcomb/README.md | 6 +- subjects/printreversealphabet/README.md | 6 +- subjects/printreversealphabetalt/README.md | 6 +- subjects/printreversealphabetalt2/README.md | 6 +- subjects/printreversealphabetg/README.md | 6 +- subjects/printrot/README.md | 14 +- subjects/printstr/README.md | 6 +- subjects/printwordstables/README.md | 6 +- subjects/priorprime/README.md | 6 +- subjects/profanity_filter/README.md | 4 +- subjects/project_motion/README.md | 4 +- subjects/quad/README.md | 120 +++++++-------- subjects/quadchecker/README.md | 30 ++-- subjects/queens/README.md | 4 +- subjects/question_mark/README.md | 4 +- subjects/reachablenumber/README.md | 6 +- subjects/rectangle/README.md | 6 +- subjects/recursivefactorial/README.md | 6 +- subjects/recursivepower/README.md | 6 +- subjects/reduceint/README.md | 6 +- subjects/ref_cell/README.md | 4 +- subjects/repeatalpha/README.md | 14 +- subjects/reverse/README.md | 6 +- subjects/reverse_it/README.md | 4 +- subjects/reverse_string/README.md | 4 +- subjects/reversestrcap/README.md | 10 +- subjects/revivethreenums/README.md | 6 +- subjects/revparams/README.md | 6 +- subjects/revwstr/README.md | 12 +- subjects/rgb_match/README.md | 4 +- subjects/robottoorigin/README.md | 6 +- subjects/roman_numbers/README.md | 4 +- subjects/roman_numbers_iter/README.md | 4 +- subjects/romannumbers/README.md | 14 +- subjects/rostring/README.md | 12 +- subjects/rot/README.md | 4 +- subjects/rot13/README.md | 12 +- subjects/rot14/README.md | 6 +- subjects/rot21/README.md | 4 +- subjects/rotatevowels/README.md | 16 +- subjects/rpncalc/README.md | 14 +- subjects/sales/README.md | 4 +- subjects/sametree/README.md | 6 +- subjects/scores/README.md | 4 +- subjects/scytale_cipher/README.md | 4 +- subjects/searching/README.md | 4 +- subjects/searchreplace/README.md | 10 +- subjects/simple_hash/README.md | 4 +- subjects/slices_to_map/README.md | 4 +- subjects/sortedlistmerge/README.md | 6 +- subjects/sortintegertable/README.md | 6 +- subjects/sortlistinsert/README.md | 6 +- subjects/sortparams/README.md | 6 +- subjects/sortwordarr/README.md | 6 +- subjects/speed_transformation/README.md | 4 +- subjects/spelling/README.md | 4 +- subjects/split/README.md | 6 +- subjects/splitwhitespaces/README.md | 6 +- subjects/sqrt/README.md | 6 +- subjects/stars/README.md | 4 +- subjects/step_iterator/README.md | 4 +- subjects/string_literals/README.md | 4 +- subjects/string_permutation/README.md | 4 +- subjects/strings/README.md | 4 +- subjects/strlen/README.md | 6 +- subjects/strrev/README.md | 6 +- subjects/sudoku/README.md | 14 +- subjects/swap/README.md | 6 +- subjects/sweetproblem/README.md | 6 +- subjects/switchcase/README.md | 8 +- subjects/tabmult/README.md | 10 +- subjects/talking/README.md | 4 +- subjects/temperature_conv/README.md | 4 +- subjects/tic_tac_toe/README.md | 4 +- subjects/to_url/README.md | 4 +- subjects/tolower/README.md | 6 +- subjects/toupper/README.md | 6 +- subjects/traits/README.md | 4 +- subjects/trimatoi/README.md | 6 +- subjects/tuples/README.md | 4 +- subjects/twosum/README.md | 6 +- subjects/ultimatedivmod/README.md | 6 +- subjects/ultimatepointone/README.md | 6 +- subjects/union/README.md | 14 +- subjects/uniqueoccurences/README.md | 8 +- subjects/unmatch/README.md | 6 +- subjects/unwrap_or_expect/README.md | 2 +- subjects/vector_operations/README.md | 4 +- subjects/vehicles/README.md | 4 +- subjects/volumechanger/README.md | 6 +- subjects/wdmatch/README.md | 14 +- subjects/wget/README.md | 24 +-- 306 files changed, 1114 insertions(+), 1114 deletions(-) diff --git a/subjects/abort/README.md b/subjects/abort/README.md index d7b7be87..2699d236 100644 --- a/subjects/abort/README.md +++ b/subjects/abort/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/abort/test$ go build +student@ubuntu:~/abort/test$ ./test 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/abort/test$ ``` diff --git a/subjects/activebits/README.md b/subjects/activebits/README.md index 6226c35c..12c2168b 100644 --- a/subjects/activebits/README.md +++ b/subjects/activebits/README.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/activebits/test$ go build +student@ubuntu:~/activebits/test$ ./test 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/activebits/test$ ``` diff --git a/subjects/adding/README.md b/subjects/adding/README.md index dfe488de..9a4b9308 100644 --- a/subjects/adding/README.md +++ b/subjects/adding/README.md @@ -26,9 +26,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/adding/test$ cargo run -5 2261 305696 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/adding/test$ ``` diff --git a/subjects/adding_twice/README.md b/subjects/adding_twice/README.md index 4385a20a..4055a896 100644 --- a/subjects/adding_twice/README.md +++ b/subjects/adding_twice/README.md @@ -50,10 +50,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/adding_twice/test$ cargo run The value is 27 The value is 47 The value is 67 The value is -57 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/adding_twice/test$ ``` diff --git a/subjects/addlinkednumbers/README.md b/subjects/addlinkednumbers/README.md index bb884037..b509af27 100644 --- a/subjects/addlinkednumbers/README.md +++ b/subjects/addlinkednumbers/README.md @@ -60,8 +60,8 @@ func main() { An its output: ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./main +student@ubuntu:~/addlinkednumbers/test$ go build +student@ubuntu:~/addlinkednumbers/test$ ./main 9 -> 0 -> 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/addlinkednumbers/test$ ``` diff --git a/subjects/addprimesum/README.md b/subjects/addprimesum/README.md index 4143acaf..3c392971 100644 --- a/subjects/addprimesum/README.md +++ b/subjects/addprimesum/README.md @@ -9,18 +9,18 @@ Write a program that takes a positive integer as argument and displays the sum o ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test 5 +student@ubuntu:~/addprimesum/test$ go build +student@ubuntu:~/addprimesum/test$ ./test 5 10 -student@ubuntu:~/[[ROOT]]/test$ ./test 7 +student@ubuntu:~/addprimesum/test$ ./test 7 17 -student@ubuntu:~/[[ROOT]]/test$ ./test -2 +student@ubuntu:~/addprimesum/test$ ./test -2 0 -student@ubuntu:~/[[ROOT]]/test$ ./test 0 +student@ubuntu:~/addprimesum/test$ ./test 0 0 -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/addprimesum/test$ ./test 0 -student@ubuntu:~/[[ROOT]]/test$ ./test 5 7 +student@ubuntu:~/addprimesum/test$ ./test 5 7 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/addprimesum/test$ ``` diff --git a/subjects/advancedsortwordarr/README.md b/subjects/advancedsortwordarr/README.md index 48b4c6c9..d6e7f91a 100644 --- a/subjects/advancedsortwordarr/README.md +++ b/subjects/advancedsortwordarr/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/advancedsortwordarr/test$ go build +student@ubuntu:~/advancedsortwordarr/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/advancedsortwordarr/test$ ``` diff --git a/subjects/alphacount/README.md b/subjects/alphacount/README.md index f7826f8b..e0bff875 100644 --- a/subjects/alphacount/README.md +++ b/subjects/alphacount/README.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/alphacount/test$ go build +student@ubuntu:~/alphacount/test$ ./test 10 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/alphacount/test$ ``` diff --git a/subjects/alphamirror/README.md b/subjects/alphamirror/README.md index d1471bba..edfb537d 100644 --- a/subjects/alphamirror/README.md +++ b/subjects/alphamirror/README.md @@ -16,11 +16,11 @@ If the number of arguments is different from 1, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/alphamirror$ go build -student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "abc" +student@ubuntu:~/alphamirror$ go build +student@ubuntu:~/alphamirror$ ./alphamirror "abc" 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.$ -student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror -student@ubuntu:~/[[ROOT]]/alphamirror$ +student@ubuntu:~/alphamirror$ ./alphamirror +student@ubuntu:~/alphamirror$ ``` diff --git a/subjects/any/README.md b/subjects/any/README.md index e736286b..f9ca5e6a 100644 --- a/subjects/any/README.md +++ b/subjects/any/README.md @@ -41,9 +41,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/any/test$ go build +student@ubuntu:~/any/test$ ./test false true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/any/test$ ``` diff --git a/subjects/appendrange/README.md b/subjects/appendrange/README.md index 2029de17..894d5f5e 100644 --- a/subjects/appendrange/README.md +++ b/subjects/appendrange/README.md @@ -39,9 +39,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/appendrange/test$ go build +student@ubuntu:~/appendrange/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/appendrange/test$ ``` diff --git a/subjects/arrange_it/README.md b/subjects/arrange_it/README.md index cf13f373..e991fd8a 100644 --- a/subjects/arrange_it/README.md +++ b/subjects/arrange_it/README.md @@ -35,7 +35,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/arrange_it/test$ cargo run "This is a Test" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/arrange_it/test$ ``` diff --git a/subjects/arrays/README.md b/subjects/arrays/README.md index 047e9a09..543a6237 100644 --- a/subjects/arrays/README.md +++ b/subjects/arrays/README.md @@ -54,10 +54,10 @@ fn main() { And its output: ```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 [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] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/arrays/test$ ``` diff --git a/subjects/atoi/README.md b/subjects/atoi/README.md index 21d70dfe..291067ba 100644 --- a/subjects/atoi/README.md +++ b/subjects/atoi/README.md @@ -45,8 +45,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/atoi/test$ go build +student@ubuntu:~/atoi/test$ ./test 12345 12345 0 @@ -55,5 +55,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test -1234 0 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/atoi/test$ ``` diff --git a/subjects/atoibase/README.md b/subjects/atoibase/README.md index af936db7..6c6f1cb5 100644 --- a/subjects/atoibase/README.md +++ b/subjects/atoibase/README.md @@ -50,12 +50,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/atoibase/test$ go build +student@ubuntu:~/atoibase/test$ ./test 125 125 125 125 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/atoibase/test$ ``` diff --git a/subjects/balancedstring/README.md b/subjects/balancedstring/README.md index b8a1702b..a409dd40 100644 --- a/subjects/balancedstring/README.md +++ b/subjects/balancedstring/README.md @@ -14,14 +14,14 @@ It will only be tested strings containing the characters 'C' and 'D'. ### Usage ```console -student@ubuntu:~/[[ROOT]]/balancedstring$ go build -student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDCCDDCDCD" +student@ubuntu:~/balancedstring$ go build +student@ubuntu:~/balancedstring$ ./balancedstring "CDCCDDCDCD" 4 -student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDDDDCCCDC" +student@ubuntu:~/balancedstring$ ./balancedstring "CDDDDCCCDC" 3 -student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "DDDDCCCC" +student@ubuntu:~/balancedstring$ ./balancedstring "DDDDCCCC" 1 -student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDCCCDDCDD" +student@ubuntu:~/balancedstring$ ./balancedstring "CDCCCDDCDD" 2 ``` diff --git a/subjects/banner/README.md b/subjects/banner/README.md index 1b73f598..93697348 100644 --- a/subjects/banner/README.md +++ b/subjects/banner/README.md @@ -111,10 +111,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/banner/test$ cargo run "0.5" "0" "invalid float literal" "invalid float literal" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/banner/test$ ``` diff --git a/subjects/basicatoi/README.md b/subjects/basicatoi/README.md index 19a9e844..804b5913 100644 --- a/subjects/basicatoi/README.md +++ b/subjects/basicatoi/README.md @@ -40,10 +40,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/basicatoi/test$ go build +student@ubuntu:~/basicatoi/test$ ./test 12345 12345 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/basicatoi/test$ ``` diff --git a/subjects/basicatoi2/README.md b/subjects/basicatoi2/README.md index e248778c..b5f9779b 100644 --- a/subjects/basicatoi2/README.md +++ b/subjects/basicatoi2/README.md @@ -41,11 +41,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/basicatoi2/test$ go build +student@ubuntu:~/basicatoi2/test$ ./test 12345 12345 0 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/basicatoi2/test$ ``` diff --git a/subjects/basicjoin/README.md b/subjects/basicjoin/README.md index bba6caa0..68715a5d 100644 --- a/subjects/basicjoin/README.md +++ b/subjects/basicjoin/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/basicjoin/test$ go build +student@ubuntu:~/basicjoin/test$ ./test Hello! How are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/basicjoin/test$ ``` diff --git a/subjects/bigger/README.md b/subjects/bigger/README.md index 9687e5b0..81a54d5f 100644 --- a/subjects/bigger/README.md +++ b/subjects/bigger/README.md @@ -38,7 +38,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/bigger/test$ cargo run The biggest of the elements in the HashMap is 334 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/bigger/test$ ``` diff --git a/subjects/blood_types/README.md b/subjects/blood_types/README.md index fd9ede5a..aea3b28a 100644 --- a/subjects/blood_types/README.md +++ b/subjects/blood_types/README.md @@ -104,9 +104,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/blood_types/test$ cargo run recipients of O+ [AB+, O+, A+, B+] donors of O+ [O+, O-] donors of O+ can receive from A- false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/blood_types/test$ ``` diff --git a/subjects/blood_types_s/README.md b/subjects/blood_types_s/README.md index 9fe00071..493b0160 100644 --- a/subjects/blood_types_s/README.md +++ b/subjects/blood_types_s/README.md @@ -84,9 +84,9 @@ fn main() { And its output ```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 }] 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 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/blood_types_s/test$ ``` diff --git a/subjects/boolean/README.md b/subjects/boolean/README.md index 95407d9c..5bfabd87 100644 --- a/subjects/boolean/README.md +++ b/subjects/boolean/README.md @@ -40,9 +40,9 @@ func main() { ### Usage ```console -student@ubuntu:~/[[ROOT]]/boolean$ go build -student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not" "odd" +student@ubuntu:~/boolean$ go build +student@ubuntu:~/boolean$ ./boolean "not" "odd" 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 ``` diff --git a/subjects/border_cross/README.md b/subjects/border_cross/README.md index 2a0b329f..3ee9ebae 100644 --- a/subjects/border_cross/README.md +++ b/subjects/border_cross/README.md @@ -73,7 +73,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/border_cross/test$ cargo run ["Model 3", "Ranger"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/border_cross/test$ ``` diff --git a/subjects/borrow/README.md b/subjects/borrow/README.md index 4c207411..508d470d 100644 --- a/subjects/borrow/README.md +++ b/subjects/borrow/README.md @@ -33,8 +33,8 @@ fn main() { And its output: ```rust -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/borrow/test$ cargo run str_len("hello") = 5 str_len("camelCase") = 9 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/borrow/test$ ``` diff --git a/subjects/borrow_box/README.md b/subjects/borrow_box/README.md index b29638f2..69cce5bb 100644 --- a/subjects/borrow_box/README.md +++ b/subjects/borrow_box/README.md @@ -82,10 +82,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/borrow_box/test$ cargo run ("Same score! tied", 0) ("Same score! tied", 2) ("Joao", 3) "game deleted: id -> 0" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/borrow_box/test$ ``` diff --git a/subjects/borrow_me_the_reference/README.md b/subjects/borrow_me_the_reference/README.md index 4edd109e..75eefb12 100644 --- a/subjects/borrow_me_the_reference/README.md +++ b/subjects/borrow_me_the_reference/README.md @@ -54,7 +54,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/borrow_me_the_reference/test$ cargo run ("borrow", ["✔", "✔", "✘", "✔"], 75) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/borrow_me_the_reference/test$ ``` diff --git a/subjects/box_it/README.md b/subjects/box_it/README.md index 535b4294..d084bf14 100644 --- a/subjects/box_it/README.md +++ b/subjects/box_it/README.md @@ -50,10 +50,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/box_it/test$ cargo run Box value : [5500, 8900, 32] size occupied in the stack : 8 bytes value : [5500, 8900, 32] size occupied in the stack : 24 bytes -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/box_it/test$ ``` diff --git a/subjects/box_recursion/README.md b/subjects/box_recursion/README.md index 9d602743..04cc3721 100644 --- a/subjects/box_recursion/README.md +++ b/subjects/box_recursion/README.md @@ -72,9 +72,9 @@ fn main() { And its output: ```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 }) }) }) }) } Some(("Alice", "Normal Worker")) WorkEnvironment { grade: None } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/box_recursion/test$ ``` diff --git a/subjects/boxing_todo/README.md b/subjects/boxing_todo/README.md index 239e4de5..b1373458 100644 --- a/subjects/boxing_todo/README.md +++ b/subjects/boxing_todo/README.md @@ -165,9 +165,9 @@ fn main() { And its output: ```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 }] } Todo List parse failed: None Fail to parses todo Some(Malformed(UnexpectedCharacter { ch: ',', line: 2, column: 18 })) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/boxing_todo/test$ ``` diff --git a/subjects/brackets/README.md b/subjects/brackets/README.md index ef9c2285..7c54e241 100644 --- a/subjects/brackets/README.md +++ b/subjects/brackets/README.md @@ -13,13 +13,13 @@ If there is no argument, the program must print nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '(johndoe)' | cat -e +student@ubuntu:~/brackets$ ./brackets '(johndoe)' | cat -e OK$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '([)]' | cat -e +student@ubuntu:~/brackets$ ./brackets '([)]' | cat -e 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$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets -student@ubuntu:~/[[ROOT]]/brackets$ +student@ubuntu:~/brackets$ ./brackets +student@ubuntu:~/brackets$ ``` diff --git a/subjects/brackets_matching/README.md b/subjects/brackets_matching/README.md index b152bbc2..67aa9c6c 100644 --- a/subjects/brackets_matching/README.md +++ b/subjects/brackets_matching/README.md @@ -13,13 +13,13 @@ If there is no argument, the program must print nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '(johndoe)' | cat -e +student@ubuntu:~/brackets_matching/brackets$ ./brackets '(johndoe)' | cat -e OK$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '([)]' | cat -e +student@ubuntu:~/brackets_matching/brackets$ ./brackets '([)]' | cat -e 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$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets -student@ubuntu:~/[[ROOT]]/brackets$ +student@ubuntu:~/brackets_matching/brackets$ ./brackets +student@ubuntu:~/brackets_matching/brackets$ ``` diff --git a/subjects/brainfuck/README.md b/subjects/brainfuck/README.md index ec03c50d..ab31cfe5 100644 --- a/subjects/brainfuck/README.md +++ b/subjects/brainfuck/README.md @@ -22,13 +22,13 @@ Any other character is a comment. ### Usage ```console -student@ubuntu:~/[[ROOT]]/brainfuck$ go build -student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e +student@ubuntu:~/brainfuck$ go build +student@ubuntu:~/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e Hello World!$ -student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e +student@ubuntu:~/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e Hi$ -student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e +student@ubuntu:~/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e abc$ -student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck -student@ubuntu:~/[[ROOT]]/brainfuck$ +student@ubuntu:~/brainfuck$ ./brainfuck +student@ubuntu:~/brainfuck$ ``` diff --git a/subjects/btreeapplybylevel/README.md b/subjects/btreeapplybylevel/README.md index 47e6216b..090e53c0 100644 --- a/subjects/btreeapplybylevel/README.md +++ b/subjects/btreeapplybylevel/README.md @@ -36,11 +36,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeapplybylevel/test$ go build +student@ubuntu:~/btreeapplybylevel/test$ ./test 4 1 7 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeapplybylevel/test$ ``` diff --git a/subjects/btreeapplyinorder/README.md b/subjects/btreeapplyinorder/README.md index e78f7ea1..66c018a6 100644 --- a/subjects/btreeapplyinorder/README.md +++ b/subjects/btreeapplyinorder/README.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeapplyinorder/test$ go build +student@ubuntu:~/btreeapplyinorder/test$ ./test 1 4 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeapplyinorder/test$ ``` diff --git a/subjects/btreeapplypostorder/README.md b/subjects/btreeapplypostorder/README.md index ab5a245f..018ff4b0 100644 --- a/subjects/btreeapplypostorder/README.md +++ b/subjects/btreeapplypostorder/README.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeapplypostorder/test$ go build +student@ubuntu:~/btreeapplypostorder/test$ ./test 1 5 7 4 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeapplypostorder/test$ ``` diff --git a/subjects/btreeapplypreorder/README.md b/subjects/btreeapplypreorder/README.md index 79518bef..259ec701 100644 --- a/subjects/btreeapplypreorder/README.md +++ b/subjects/btreeapplypreorder/README.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeapplypreorder/test$ go build +student@ubuntu:~/btreeapplypreorder/test$ ./test 4 1 7 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeapplypreorder/test$ ``` diff --git a/subjects/btreedeletenode/README.md b/subjects/btreedeletenode/README.md index 2c90da5c..696d80e3 100644 --- a/subjects/btreedeletenode/README.md +++ b/subjects/btreedeletenode/README.md @@ -43,8 +43,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreedeletenode/test$ go build +student@ubuntu:~/btreedeletenode/test$ ./test Before delete: 1 4 @@ -54,5 +54,5 @@ After delete: 1 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreedeletenode/test$ ``` diff --git a/subjects/btreeinsertdata/README.md b/subjects/btreeinsertdata/README.md index 1a35ba5c..43f83930 100644 --- a/subjects/btreeinsertdata/README.md +++ b/subjects/btreeinsertdata/README.md @@ -47,11 +47,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/btreeinsertdata$ go build -student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ./btreeinsertdata +student@ubuntu:~/btreeinsertdata$ go build +student@ubuntu:~/btreeinsertdata$ ./btreeinsertdata 1 4 5 7 -student@ubuntu:~/[[ROOT]]/btreeinsertdata$ +student@ubuntu:~/btreeinsertdata$ ``` diff --git a/subjects/btreeisbinary/README.md b/subjects/btreeisbinary/README.md index ca87f236..218e4d5f 100644 --- a/subjects/btreeisbinary/README.md +++ b/subjects/btreeisbinary/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeisbinary/test$ go build +student@ubuntu:~/btreeisbinary/test$ ./test true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeisbinary/test$ ``` diff --git a/subjects/btreelevelcount/README.md b/subjects/btreelevelcount/README.md index 0d7c47d6..070f3c0f 100644 --- a/subjects/btreelevelcount/README.md +++ b/subjects/btreelevelcount/README.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreelevelcount/test$ go build +student@ubuntu:~/btreelevelcount/test$ ./test 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreelevelcount/test$ ``` diff --git a/subjects/btreemax/README.md b/subjects/btreemax/README.md index 230c5ac4..2ede56bb 100644 --- a/subjects/btreemax/README.md +++ b/subjects/btreemax/README.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreemax/test$ go build +student@ubuntu:~/btreemax/test$ ./test 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreemax/test$ ``` diff --git a/subjects/btreemin/README.md b/subjects/btreemin/README.md index 13bf7a88..0658646f 100644 --- a/subjects/btreemin/README.md +++ b/subjects/btreemin/README.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreemin/test$ go build +student@ubuntu:~/btreemin/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreemin/test$ ``` diff --git a/subjects/btreeprintroot/README.md b/subjects/btreeprintroot/README.md index 374054fe..6d167e9c 100644 --- a/subjects/btreeprintroot/README.md +++ b/subjects/btreeprintroot/README.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/printroot$ go build -student@ubuntu:~/[[ROOT]]/printroot$ ./printroot +student@ubuntu:~/btreeprintroot/printroot$ go build +student@ubuntu:~/btreeprintroot/printroot$ ./printroot who are you -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeprintroot/test$ ``` diff --git a/subjects/btreesearchitem/README.md b/subjects/btreesearchitem/README.md index 00d13efb..0a8b6672 100644 --- a/subjects/btreesearchitem/README.md +++ b/subjects/btreesearchitem/README.md @@ -63,11 +63,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreesearchitem/test$ go build +student@ubuntu:~/btreesearchitem/test$ ./test Item selected -> 7 Parent of selected item -> 4 Left child of selected item -> 5 Right child of selected item -> nil -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreesearchitem/test$ ``` diff --git a/subjects/btreetransplant/README.md b/subjects/btreetransplant/README.md index 4748db9d..5aea88c3 100644 --- a/subjects/btreetransplant/README.md +++ b/subjects/btreetransplant/README.md @@ -39,11 +39,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreetransplant/test$ go build +student@ubuntu:~/btreetransplant/test$ ./test 3 4 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreetransplant/test$ ``` diff --git a/subjects/capitalize/README.md b/subjects/capitalize/README.md index 24482ce4..7f9013bf 100644 --- a/subjects/capitalize/README.md +++ b/subjects/capitalize/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/capitalize/test$ go build +student@ubuntu:~/capitalize/test$ ./test Hello! How Are You? How+Are+Things+4you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/capitalize/test$ ``` diff --git a/subjects/capitalizing/README.md b/subjects/capitalizing/README.md index ec0afadd..0da98ebb 100644 --- a/subjects/capitalizing/README.md +++ b/subjects/capitalizing/README.md @@ -38,9 +38,9 @@ fn main() { And its output ```consoole -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/capitalizing/test$ cargo run Joe is missing Jill Is Leaving A HEllO thERE -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/capitalizing/test$ ``` diff --git a/subjects/card_deck/README.md b/subjects/card_deck/README.md index eb65404d..226b91d6 100644 --- a/subjects/card_deck/README.md +++ b/subjects/card_deck/README.md @@ -82,7 +82,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/card_deck/test$ cargo run Your card is Card { suit: Club, rank: Ace } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/card_deck/test$ ``` diff --git a/subjects/cat/README.md b/subjects/cat/README.md index 951eaa48..5c2e505a 100644 --- a/subjects/cat/README.md +++ b/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). ```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:~/[[ROOT]]/cat$ cat < quest8T.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:~/cat$ cat < 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." EOF -student@ubuntu:~/[[ROOT]]/cat$ go build -student@ubuntu:~/[[ROOT]]/cat$ ./cat abc +student@ubuntu:~/cat$ go build +student@ubuntu:~/cat$ ./cat abc 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 -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 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 -student@ubuntu:~/[[ROOT]]/cat$ ./cat +student@ubuntu:~/cat$ ./cat Hello Hello ^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 "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$ ``` diff --git a/subjects/changes/README.md b/subjects/changes/README.md index 01c5af92..1f75bdf3 100644 --- a/subjects/changes/README.md +++ b/subjects/changes/README.md @@ -54,8 +54,8 @@ fn main() { And its expected output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/changes/test$ cargo run brightness = 0 new brightness = 200 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/changes/test$ ``` diff --git a/subjects/chunk/README.md b/subjects/chunk/README.md index 913c9f06..56fbeb8b 100644 --- a/subjects/chunk/README.md +++ b/subjects/chunk/README.md @@ -33,12 +33,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/chunk/test$ go build +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]] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/chunk/test$ ``` diff --git a/subjects/cipher/README.md b/subjects/cipher/README.md index 9c283318..a5451b1d 100644 --- a/subjects/cipher/README.md +++ b/subjects/cipher/README.md @@ -48,9 +48,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/cipher/test$ cargo run Some(Ok(true)) Some(Err(CipherError { validation: false, expected: "1Svool 2dliow!" })) None -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cipher/test$ ``` diff --git a/subjects/circle/README.md b/subjects/circle/README.md index e8efb61a..cfb88a6f 100644 --- a/subjects/circle/README.md +++ b/subjects/circle/README.md @@ -93,11 +93,11 @@ fn main() { And its output ```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 } diameter = 300 circle1 = Circle { center: Point { x: 80.0, y: 115.0 }, radius: 30.0 } diameter = 60 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 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/circle/test$ ``` diff --git a/subjects/cl-camp2/README.md b/subjects/cl-camp2/README.md index 40af5df7..eb3cf141 100644 --- a/subjects/cl-camp2/README.md +++ b/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 ```console -student@ubuntu:~/[[ROOT]]/test$ cat -e r +student@ubuntu:~/cl-camp2/test$ cat -e r R$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp2/test$ ``` diff --git a/subjects/cl-camp4/README.md b/subjects/cl-camp4/README.md index 7033b310..16b70f3d 100644 --- a/subjects/cl-camp4/README.md +++ b/subjects/cl-camp4/README.md @@ -17,8 +17,8 @@ Create a file `myfamily.sh`, which will show a subject's family (key: relatives) ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ export HERO_ID=1 -student@ubuntu:~/[[ROOT]]/test$ ./myfamily.sh +student@ubuntu:~/cl-camp4/test$ export HERO_ID=1 +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) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp4/test$ ``` diff --git a/subjects/cl-camp5/README.md b/subjects/cl-camp5/README.md index 37210ce3..f2572ab3 100644 --- a/subjects/cl-camp5/README.md +++ b/subjects/cl-camp5/README.md @@ -13,11 +13,11 @@ That command will only show the name of the files without the `.sh`. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ ./lookagain.sh | cat -e +student@ubuntu:~/cl-camp5/test$ ./lookagain.sh | cat -e file1$ file2$ file3$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp5/test$ ``` ### Hint diff --git a/subjects/cl-camp6/README.md b/subjects/cl-camp6/README.md index 846e7121..dfdf403e 100644 --- a/subjects/cl-camp6/README.md +++ b/subjects/cl-camp6/README.md @@ -9,7 +9,7 @@ Create a file `countfiles.sh`, which will print the number **(and only the numbe ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ ./countfiles.sh | cat -e +student@ubuntu:~/cl-camp6/test$ ./countfiles.sh | cat -e 12$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp6/test$ ``` diff --git a/subjects/cl-camp7/README.md b/subjects/cl-camp7/README.md index ac866139..b59ae8ea 100644 --- a/subjects/cl-camp7/README.md +++ b/subjects/cl-camp7/README.md @@ -9,7 +9,7 @@ Create a file `"\?$*'ChouMi'*$?\"` that will contain "01" and **nothing else**. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ ls | cat -e +student@ubuntu:~/cl-camp7/test$ ls | cat -e "\?$*'ChouMi'*$?\"$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp7/test$ ``` diff --git a/subjects/cleanstr/README.md b/subjects/cleanstr/README.md index cfce6779..6929b5d9 100644 --- a/subjects/cleanstr/README.md +++ b/subjects/cleanstr/README.md @@ -17,13 +17,13 @@ program displays nothing. ### Usage : ```console -student@ubuntu:~/[[ROOT]]/cleanstr$ go build -student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/cleanstr$ go build +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$ -student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " only it's harder " +student@ubuntu:~/cleanstr$ ./cleanstr " 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:~/[[ROOT]]/cleanstr$ +student@ubuntu:~/cleanstr$ ./cleanstr "" +student@ubuntu:~/cleanstr$ ``` diff --git a/subjects/closures/README.md b/subjects/closures/README.md index 3c5b04d1..bc051236 100644 --- a/subjects/closures/README.md +++ b/subjects/closures/README.md @@ -35,7 +35,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/closures/test$ cargo run All elements in [4, 16, 36, ..., 10000], len = 50 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/closures/test$ ``` diff --git a/subjects/collect/README.md b/subjects/collect/README.md index 443d37cb..8370798d 100644 --- a/subjects/collect/README.md +++ b/subjects/collect/README.md @@ -32,8 +32,8 @@ fn main() { And its output: ```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] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/collect/test$ ``` diff --git a/subjects/comcheck/README.md b/subjects/comcheck/README.md index 19d14407..60425d65 100644 --- a/subjects/comcheck/README.md +++ b/subjects/comcheck/README.md @@ -11,10 +11,10 @@ Write a program `comcheck` that displays on the standard output `Alert!!!` follo ### Usage ```console -student@ubuntu:~/[[ROOT]]/comcheck$ go build -student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" +student@ubuntu:~/comcheck$ go build +student@ubuntu:~/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" Alert!!! -student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" +student@ubuntu:~/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" Alert!!! -student@ubuntu:~/[[ROOT]]/comcheck$ +student@ubuntu:~/comcheck$ ``` diff --git a/subjects/commits_stats/README.md b/subjects/commits_stats/README.md index 625d00fa..9d42fcaa 100644 --- a/subjects/commits_stats/README.md +++ b/subjects/commits_stats/README.md @@ -51,8 +51,8 @@ fn main() { And its output: ```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} {"homembaixinho": 2, "mwenzkowski": 3, ... ,"tamirzb": 1, "paul-ri": 2, "RPigott": 1} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/commits_stats/test$ ``` diff --git a/subjects/compact/README.md b/subjects/compact/README.md index 67056c7a..67ca5cce 100644 --- a/subjects/compact/README.md +++ b/subjects/compact/README.md @@ -53,8 +53,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/compact/test$ go build +student@ubuntu:~/compact/test$ ./test a b @@ -65,5 +65,5 @@ Size after compacting: 3 a b c -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/compact/test$ ``` diff --git a/subjects/compare/README.md b/subjects/compare/README.md index d1bb0ea1..c63eedf2 100644 --- a/subjects/compare/README.md +++ b/subjects/compare/README.md @@ -34,10 +34,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/compare/test$ go build +student@ubuntu:~/compare/test$ ./test 0 -1 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/compare/test$ ``` diff --git a/subjects/concat/README.md b/subjects/concat/README.md index 7e0c1a04..b2cd81ee 100644 --- a/subjects/concat/README.md +++ b/subjects/concat/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/concat/test$ go build +student@ubuntu:~/concat/test$ ./test Hello! How are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/concat/test$ ``` diff --git a/subjects/concatparams/README.md b/subjects/concatparams/README.md index 65b9756c..83b449f9 100644 --- a/subjects/concatparams/README.md +++ b/subjects/concatparams/README.md @@ -34,11 +34,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/concatparams/test$ go build +student@ubuntu:~/concatparams/test$ ./test Hello how are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/concatparams/test$ ``` diff --git a/subjects/convertbase/README.md b/subjects/convertbase/README.md index 5ef8ef57..21f2cf04 100644 --- a/subjects/convertbase/README.md +++ b/subjects/convertbase/README.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/convertbase/test$ go build +student@ubuntu:~/convertbase/test$ ./test 43 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/convertbase/test$ ``` diff --git a/subjects/copy/README.md b/subjects/copy/README.md index 0b6f8c4a..99a5f5ce 100644 --- a/subjects/copy/README.md +++ b/subjects/copy/README.md @@ -60,9 +60,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/copy/test$ cargo run (0, 1.0, inf) ("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]) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/copy/test$ ``` diff --git a/subjects/countdown/README.md b/subjects/countdown/README.md index e3f3854f..d3454498 100644 --- a/subjects/countdown/README.md +++ b/subjects/countdown/README.md @@ -7,8 +7,8 @@ Write a program that displays all digits in descending order, followed by a newl ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/countdown/test$ go build +student@ubuntu:~/countdown/test$ ./test 9876543210 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/countdown/test$ ``` diff --git a/subjects/countif/README.md b/subjects/countif/README.md index 2d7630c8..31a32fda 100644 --- a/subjects/countif/README.md +++ b/subjects/countif/README.md @@ -37,9 +37,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/countif/test$ go build +student@ubuntu:~/countif/test$ ./test 0 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/countif/test$ ``` diff --git a/subjects/counting_words/README.md b/subjects/counting_words/README.md index dc3edb34..242a9454 100644 --- a/subjects/counting_words/README.md +++ b/subjects/counting_words/README.md @@ -42,9 +42,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/counting_words/test$ cargo run {"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} {"batman": 3, "stop": 2} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/counting_words/test$ ``` diff --git a/subjects/createelem/README.md b/subjects/createelem/README.md index 13bae744..9acb2ff6 100644 --- a/subjects/createelem/README.md +++ b/subjects/createelem/README.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/createelem/test$ go build +student@ubuntu:~/createelem/test$ ./test &{1234} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/createelem/test$ ``` diff --git a/subjects/delete_prefix/README.md b/subjects/delete_prefix/README.md index b082825e..bd6577c1 100644 --- a/subjects/delete_prefix/README.md +++ b/subjects/delete_prefix/README.md @@ -27,8 +27,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/delete_prefix/test$ cargo run Some("cdefghijklmnop") None -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/delete_prefix/test$ ``` diff --git a/subjects/diamond_creation/README.md b/subjects/diamond_creation/README.md index 9cead701..b49f8044 100644 --- a/subjects/diamond_creation/README.md +++ b/subjects/diamond_creation/README.md @@ -43,8 +43,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/diamond_creation/test$ cargo run ["A"] [" A ", " B B ", "C C", " B B ", " A "] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/diamond_creation/test$ ``` diff --git a/subjects/display_table/README.md b/subjects/display_table/README.md index a772c98d..d414e73e 100644 --- a/subjects/display_table/README.md +++ b/subjects/display_table/README.md @@ -74,11 +74,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/display_table/test$ cargo run | Model | Piece N° | In Stock | Description | |---------+-------------+-----------+-------------| | model 1 | 43-EWQE304 | 30 | Piece for x | | model 2 | 98-QCVX5433 | 100000000 | - | | model y | 78-NMNH | 60 | nothing | -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/display_table/test$ ``` diff --git a/subjects/displaya/README.md b/subjects/displaya/README.md index 631cfe67..48526365 100644 --- a/subjects/displaya/README.md +++ b/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 ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "abc" +student@ubuntu:~/displaya/test$ go build +student@ubuntu:~/displaya/test$ ./test "abc" a -student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvA" +student@ubuntu:~/displaya/test$ ./test "bcvbvA" a -student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" +student@ubuntu:~/displaya/test$ ./test "nbv" a -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/displaya/test$ ``` diff --git a/subjects/displayalpham/README.md b/subjects/displayalpham/README.md index 2f6a30b9..538ba76e 100644 --- a/subjects/displayalpham/README.md +++ b/subjects/displayalpham/README.md @@ -7,8 +7,8 @@ Write a program that displays the alphabet, with even letters in uppercase, and ### Usage ```console -student@ubuntu:~/[[ROOT]]/displayalpham$ go build -student@ubuntu:~/[[ROOT]]/displayalpham$ ./displayalpham | cat -e +student@ubuntu:~/displayalpham$ go build +student@ubuntu:~/displayalpham$ ./displayalpham | cat -e aBcDeFgHiJkLmNoPqRsTuVwXyZ$ -student@ubuntu:~/[[ROOT]]/displayalpham$ +student@ubuntu:~/displayalpham$ ``` diff --git a/subjects/displayalrevm/README.md b/subjects/displayalrevm/README.md index 08238da0..20521121 100644 --- a/subjects/displayalrevm/README.md +++ b/subjects/displayalrevm/README.md @@ -7,8 +7,8 @@ Write a program that displays the alphabet in reverse, with even letters in uppe ### Usage ```console -student@ubuntu:~/[[ROOT]]/displayalrevm$ go build -student@ubuntu:~/[[ROOT]]/displayalrevm$ ./displayalrevm | cat -e +student@ubuntu:~/displayalrevm$ go build +student@ubuntu:~/displayalrevm$ ./displayalrevm | cat -e zYxWvUtSrQpOnMlKjIhGfEdCbA$ -student@ubuntu:~/[[ROOT]]/displayalrevm$ +student@ubuntu:~/displayalrevm$ ``` diff --git a/subjects/displayfile/README.md b/subjects/displayfile/README.md index 55bfbe0d..4fa71638 100644 --- a/subjects/displayfile/README.md +++ b/subjects/displayfile/README.md @@ -7,13 +7,13 @@ Write a program that displays, on the standard output, the content of a file giv ### Usage : ```console -student@ubuntu:~/[[ROOT]]/displayfile$ go build -student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile +student@ubuntu:~/displayfile$ go build +student@ubuntu:~/displayfile$ ./displayfile File name missing -student@ubuntu:~/[[ROOT]]/displayfile$ echo "Almost there!!" > quest8.txt -student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt main.go +student@ubuntu:~/displayfile$ echo "Almost there!!" > quest8.txt +student@ubuntu:~/displayfile$ ./displayfile quest8.txt main.go Too many arguments -student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt +student@ubuntu:~/displayfile$ ./displayfile quest8.txt Almost there!! -student@ubuntu:~/[[ROOT]]/displayfile$ +student@ubuntu:~/displayfile$ ``` diff --git a/subjects/displayfirstparam/README.md b/subjects/displayfirstparam/README.md index da6d6564..abcdbdfd 100644 --- a/subjects/displayfirstparam/README.md +++ b/subjects/displayfirstparam/README.md @@ -7,11 +7,11 @@ Write a program that displays its first argument, if there is one. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test hello there +student@ubuntu:~/displayfirstparam/test$ go build +student@ubuntu:~/displayfirstparam/test$ ./test hello there hello -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you +student@ubuntu:~/displayfirstparam/test$ ./test "hello there" how are you hello there -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/displayfirstparam/test$ ./test +student@ubuntu:~/displayfirstparam/test$ ``` diff --git a/subjects/displaylastparam/README.md b/subjects/displaylastparam/README.md index abcbcba6..35ef00f4 100644 --- a/subjects/displaylastparam/README.md +++ b/subjects/displaylastparam/README.md @@ -7,13 +7,13 @@ Write a program that displays its last argument, if there is one. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test hello there +student@ubuntu:~/displaylastparam/test$ go build +student@ubuntu:~/displaylastparam/test$ ./test hello there there -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you +student@ubuntu:~/displaylastparam/test$ ./test "hello there" how are you you -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" +student@ubuntu:~/displaylastparam/test$ ./test "hello there" hello there -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/displaylastparam/test$ ./test +student@ubuntu:~/displaylastparam/test$ ``` diff --git a/subjects/displayz/README.md b/subjects/displayz/README.md index bb2c3547..18173166 100644 --- a/subjects/displayz/README.md +++ b/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 ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "xyz" +student@ubuntu:~/displayz/test$ go build +student@ubuntu:~/displayz/test$ ./test "xyz" z -student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvZ" +student@ubuntu:~/displayz/test$ ./test "bcvbvZ" z -student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" +student@ubuntu:~/displayz/test$ ./test "nbv" z -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/displayz/test$ ./test ``` diff --git a/subjects/division_and_remainder/README.md b/subjects/division_and_remainder/README.md index 525e4171..f79940ed 100644 --- a/subjects/division_and_remainder/README.md +++ b/subjects/division_and_remainder/README.md @@ -41,7 +41,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/division_and_remainder/test$ cargo run 9/4: division = 2, remainder = 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/division_and_remainder/test$ ``` diff --git a/subjects/divmod/README.md b/subjects/divmod/README.md index 41f92cb6..f8f91cb0 100644 --- a/subjects/divmod/README.md +++ b/subjects/divmod/README.md @@ -42,9 +42,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/divmod/test$ go build +student@ubuntu:~/divmod/test$ ./test 6 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/divmod/test$ ``` diff --git a/subjects/doop/README.md b/subjects/doop/README.md index a5b61964..c1f62dd5 100644 --- a/subjects/doop/README.md +++ b/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 ```console -student@ubuntu:~/[[ROOT]]/test$ go build doop.go -student@ubuntu:~/[[ROOT]]/test$ ./doop -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 + 1 | cat -e +student@ubuntu:~/doop/test$ go build doop.go +student@ubuntu:~/doop/test$ ./doop +student@ubuntu:~/doop/test$ ./doop 1 + 1 | cat -e 2$ -student@ubuntu:~/[[ROOT]]/test$ ./doop hello + 1 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 p 1 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 / 0 | cat -e +student@ubuntu:~/doop/test$ ./doop hello + 1 +student@ubuntu:~/doop/test$ ./doop 1 p 1 +student@ubuntu:~/doop/test$ ./doop 1 / 0 | cat -e 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$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 + 1 +student@ubuntu:~/doop/test$ ./doop 9223372036854775807 + 1 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop -9223372036854775809 - 3 +student@ubuntu:~/doop/test$ ./doop -9223372036854775809 - 3 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 "*" 3 +student@ubuntu:~/doop/test$ ./doop 9223372036854775807 "*" 3 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" 1 +student@ubuntu:~/doop/test$ ./doop 1 "*" 1 1 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" -1 +student@ubuntu:~/doop/test$ ./doop 1 "*" -1 -1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/doop/test$ ``` diff --git a/subjects/doubtful/README.md b/subjects/doubtful/README.md index c8c0bb9f..232dd432 100644 --- a/subjects/doubtful/README.md +++ b/subjects/doubtful/README.md @@ -38,8 +38,8 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/doubtful/test$ cargo run Before changing the string: Hello After changing the string: Hello? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/doubtful/test$ ``` diff --git a/subjects/drop_the_thread/README.md b/subjects/drop_the_thread/README.md index 4e4a6583..a30543e1 100644 --- a/subjects/drop_the_thread/README.md +++ b/subjects/drop_the_thread/README.md @@ -105,9 +105,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/drop_the_thread/test$ cargo run (true, 0, Cell { value: 1 }) (true, 1, Cell { value: 2 }) (false, 2, Cell { value: 2 }, 1) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/drop_the_thread/test$ ``` diff --git a/subjects/easy_traits/README.md b/subjects/easy_traits/README.md index 8f7c5053..5b943c78 100644 --- a/subjects/easy_traits/README.md +++ b/subjects/easy_traits/README.md @@ -42,8 +42,8 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/easy_traits/test$ cargo run hello world ["one", "two", "three"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/easy_traits/test$ ``` diff --git a/subjects/edit_distance/README.md b/subjects/edit_distance/README.md index 78321e76..4b9c1162 100644 --- a/subjects/edit_distance/README.md +++ b/subjects/edit_distance/README.md @@ -37,7 +37,7 @@ fn main() { And its output: ```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 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/edit_distance/test$ ``` diff --git a/subjects/eightqueens/README.md b/subjects/eightqueens/README.md index 4fde6a32..d2e1dad7 100644 --- a/subjects/eightqueens/README.md +++ b/subjects/eightqueens/README.md @@ -9,8 +9,8 @@ Recursivity must be used to solve this problem. It should print something like this : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/eightqueens/test$ go build +student@ubuntu:~/eightqueens/test$ ./test 15863724 16837425 17468253 diff --git a/subjects/enigma/README.md b/subjects/enigma/README.md index 426254e4..dbf60828 100644 --- a/subjects/enigma/README.md +++ b/subjects/enigma/README.md @@ -74,8 +74,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/enigma/test$ go build +student@ubuntu:~/enigma/test$ ./test 5 2 7 @@ -85,5 +85,5 @@ After using Enigma 6 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/enigma/test$ ``` diff --git a/subjects/ephemeris/README.md b/subjects/ephemeris/README.md index 6d695ad2..450726cd 100644 --- a/subjects/ephemeris/README.md +++ b/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: ```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: diff --git a/subjects/error_types/README.md b/subjects/error_types/README.md index ad5ce4eb..cc3e7a27 100644 --- a/subjects/error_types/README.md +++ b/subjects/error_types/README.md @@ -115,12 +115,12 @@ fn main() { And its output: ```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_" } ["Valid first name", "Valid password"] 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", "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)" } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/error_types/test$ ``` diff --git a/subjects/events/README.md b/subjects/events/README.md index b680e6c5..72b39721 100644 --- a/subjects/events/README.md +++ b/subjects/events/README.md @@ -110,10 +110,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/events/test$ cargo run (Bottom, 50, Go to the doctor) (Top, 30, You have 13H:38M:14S left before the registration ends) (Center, 100, Go to the doctor) (Top, 25, Enjoy your holiday) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/events/test$ ``` diff --git a/subjects/expandstr/README.md b/subjects/expandstr/README.md index af7561ac..441c5a6a 100644 --- a/subjects/expandstr/README.md +++ b/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 ```console -student@ubuntu:~/[[ROOT]]/expandstr$ go build -student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/expandstr$ go build +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$ -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$ -student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e -student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr -student@ubuntu:~/[[ROOT]]/expandstr$ +student@ubuntu:~/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e +student@ubuntu:~/expandstr$ ./expandstr +student@ubuntu:~/expandstr$ ``` diff --git a/subjects/explain/README.md b/subjects/explain/README.md index edabcd4f..2c3d4cd7 100644 --- a/subjects/explain/README.md +++ b/subjects/explain/README.md @@ -18,14 +18,14 @@ Write an `explain.sh` file that: ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ ./explain.sh | cat -e +student@ubuntu:~/explain/test$ ./explain.sh | cat -e FirstNameOfWitness LastNameOfWitness$ 123456$ Red Ferrari$ FirstNameOfSuspect1 LastNameOfSuspect1$ FirstNameOfSuspect2 LastNameOfSuspect2$ FirstNameOfSuspect3 LastNameOfSuspect3$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/explain/test$ ``` ### Hint diff --git a/subjects/fib/README.md b/subjects/fib/README.md index 1130492f..1459c7da 100644 --- a/subjects/fib/README.md +++ b/subjects/fib/README.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/fib/test$ go build +student@ubuntu:~/fib/test$ ./test 0 1 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/fib/test$ ``` diff --git a/subjects/fibonacci/README.md b/subjects/fibonacci/README.md index 6b7b298e..8ffdf5b1 100644 --- a/subjects/fibonacci/README.md +++ b/subjects/fibonacci/README.md @@ -43,8 +43,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/fibonacci/test$ go build +student@ubuntu:~/fibonacci/test$ ./test 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/fibonacci/test$ ``` diff --git a/subjects/fibonacci2/README.md b/subjects/fibonacci2/README.md index 530eb083..9de5584a 100644 --- a/subjects/fibonacci2/README.md +++ b/subjects/fibonacci2/README.md @@ -39,10 +39,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/fibonacci2/test$ cargo run The element in the position 2 in fibonacci series is 1 The element in the position 4 in fibonacci series is 3 The element in the position 22 in fibonacci series is 17711 The element in the position 20 in fibonacci series is 6765 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/fibonacci2/test$ ``` diff --git a/subjects/filter_table/README.md b/subjects/filter_table/README.md index 64bfdbc6..0e6e7297 100644 --- a/subjects/filter_table/README.md +++ b/subjects/filter_table/README.md @@ -82,8 +82,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/filter_table/test$ cargo run Some(Table { headers: ["Name"], body: [["Adam"], ["Adamaris"], ["Ackerley"]] }) Some(Table { headers: ["Name", "Last Name", "ID Number"], body: [["Adam", "Philips", "123456789"], ["Ackerley", "Philips", "123456789"]] }) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/filter_table/test$ ``` diff --git a/subjects/find_factorial/README.md b/subjects/find_factorial/README.md index c639ab8e..4a84d51c 100644 --- a/subjects/find_factorial/README.md +++ b/subjects/find_factorial/README.md @@ -36,11 +36,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/find_factorial/test$ cargo run The factorial of 0 = 1 The factorial of 1 = 1 The factorial of 5 = 120 The factorial of 10 = 3628800 The factorial of 19 = 121645100408832000 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/find_factorial/test$ ``` diff --git a/subjects/findnextprime/README.md b/subjects/findnextprime/README.md index dcf967f8..4975c347 100644 --- a/subjects/findnextprime/README.md +++ b/subjects/findnextprime/README.md @@ -37,9 +37,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/findnextprime/test$ go build +student@ubuntu:~/findnextprime/test$ ./test 5 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/findnextprime/test$ ``` diff --git a/subjects/firstrune/README.md b/subjects/firstrune/README.md index 8373c2bd..7c84dc64 100644 --- a/subjects/firstrune/README.md +++ b/subjects/firstrune/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/firstrune/test$ go build +student@ubuntu:~/firstrune/test$ ./test HSO -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/firstrune/test$ ``` diff --git a/subjects/firstword/README.md b/subjects/firstword/README.md index 7bc1ab8d..a1513de5 100644 --- a/subjects/firstword/README.md +++ b/subjects/firstword/README.md @@ -13,12 +13,12 @@ Write a program that takes an argument and displays its first word, followed by ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" +student@ubuntu:~/firstword/test$ go build +student@ubuntu:~/firstword/test$ ./test "hello there" hello -student@ubuntu:~/[[ROOT]]/test$ ./test "hello ......... bye" +student@ubuntu:~/firstword/test$ ./test "hello ......... bye" hello -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ ./test "hello" "there" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/firstword/test$ ./test +student@ubuntu:~/firstword/test$ ./test "hello" "there" +student@ubuntu:~/firstword/test$ ``` diff --git a/subjects/flags/README.md b/subjects/flags/README.md index d703c8e2..8ad558f8 100644 --- a/subjects/flags/README.md +++ b/subjects/flags/README.md @@ -13,37 +13,37 @@ This program should : Example of output : ```console -student@ubuntu:~/[[ROOT]]/flags$ go build -student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert=4321 --order asdad +student@ubuntu:~/flags$ go build +student@ubuntu:~/flags$ ./flags --insert=4321 --order asdad 1234aadds -student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert=4321 asdad +student@ubuntu:~/flags$ ./flags --insert=4321 asdad asdad4321 -student@ubuntu:~/[[ROOT]]/flags$ ./flags asdad +student@ubuntu:~/flags$ ./flags asdad asdad -student@ubuntu:~/[[ROOT]]/flags$ ./flags --order 43a21 +student@ubuntu:~/flags$ ./flags --order 43a21 1234a -student@ubuntu:~/[[ROOT]]/flags$ ./flags +student@ubuntu:~/flags$ ./flags --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/[[ROOT]]/flags$ -student@ubuntu:~/[[ROOT]]/flags$ ./flags -h +student@ubuntu:~/flags$ +student@ubuntu:~/flags$ ./flags -h --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/[[ROOT]]/flags$ -student@ubuntu:~/[[ROOT]]/flags$ ./flags --help +student@ubuntu:~/flags$ +student@ubuntu:~/flags$ ./flags --help --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/[[ROOT]]/flags$ +student@ubuntu:~/flags$ ``` diff --git a/subjects/flat_tree/README.md b/subjects/flat_tree/README.md index e0fcd730..5bb23779 100644 --- a/subjects/flat_tree/README.md +++ b/subjects/flat_tree/README.md @@ -37,8 +37,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/flat_tree/test$ cargo run [0, 9, 30, 34] ["Horses", "Slow", "kill", "will"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/flat_tree/test$ ``` diff --git a/subjects/foldint/README.md b/subjects/foldint/README.md index 3c7a065e..e9ab2439 100644 --- a/subjects/foldint/README.md +++ b/subjects/foldint/README.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/foldint/test$ go build +student@ubuntu:~/foldint/test$ ./test 99 558 87 @@ -47,5 +47,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 93 0 93 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/foldint/test$ ``` diff --git a/subjects/foreach/README.md b/subjects/foreach/README.md index 9d868445..141d3913 100644 --- a/subjects/foreach/README.md +++ b/subjects/foreach/README.md @@ -30,8 +30,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/foreach/test$ go build +student@ubuntu:~/foreach/test$ ./test 123456 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/foreach/test$ ``` diff --git a/subjects/fprime/README.md b/subjects/fprime/README.md index 406d0325..3ba40f0a 100644 --- a/subjects/fprime/README.md +++ b/subjects/fprime/README.md @@ -11,19 +11,19 @@ Write a program that takes a positive `int` and displays its prime factors, foll ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test 225225 +student@ubuntu:~/fprime/test$ go build +student@ubuntu:~/fprime/test$ ./test 225225 3*3*5*5*7*11*13 -student@ubuntu:~/[[ROOT]]/test$ ./test 8333325 +student@ubuntu:~/fprime/test$ ./test 8333325 3*3*5*5*7*11*13*37 -student@ubuntu:~/[[ROOT]]/test$ ./test 9539 +student@ubuntu:~/fprime/test$ ./test 9539 9539 -student@ubuntu:~/[[ROOT]]/test$ ./test 804577 +student@ubuntu:~/fprime/test$ ./test 804577 804577 -student@ubuntu:~/[[ROOT]]/test$ ./test 42 +student@ubuntu:~/fprime/test$ ./test 42 2*3*7 -student@ubuntu:~/[[ROOT]]/test$ ./test a -student@ubuntu:~/[[ROOT]]/test$ ./test 0 -student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/fprime/test$ ./test a +student@ubuntu:~/fprime/test$ ./test 0 +student@ubuntu:~/fprime/test$ ./test 1 +student@ubuntu:~/fprime/test$ ``` diff --git a/subjects/game23/README.md b/subjects/game23/README.md index 23c7cba4..83678b7b 100644 --- a/subjects/game23/README.md +++ b/subjects/game23/README.md @@ -36,10 +36,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/game23/test$ go build +student@ubuntu:~/game23/test$ ./test 1 -1 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/game23/test$ ``` diff --git a/subjects/gcd/README.md b/subjects/gcd/README.md index d725f79c..e21166fe 100644 --- a/subjects/gcd/README.md +++ b/subjects/gcd/README.md @@ -13,16 +13,16 @@ All arguments tested will be positive `int` values. ### Usage ```console -student@ubuntu:~/[[ROOT]]/gcd$ go build -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 42 10 | cat -e +student@ubuntu:~/gcd$ go build +student@ubuntu:~/gcd$ ./gcd 42 10 | cat -e 2$ -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 42 12 +student@ubuntu:~/gcd$ ./gcd 42 12 6 -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 14 77 +student@ubuntu:~/gcd$ ./gcd 14 77 7 -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 17 3 +student@ubuntu:~/gcd$ ./gcd 17 3 1 -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 50 12 4 -student@ubuntu:~/[[ROOT]]/gcd$ +student@ubuntu:~/gcd$ ./gcd +student@ubuntu:~/gcd$ ./gcd 50 12 4 +student@ubuntu:~/gcd$ ``` diff --git a/subjects/generics/README.md b/subjects/generics/README.md index e7aa9fd7..6e7b443d 100644 --- a/subjects/generics/README.md +++ b/subjects/generics/README.md @@ -27,8 +27,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/generics/test$ cargo run Hello, world! 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/generics/test$ ``` diff --git a/subjects/get_products/README.md b/subjects/get_products/README.md index 730bbd1f..79ba98bf 100644 --- a/subjects/get_products/README.md +++ b/subjects/get_products/README.md @@ -40,7 +40,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/get_products/test$ cargo run [84, 12, 28, 21] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/get_products/test$ ``` diff --git a/subjects/go-reloaded/README.md b/subjects/go-reloaded/README.md index 6624059c..95b016af 100644 --- a/subjects/go-reloaded/README.md +++ b/subjects/go-reloaded/README.md @@ -70,8 +70,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 12345 12345 0 @@ -80,7 +80,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test -1234 0 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -129,10 +129,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 64 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -183,12 +183,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 012, 013, 014, 015, 016, 017, 018, ... 679, 689, 789 012345678, 012345679, ..., 123456789 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -253,14 +253,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 125 -1111101 7D -uoi NV -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -297,29 +297,29 @@ The program has to handle the modulo and division operations by 0 as shown on th ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build doop.go -student@ubuntu:~/[[ROOT]]/test$ ./doop -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 + 1 | cat -e +student@ubuntu:~/go-reloaded/test$ go build doop.go +student@ubuntu:~/go-reloaded/test$ ./doop +student@ubuntu:~/go-reloaded/test$ ./doop 1 + 1 | cat -e 2$ -student@ubuntu:~/[[ROOT]]/test$ ./doop hello + 1 | cat -e +student@ubuntu:~/go-reloaded/test$ ./doop hello + 1 | cat -e 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 p 1 | cat -e +student@ubuntu:~/go-reloaded/test$ ./doop 1 p 1 | cat -e 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 / 0 | cat -e +student@ubuntu:~/go-reloaded/test$ ./doop 1 / 0 | cat -e No division by 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 % 0 | cat -e +student@ubuntu:~/go-reloaded/test$ ./doop 1 % 0 | cat -e No modulo by 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 + 1 +student@ubuntu:~/go-reloaded/test$ ./doop 9223372036854775807 + 1 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop -9223372036854775809 - 3 +student@ubuntu:~/go-reloaded/test$ ./doop -9223372036854775809 - 3 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 "*" 3 +student@ubuntu:~/go-reloaded/test$ ./doop 9223372036854775807 "*" 3 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" 1 +student@ubuntu:~/go-reloaded/test$ ./doop 1 "*" 1 1 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" -1 +student@ubuntu:~/go-reloaded/test$ ./doop 1 "*" -1 -1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -379,14 +379,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 125 125 125 125 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -432,10 +432,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test [Hello how are you?] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -481,10 +481,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test [Hello how are you?] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -533,10 +533,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 43 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -561,20 +561,20 @@ Write a **program** that checks the arguments for vowels. Example of output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "Hello World" | cat -e +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "Hello World" | cat -e Hollo Werld$ -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "HEllO World" "problem solved" +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "HEllO World" "problem solved" Hello Werld problom sOlvEd -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "str" "shh" "psst" +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "str" "shh" "psst" str shh psst -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "happy thoughts" "good luck" +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "happy thoughts" "good luck" huppy thooghts guod lack -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "aEi" "Ou" +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "aEi" "Ou" uOi Ea -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels +student@ubuntu:~/go-reloaded/test$ ./rotatevowels -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -622,10 +622,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -664,19 +664,19 @@ Write a program that behaves like a simplified `cat` command. - The program must be submitted inside a folder named `cat`. ```console -student@ubuntu:~/[[ROOT]]/cat$ go build -student@ubuntu:~/[[ROOT]]/cat$ ./cat abc +student@ubuntu:~/go-reloaded/cat$ go build +student@ubuntu:~/go-reloaded/cat$ ./cat abc ERROR: abc: No such file or directory -student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt +student@ubuntu:~/go-reloaded/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing -student@ubuntu:~/[[ROOT]]/cat$ ./cat +student@ubuntu:~/go-reloaded/cat$ ./cat Hello Hello ^C -student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt quest8T.txt +student@ubuntu:~/go-reloaded/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." -student@ubuntu:~/[[ROOT]]/cat$ +student@ubuntu:~/go-reloaded/cat$ ``` --- @@ -751,10 +751,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -834,11 +834,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 1 -> 4 -> 9 -> -2 -> 1 -> 2 -> 4 -> 9 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -915,10 +915,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test -2 -> 3 -> 5 -> 7 -> 9 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -1009,8 +1009,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test ----normal state---- 1 -> ------answer----- @@ -1020,7 +1020,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 1 -> Hello -> 1 -> There -> 1 -> 1 -> How -> 1 -> are -> you -> 1 -> ------answer----- Hello -> There -> How -> are -> you -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -1066,13 +1066,13 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 3 4 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -1115,13 +1115,13 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 4 1 7 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -1171,8 +1171,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test Before delete: 1 4 @@ -1182,5 +1182,5 @@ After delete: 1 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` diff --git a/subjects/groceries/README.md b/subjects/groceries/README.md index f765550e..fb94e116 100644 --- a/subjects/groceries/README.md +++ b/subjects/groceries/README.md @@ -47,8 +47,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/groceries/test$ cargo run The groceries list now = ["yogurt", "panetone", "bread", "cheese", "nuts"] The second element of the grocery list is "panetone" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/groceries/test$ ``` diff --git a/subjects/grouping/README.md b/subjects/grouping/README.md index c920a237..14f68ee0 100644 --- a/subjects/grouping/README.md +++ b/subjects/grouping/README.md @@ -13,12 +13,12 @@ If the number of arguments is different from 2, if the regular expression is not ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(a)" "I'm heavy, jumpsuit is on steady, Lighter when I'm lower, higher when I'm heavy" +student@ubuntu:~/grouping/test$ go build +student@ubuntu:~/grouping/test$ ./regbrackets "(a)" "I'm heavy, jumpsuit is on steady, Lighter when I'm lower, higher when I'm heavy" 1: heavy 2: steady 3: heavy -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(e|n)" "I currently have 4 windows opened up… and I don’t know why." +student@ubuntu:~/grouping/test$ ./regbrackets "(e|n)" "I currently have 4 windows opened up… and I don’t know why." 1: currently 2: currently 3: have @@ -28,10 +28,10 @@ student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(e|n)" "I currently have 4 window 7: and 8: don’t 9: know -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(hi)" "He swore he just saw his sushi move." +student@ubuntu:~/grouping/test$ ./regbrackets "(hi)" "He swore he just saw his sushi move." 1: his 2: sushi -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(s)" "" -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "i" "Something in the air" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/grouping/test$ ./regbrackets "(s)" "" +student@ubuntu:~/grouping/test$ ./regbrackets "i" "Something in the air" +student@ubuntu:~/grouping/test$ ``` diff --git a/subjects/halfcontest/README.md b/subjects/halfcontest/README.md index c51b5f9f..5ef03540 100644 --- a/subjects/halfcontest/README.md +++ b/subjects/halfcontest/README.md @@ -41,10 +41,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/halfcontest/test$ go build +student@ubuntu:~/halfcontest/test$ ./test 224 1059 1002 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/halfcontest/test$ ``` diff --git a/subjects/handling/README.md b/subjects/handling/README.md index 131cece3..4340b970 100644 --- a/subjects/handling/README.md +++ b/subjects/handling/README.md @@ -49,7 +49,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/handling/test$ cargo run content to be written -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/handling/test$ ``` diff --git a/subjects/hashing/README.md b/subjects/hashing/README.md index 7bcb3106..3cd729a2 100644 --- a/subjects/hashing/README.md +++ b/subjects/hashing/README.md @@ -47,9 +47,9 @@ fn main() { And its output; ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/hashing/test$ cargo run mean 3.857142857142857 median 4 mode 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/hashing/test$ ``` diff --git a/subjects/hello-there/README.md b/subjects/hello-there/README.md index 20d6e3cb..9b727210 100644 --- a/subjects/hello-there/README.md +++ b/subjects/hello-there/README.md @@ -107,7 +107,7 @@ executed. ### Instructions Once you have installed and configured the necessary tools, -create a `git` repository named `[[ROOT]]` with a `hello-there.js` +create a `git` repository named `hello-there` with a `hello-there.js` JS file that is a program that displays the exact text `Hello There !`, any `Number` and a `Boolean`. diff --git a/subjects/hello/README.md b/subjects/hello/README.md index 6fc55d07..2b44095e 100644 --- a/subjects/hello/README.md +++ b/subjects/hello/README.md @@ -7,8 +7,8 @@ Write a program that displays "Hello World!" followed by a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/hello/test$ go build +student@ubuntu:~/hello/test$ ./test Hello World! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/hello/test$ ``` diff --git a/subjects/hello_rust/README.md b/subjects/hello_rust/README.md index 5201edaa..fd6f1781 100644 --- a/subjects/hello_rust/README.md +++ b/subjects/hello_rust/README.md @@ -10,7 +10,7 @@ Make sure those rules are followed consistenly during the whole piscine. #### 1- get-ready -Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `[[ROOT]]`. +Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `hello_rust`. This repository will be the folder where all the exercices must be uploaded. @@ -18,7 +18,7 @@ Once created, clone that repository on your desktop. If your username was `choumi` this is the command that will need to be used : -`git clone git@git.[[DOMAIN]]:choumi/[[ROOT]].git` +`git clone git@git.[[DOMAIN]]:choumi/hello_rust.git` This command needs to be adapted with **your own username**. diff --git a/subjects/hiddenp/README.md b/subjects/hiddenp/README.md index f17821e4..b3dbc848 100644 --- a/subjects/hiddenp/README.md +++ b/subjects/hiddenp/README.md @@ -13,15 +13,15 @@ If the number of arguments is different from 2, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/hiddenp$ go build -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e +student@ubuntu:~/hiddenp$ go build +student@ubuntu:~/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e 1$ -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e +student@ubuntu:~/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e 1$ -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "abc" "btarc" | cat -e +student@ubuntu:~/hiddenp$ ./hiddenp "abc" "btarc" | cat -e 0$ -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "DD" "DABC" | cat -e +student@ubuntu:~/hiddenp$ ./hiddenp "DD" "DABC" | cat -e 0$ -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp -student@ubuntu:~/[[ROOT]]/hiddenp$ +student@ubuntu:~/hiddenp$ ./hiddenp +student@ubuntu:~/hiddenp$ ``` diff --git a/subjects/highest/README.md b/subjects/highest/README.md index 80fdd867..1b85b9e8 100644 --- a/subjects/highest/README.md +++ b/subjects/highest/README.md @@ -55,10 +55,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/highest/test$ cargo run [30, 500, 20, 70] Some(500) Some(70) [500, 70, 30] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/highest/test$ ``` diff --git a/subjects/how-2-js/README.md b/subjects/how-2-js/README.md index 7d3eab84..a30ae1af 100644 --- a/subjects/how-2-js/README.md +++ b/subjects/how-2-js/README.md @@ -40,6 +40,6 @@ and you should see your hello world. Great ! you are all set, if you want to re-execute your script, just refresh. -You now just have to create a repository named `[[ROOT]]`, +You now just have to create a repository named `how-2-js`, which will hold all your solutions for this piscine and just add your 2 generated files to it, we will start slow for now... 🐢 diff --git a/subjects/how_many_references/README.md b/subjects/how_many_references/README.md index 5c9ed6af..e0bec497 100644 --- a/subjects/how_many_references/README.md +++ b/subjects/how_many_references/README.md @@ -69,12 +69,12 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/how_many_references/test$ cargo run a: 4 b: 2 c: 2 a: 1 b: 2 c: 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/how_many_references/test$ ``` diff --git a/subjects/index/README.md b/subjects/index/README.md index d1a21760..ceb22bf6 100644 --- a/subjects/index/README.md +++ b/subjects/index/README.md @@ -34,10 +34,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/index/test$ go build +student@ubuntu:~/index/test$ ./test 2 1 -1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/index/test$ ``` diff --git a/subjects/insertion_sort/README.md b/subjects/insertion_sort/README.md index d94c2e09..db66ecb4 100644 --- a/subjects/insertion_sort/README.md +++ b/subjects/insertion_sort/README.md @@ -49,8 +49,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/insertion_sort/test$ cargo run [3, 5, 7, 2, 1, 6, 8, 4] [1, 2, 3, 4, 5, 6, 7, 8] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/insertion_sort/test$ ``` diff --git a/subjects/inter/README.md b/subjects/inter/README.md index e5a1ed02..5513637b 100644 --- a/subjects/inter/README.md +++ b/subjects/inter/README.md @@ -11,10 +11,10 @@ Write a program that takes two `string` and displays, without doubles, the chara ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" +student@ubuntu:~/inter/test$ go build +student@ubuntu:~/inter/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" padinto -student@ubuntu:~/[[ROOT]]/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd +student@ubuntu:~/inter/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd df6ewg4 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/inter/test$ ``` diff --git a/subjects/interestingnumber/README.md b/subjects/interestingnumber/README.md index d8b23215..84708ded 100644 --- a/subjects/interestingnumber/README.md +++ b/subjects/interestingnumber/README.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/interestingnumber/test$ go build +student@ubuntu:~/interestingnumber/test$ ./test 7 7 16 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/interestingnumber/test$ ``` diff --git a/subjects/introduction/README.md b/subjects/introduction/README.md index 2b8b2785..cd26eaff 100644 --- a/subjects/introduction/README.md +++ b/subjects/introduction/README.md @@ -4,7 +4,7 @@ #### 1- get-ready -Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `[[ROOT]]`. +Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `piscine-go`. This repository will be the folder where all the exercices must be uploaded. @@ -12,7 +12,7 @@ Once created, clone that repository on your desktop. If your username was `choumi` this is the command that will need to be used : -`git clone git@git.[[DOMAIN]]:choumi/[[ROOT]].git` +`git clone git@git.[[DOMAIN]]:choumi/piscine-go.git` This command needs to be adapted with **your own username**. @@ -47,9 +47,9 @@ Where `choumi` is your username If the username is `choumi` : ```console -user@host:~/[[ROOT]]$ ./hello.sh +user@host:~/piscine-go$ ./hello.sh Hello choumi! -user@host:~/[[ROOT]]$ +user@host:~/piscine-go$ ``` #### 3- go-say-hello diff --git a/subjects/inv_pyramid/README.md b/subjects/inv_pyramid/README.md index c5105286..e73d705e 100644 --- a/subjects/inv_pyramid/README.md +++ b/subjects/inv_pyramid/README.md @@ -58,7 +58,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/inv_pyramid/test$ cargo run " #" " a" " aa" @@ -87,5 +87,5 @@ student@ubuntu:~/[[ROOT]]/test$ cargo run " &&&" " &&" " &" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/inv_pyramid/test$ ``` diff --git a/subjects/isalpha/README.md b/subjects/isalpha/README.md index ca8f8e27..690c067f 100644 --- a/subjects/isalpha/README.md +++ b/subjects/isalpha/README.md @@ -36,11 +36,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isalpha/test$ go build +student@ubuntu:~/isalpha/test$ ./test false true false true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isalpha/test$ ``` diff --git a/subjects/islower/README.md b/subjects/islower/README.md index 30964010..f8db2125 100644 --- a/subjects/islower/README.md +++ b/subjects/islower/README.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/islower/test$ go build +student@ubuntu:~/islower/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/islower/test$ ``` diff --git a/subjects/isnegative/README.md b/subjects/isnegative/README.md index 661bd32c..4fd58bf8 100644 --- a/subjects/isnegative/README.md +++ b/subjects/isnegative/README.md @@ -31,10 +31,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isnegative/test$ go build +student@ubuntu:~/isnegative/test$ ./test F F T -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isnegative/test$ ``` diff --git a/subjects/isnumeric/README.md b/subjects/isnumeric/README.md index 083714cb..8dfe0dd8 100644 --- a/subjects/isnumeric/README.md +++ b/subjects/isnumeric/README.md @@ -33,9 +33,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isnumeric/test$ go build +student@ubuntu:~/isnumeric/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isnumeric/test$ ``` diff --git a/subjects/isprime/README.md b/subjects/isprime/README.md index a97c4265..2af2e493 100644 --- a/subjects/isprime/README.md +++ b/subjects/isprime/README.md @@ -37,9 +37,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isprime/test$ go build +student@ubuntu:~/isprime/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isprime/test$ ``` diff --git a/subjects/isprintable/README.md b/subjects/isprintable/README.md index a5626963..72a57b4e 100644 --- a/subjects/isprintable/README.md +++ b/subjects/isprintable/README.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isprintable/test$ go build +student@ubuntu:~/isprintable/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isprintable/test$ ``` diff --git a/subjects/issorted/README.md b/subjects/issorted/README.md index e1287233..68bee50b 100644 --- a/subjects/issorted/README.md +++ b/subjects/issorted/README.md @@ -43,9 +43,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/issorted/test$ go build +student@ubuntu:~/issorted/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/issorted/test$ ``` diff --git a/subjects/isupper/README.md b/subjects/isupper/README.md index 22d009a6..6072c511 100644 --- a/subjects/isupper/README.md +++ b/subjects/isupper/README.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isupper/test$ go build +student@ubuntu:~/isupper/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isupper/test$ ``` diff --git a/subjects/iterativefactorial/README.md b/subjects/iterativefactorial/README.md index 2d58f5c5..5de8e08d 100644 --- a/subjects/iterativefactorial/README.md +++ b/subjects/iterativefactorial/README.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/iterativefactorial/test$ go build +student@ubuntu:~/iterativefactorial/test$ ./test 24 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/iterativefactorial/test$ ``` diff --git a/subjects/iterativepower/README.md b/subjects/iterativepower/README.md index 02618065..c72edfef 100644 --- a/subjects/iterativepower/README.md +++ b/subjects/iterativepower/README.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/iterativepower/test$ go build +student@ubuntu:~/iterativepower/test$ ./test 64 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/iterativepower/test$ ``` diff --git a/subjects/iterators/README.md b/subjects/iterators/README.md index c8815824..b8bdbece 100644 --- a/subjects/iterators/README.md +++ b/subjects/iterators/README.md @@ -59,7 +59,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/iterators/test$ cargo run Some((6, 5, 120)) Some((8, 7, 720)) Some((10, 9, 5040)) @@ -67,5 +67,5 @@ Some((10, 9, 5040)) Some((18, 19, 6402373705728000)) Some((20, 21, 121645100408832000)) Some((22, 23, 2432902008176640000)) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/iterators/test$ ``` diff --git a/subjects/join/README.md b/subjects/join/README.md index e87f4d06..fd839ccc 100644 --- a/subjects/join/README.md +++ b/subjects/join/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/join/test$ go build +student@ubuntu:~/join/test$ ./test Hello!: How: are: you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/join/test$ ``` diff --git a/subjects/lalgebra_scalar/README.md b/subjects/lalgebra_scalar/README.md index 9f00bb9c..52939a2c 100644 --- a/subjects/lalgebra_scalar/README.md +++ b/subjects/lalgebra_scalar/README.md @@ -42,10 +42,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lalgebra_scalar/test$ cargo run 0.0 0 1.0 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lalgebra_scalar/test$ ``` diff --git a/subjects/lalgebra_vector/README.md b/subjects/lalgebra_vector/README.md index bf153eb0..13cdeea1 100644 --- a/subjects/lalgebra_vector/README.md +++ b/subjects/lalgebra_vector/README.md @@ -50,8 +50,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lalgebra_vector/test$ cargo run Some(3) Some(Vector([5, 1, -6])) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lalgebra_vector/test$ ``` diff --git a/subjects/lastrune/README.md b/subjects/lastrune/README.md index 74506658..59b4baa7 100644 --- a/subjects/lastrune/README.md +++ b/subjects/lastrune/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/lastrune/test$ go build +student@ubuntu:~/lastrune/test$ ./test !!! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lastrune/test$ ``` diff --git a/subjects/lastup/README.md b/subjects/lastup/README.md index 8c6eb910..f01fc951 100644 --- a/subjects/lastup/README.md +++ b/subjects/lastup/README.md @@ -28,9 +28,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lastup/test$ cargo run joE iS missinG jilL iS leavinG A hellO therE! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lastup/test$ ``` diff --git a/subjects/lastword/README.md b/subjects/lastword/README.md index 5525dec6..764150e5 100644 --- a/subjects/lastword/README.md +++ b/subjects/lastword/README.md @@ -13,14 +13,14 @@ Write a program that takes a `string` and displays its last word, followed by a ### Usage ```console -student@ubuntu:~/[[ROOT]]/lastword$ go build -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "FOR PONY" | cat -e +student@ubuntu:~/lastword$ go build +student@ubuntu:~/lastword$ ./lastword "FOR PONY" | cat -e PONY$ -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e +student@ubuntu:~/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e not$ -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword " " -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "a" "b" -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword " lorem,ipsum " | cat -e +student@ubuntu:~/lastword$ ./lastword " " +student@ubuntu:~/lastword$ ./lastword "a" "b" +student@ubuntu:~/lastword$ ./lastword " lorem,ipsum " | cat -e lorem,ipsum$ -student@ubuntu:~/[[ROOT]]/lastword$ +student@ubuntu:~/lastword$ ``` diff --git a/subjects/lcm/README.md b/subjects/lcm/README.md index c6b53064..e9091eba 100644 --- a/subjects/lcm/README.md +++ b/subjects/lcm/README.md @@ -30,9 +30,9 @@ func main() { ### Output ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/lcm/test$ go build +student@ubuntu:~/lcm/test$ ./test 14 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lcm/test$ ``` diff --git a/subjects/lifetimes/README.md b/subjects/lifetimes/README.md index c6e04114..2e366166 100644 --- a/subjects/lifetimes/README.md +++ b/subjects/lifetimes/README.md @@ -47,7 +47,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lifetimes/test$ cargo run Person = Person { name: "Leo", age: 0 } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lifetimes/test$ ``` diff --git a/subjects/listat/README.md b/subjects/listat/README.md index cbd6a281..d5898523 100644 --- a/subjects/listat/README.md +++ b/subjects/listat/README.md @@ -49,10 +49,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listat/test$ go build +student@ubuntu:~/listat/test$ ./test 1 how are -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listat/test$ ``` diff --git a/subjects/listclear/README.md b/subjects/listclear/README.md index e62b3e0d..491ea280 100644 --- a/subjects/listclear/README.md +++ b/subjects/listclear/README.md @@ -58,11 +58,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listclear/test$ go build +student@ubuntu:~/listclear/test$ ./test ------list------ I -> 1 -> something -> 2 -> ------updated list------ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listclear/test$ ``` diff --git a/subjects/listfind/README.md b/subjects/listfind/README.md index 6d398204..92ae58db 100644 --- a/subjects/listfind/README.md +++ b/subjects/listfind/README.md @@ -58,11 +58,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listfind/test$ go build +student@ubuntu:~/listfind/test$ ./test 0xc42000a0a0 hello2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listfind/test$ ``` ### Note diff --git a/subjects/listforeach/README.md b/subjects/listforeach/README.md index 7c6ef708..a7cdde8e 100644 --- a/subjects/listforeach/README.md +++ b/subjects/listforeach/README.md @@ -76,11 +76,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listforeach/test$ go build +student@ubuntu:~/listforeach/test$ ./test 12 22 32 52 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listforeach/test$ ``` diff --git a/subjects/listforeachif/README.md b/subjects/listforeachif/README.md index d2fe3f25..ecde00d8 100644 --- a/subjects/listforeachif/README.md +++ b/subjects/listforeachif/README.md @@ -117,8 +117,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listforeachif/test$ go build +student@ubuntu:~/listforeachif/test$ ./test 1->hello->3->there->23->!->54->nil --------function applied-------- 1 @@ -128,6 +128,6 @@ student@ubuntu:~/[[ROOT]]/test$ ./test --------function applied-------- 1->2->3->2->23->2->54->nil -student@ubuntu:~/[[ROOT]]/test$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listforeachif/test$ +student@ubuntu:~/listforeachif/test$ ``` diff --git a/subjects/listlast/README.md b/subjects/listlast/README.md index 3c72f13b..c7f11316 100644 --- a/subjects/listlast/README.md +++ b/subjects/listlast/README.md @@ -51,9 +51,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listlast/test$ go build +student@ubuntu:~/listlast/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listlast/test$ ``` diff --git a/subjects/listmerge/README.md b/subjects/listmerge/README.md index 69af3a38..e3c6fad5 100644 --- a/subjects/listmerge/README.md +++ b/subjects/listmerge/README.md @@ -73,13 +73,13 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listmerge/test$ go build +student@ubuntu:~/listmerge/test$ ./test -----first List------ a -> b -> c -> d -> -----second List------ e -> f -> g -> h -> -----Merged List----- a -> b -> c -> d -> e -> f -> g -> h -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listmerge/test$ ``` diff --git a/subjects/listpushback/README.md b/subjects/listpushback/README.md index 4902b101..c0442970 100644 --- a/subjects/listpushback/README.md +++ b/subjects/listpushback/README.md @@ -52,10 +52,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listpushback/test$ go build +student@ubuntu:~/listpushback/test$ ./test Hello man how are you -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listpushback/test$ ``` diff --git a/subjects/listpushfront/README.md b/subjects/listpushfront/README.md index 5ae98e00..52f591d1 100644 --- a/subjects/listpushfront/README.md +++ b/subjects/listpushfront/README.md @@ -55,8 +55,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listpushfront/test$ go build +student@ubuntu:~/listpushfront/test$ ./test how are you man Hello -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listpushfront/test$ ``` diff --git a/subjects/listpushpara/README.md b/subjects/listpushpara/README.md index 5ba32e48..5886cf11 100644 --- a/subjects/listpushpara/README.md +++ b/subjects/listpushpara/README.md @@ -9,12 +9,12 @@ Write a program that creates a new linked list and includes each command-line ar And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./listpushparams choumi is the best cat +student@ubuntu:~/listpushpara/test$ go build +student@ubuntu:~/listpushpara/test$ ./listpushparams choumi is the best cat cat best the is choumi -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listpushpara/test$ ``` diff --git a/subjects/listpushparams/README.md b/subjects/listpushparams/README.md index c7e50016..d46ae7a2 100644 --- a/subjects/listpushparams/README.md +++ b/subjects/listpushparams/README.md @@ -9,12 +9,12 @@ Write a program that creates a new linked list and includes each command-line ar And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./listpushparams choumi is the best cat +student@ubuntu:~/listpushparams/test$ go build +student@ubuntu:~/listpushparams/test$ ./listpushparams choumi is the best cat cat best the is choumi -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listpushparams/test$ ``` diff --git a/subjects/listremoveif/README.md b/subjects/listremoveif/README.md index 6336f898..20e5219d 100644 --- a/subjects/listremoveif/README.md +++ b/subjects/listremoveif/README.md @@ -80,8 +80,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listremoveif/test$ go build +student@ubuntu:~/listremoveif/test$ ./test ----normal state---- 1 -> ------answer----- @@ -91,5 +91,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 1 -> Hello -> 1 -> There -> 1 -> 1 -> How -> 1 -> are -> you -> 1 -> ------answer----- Hello -> There -> How -> are -> you -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listremoveif/test$ ``` diff --git a/subjects/listreverse/README.md b/subjects/listreverse/README.md index a64b5cc0..cf144e73 100644 --- a/subjects/listreverse/README.md +++ b/subjects/listreverse/README.md @@ -59,13 +59,13 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listreverse/test$ go build +student@ubuntu:~/listreverse/test$ ./test 4 3 2 1 Tail &{1 } Head &{4 0xc42000a140} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listreverse/test$ ``` diff --git a/subjects/listsize/README.md b/subjects/listsize/README.md index 42bef0a8..6c386a10 100644 --- a/subjects/listsize/README.md +++ b/subjects/listsize/README.md @@ -49,8 +49,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listsize/test$ go build +student@ubuntu:~/listsize/test$ ./test 4 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listsize/test$ ``` diff --git a/subjects/listsort/README.md b/subjects/listsort/README.md index 48ea4d19..9219ed7d 100644 --- a/subjects/listsort/README.md +++ b/subjects/listsort/README.md @@ -71,8 +71,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listsort/test$ go build +student@ubuntu:~/listsort/test$ ./test 1 -> 2 -> 3 -> 4 -> 5 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listsort/test$ ``` diff --git a/subjects/logic_number/README.md b/subjects/logic_number/README.md index f4cfda40..bae071ee 100644 --- a/subjects/logic_number/README.md +++ b/subjects/logic_number/README.md @@ -51,10 +51,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/logic_number/test$ cargo run this number returns true because the number 9 obey the rules of the sequence this number returns false because the number 10 does not obey the rules of the sequence this number returns true because the number 153 obey the rules of the sequence this number returns false because the number 154 does not obey the rules of the sequence -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/logic_number/test$ ``` diff --git a/subjects/lunch_queue/README.md b/subjects/lunch_queue/README.md index 751ab211..913b276b 100644 --- a/subjects/lunch_queue/README.md +++ b/subjects/lunch_queue/README.md @@ -73,7 +73,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lunch_queue/test$ cargo run Queue { node: Some(Person { name: "Alice", discount: 35, next_person: Some(Person { name: "Ana", discount: 5, next_person: Some(Person { name: "Monica", discount: 15, next_person: Some(Person { name: "Marie", discount: 20, next_person: None }) }) }) }) } Some(("Marie", 20)) Some(("Alice", 35)) @@ -81,5 +81,5 @@ None removed Some(("Marie", 20)) list Queue { node: Some(Person { name: "Alice", discount: 35, next_person: Some(Person { name: "Ana", discount: 5, next_person: Some(Person { name: "Monica", discount: 15, next_person: None }) }) }) } invert Queue { node: Some(Person { name: "Monica", discount: 15, next_person: Some(Person { name: "Ana", discount: 5, next_person: Some(Person { name: "Alice", discount: 35, next_person: None }) }) }) } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lunch_queue/test$ ``` diff --git a/subjects/makerange/README.md b/subjects/makerange/README.md index 4e3e4594..2e60bba5 100644 --- a/subjects/makerange/README.md +++ b/subjects/makerange/README.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/makerange/test$ go build +student@ubuntu:~/makerange/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/makerange/test$ ``` diff --git a/subjects/map/README.md b/subjects/map/README.md index 8ac288b6..6492ae11 100644 --- a/subjects/map/README.md +++ b/subjects/map/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/map/test$ go build +student@ubuntu:~/map/test$ ./test [false true true false true false] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/map/test$ ``` diff --git a/subjects/matrix/README.md b/subjects/matrix/README.md index 8fde579e..ee3cb091 100644 --- a/subjects/matrix/README.md +++ b/subjects/matrix/README.md @@ -51,9 +51,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix/test$ cargo run Matrix([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]) Matrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) Matrix([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix/test$ ``` diff --git a/subjects/matrix_display/README.md b/subjects/matrix_display/README.md index 2346274b..ed8fbe31 100644 --- a/subjects/matrix_display/README.md +++ b/subjects/matrix_display/README.md @@ -38,9 +38,9 @@ fn main() { And it's output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_display/test$ cargo run (1 2 3) (4 5 6) (7 8 9) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_display/test$ ``` diff --git a/subjects/matrix_mult/README.md b/subjects/matrix_mult/README.md index a566d4f0..f390fd6d 100644 --- a/subjects/matrix_mult/README.md +++ b/subjects/matrix_mult/README.md @@ -57,11 +57,11 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_mult/test$ cargo run [3, 8] [8, 0] Some(Matrix([[1, 0], [0, 0]])) 2 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_mult/test$ ``` diff --git a/subjects/matrix_ops/README.md b/subjects/matrix_ops/README.md index e4f9cd2f..4c0da724 100644 --- a/subjects/matrix_ops/README.md +++ b/subjects/matrix_ops/README.md @@ -52,10 +52,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_ops/test$ cargo run Some(Matrix([[9, 2], [10, 2]])) Some(Matrix([[-2, 2], [1, 4]])) None None -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_ops/test$ ``` diff --git a/subjects/matrix_transposition/README.md b/subjects/matrix_transposition/README.md index bb214c3d..5c384773 100644 --- a/subjects/matrix_transposition/README.md +++ b/subjects/matrix_transposition/README.md @@ -60,8 +60,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_transposition/test$ cargo run Original matrix Matrix((1, 3), (4, 5)) Transpose matrix Matrix((1, 4), (3, 5)) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_transposition/test$ ``` diff --git a/subjects/matrix_transposition_4by3/README.md b/subjects/matrix_transposition_4by3/README.md index eaaae39e..b72cd3ed 100644 --- a/subjects/matrix_transposition_4by3/README.md +++ b/subjects/matrix_transposition_4by3/README.md @@ -63,8 +63,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_transposition_4by3/test$ cargo run Original matrix Matrix4by3((1, 2, 3), (4, 5, 6), (7, 8, 9), (10, 11, 12)) Transpose matrix Matrix3by4((1, 4, 7, 10), (2, 5, 8, 11), (3, 6, 9, 12)) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_transposition_4by3/test$ ``` diff --git a/subjects/max/README.md b/subjects/max/README.md index 2261fa38..4f461026 100644 --- a/subjects/max/README.md +++ b/subjects/max/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/max/test$ go build +student@ubuntu:~/max/test$ ./test 123 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/max/test$ ``` diff --git a/subjects/merge/README.md b/subjects/merge/README.md index b2d0ba31..c9377241 100644 --- a/subjects/merge/README.md +++ b/subjects/merge/README.md @@ -68,8 +68,8 @@ func main() { ### Output ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/merge/test$ go build +student@ubuntu:~/merge/test$ ./test [20, 2, 3, 4, 5, 6, 6, 7, 3, 5] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/merge/test$ ``` diff --git a/subjects/name_initials/README.md b/subjects/name_initials/README.md index c4e1aee4..48213cd7 100644 --- a/subjects/name_initials/README.md +++ b/subjects/name_initials/README.md @@ -35,7 +35,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/name_initials/test$ cargo run ["H. P.", "S. E.", "J. L.", "B. O."] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/name_initials/test$ ``` diff --git a/subjects/nauuo/README.md b/subjects/nauuo/README.md index 577a2ace..95c85e38 100644 --- a/subjects/nauuo/README.md +++ b/subjects/nauuo/README.md @@ -41,11 +41,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/nauuo/test$ go build +student@ubuntu:~/nauuo/test$ ./test ? 0 + - -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/nauuo/test$ ``` diff --git a/subjects/now-get-to-work/README.md b/subjects/now-get-to-work/README.md index 6167f99d..ec116b94 100644 --- a/subjects/now-get-to-work/README.md +++ b/subjects/now-get-to-work/README.md @@ -11,9 +11,9 @@ Submit your solution in the file `my_answer.sh` that will print it when executed ### Utilisation ```console -student@ubuntu:~/[[ROOT]]/test$ ./my_answer.sh | cat -e +student@ubuntu:~/now-get-to-work/test$ ./my_answer.sh | cat -e John Doe$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/now-get-to-work/test$ ``` ### Hint diff --git a/subjects/nrune/README.md b/subjects/nrune/README.md index 1e0e8b78..e89ce7fe 100644 --- a/subjects/nrune/README.md +++ b/subjects/nrune/README.md @@ -40,8 +40,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/nrune/test$ go build +student@ubuntu:~/nrune/test$ ./test la! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/nrune/test$ ``` diff --git a/subjects/options/README.md b/subjects/options/README.md index 55927b79..a4ec433a 100644 --- a/subjects/options/README.md +++ b/subjects/options/README.md @@ -21,26 +21,26 @@ Write a program that takes an undefined number of arguments which could be consi ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/options/test$ go build +student@ubuntu:~/options/test$ ./test | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -abc -ijk | cat -e +student@ubuntu:~/options/test$ ./test -abc -ijk | cat -e 00000000 00000000 00000111 00000111$ -student@ubuntu:~/[[ROOT]]/test$ ./test -z | cat -e +student@ubuntu:~/options/test$ ./test -z | cat -e 00000010 00000000 00000000 00000000$ -student@ubuntu:~/[[ROOT]]/test$ ./test -abc -hijk | cat -e +student@ubuntu:~/options/test$ ./test -abc -hijk | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -h | cat -e +student@ubuntu:~/options/test$ ./test -h | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -zh | cat -e +student@ubuntu:~/options/test$ ./test -zh | cat -e 00000010 00000000 00000000 10000000$ -student@ubuntu:~/[[ROOT]]/test$ ./test -z -h | cat -e +student@ubuntu:~/options/test$ ./test -z -h | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -hhhhhh | cat -e +student@ubuntu:~/options/test$ ./test -hhhhhh | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -eeeeee | cat -e +student@ubuntu:~/options/test$ ./test -eeeeee | cat -e 00000000 00000000 00000000 00010000$ -student@ubuntu:~/[[ROOT]]/test$ ./test -% | cat -e +student@ubuntu:~/options/test$ ./test -% | cat -e Invalid Option$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/options/test$ ``` diff --git a/subjects/ordinal/README.md b/subjects/ordinal/README.md index 4e6e1bcd..97631f16 100644 --- a/subjects/ordinal/README.md +++ b/subjects/ordinal/README.md @@ -30,10 +30,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/ordinal/test$ cargo run 1st 22nd 43rd 47th -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ordinal/test$ ``` diff --git a/subjects/ownership/README.md b/subjects/ownership/README.md index ec14faf9..94afff78 100644 --- a/subjects/ownership/README.md +++ b/subjects/ownership/README.md @@ -40,10 +40,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/ownership/test$ cargo run first_subword(helloWorld) = hello first_subword(snake_case) = snake first_subword(CamelCase) = Camel first_subword(just) = just -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ownership/test$ ``` diff --git a/subjects/pangram/README.md b/subjects/pangram/README.md index f59687d0..c94cf52c 100644 --- a/subjects/pangram/README.md +++ b/subjects/pangram/README.md @@ -41,8 +41,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/pangram/test$ cargo run true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/pangram/test$ ``` diff --git a/subjects/panic/README.md b/subjects/panic/README.md index 2f996c92..a3625b0a 100644 --- a/subjects/panic/README.md +++ b/subjects/panic/README.md @@ -36,7 +36,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run -File { fd: 3, path: "[[ROOT]]/a.txt", read: true, write: false } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/panic/test$ cargo run +File { fd: 3, path: "panic/a.txt", read: true, write: false } +student@ubuntu:~/panic/test$ ``` diff --git a/subjects/paramcount/README.md b/subjects/paramcount/README.md index 723347e6..cb42dbbe 100644 --- a/subjects/paramcount/README.md +++ b/subjects/paramcount/README.md @@ -9,12 +9,12 @@ If there is no argument, the program displays `0` followed by a newline. ### Usage ```console -student@ubuntu:~/[[ROOT]]/paramcount$ go build -student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount 1 2 3 5 7 24 +student@ubuntu:~/paramcount$ go build +student@ubuntu:~/paramcount$ ./paramcount 1 2 3 5 7 24 6 -student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount 6 12 24 | cat -e +student@ubuntu:~/paramcount$ ./paramcount 6 12 24 | cat -e 3$ -student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount | cat -e +student@ubuntu:~/paramcount$ ./paramcount | cat -e 0$ -student@ubuntu:~/[[ROOT]]/paramcount$ +student@ubuntu:~/paramcount$ ``` diff --git a/subjects/pig_latin/README.md b/subjects/pig_latin/README.md index 9b032b50..305ebc2f 100644 --- a/subjects/pig_latin/README.md +++ b/subjects/pig_latin/README.md @@ -42,12 +42,12 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/pig_latin/test$ cargo run iglooay appleay ellohay aresquay enonxay airchay -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/pig_latin/test$ ``` diff --git a/subjects/point/README.md b/subjects/point/README.md index 35cc4a56..06aedd89 100644 --- a/subjects/point/README.md +++ b/subjects/point/README.md @@ -30,8 +30,8 @@ func main() { ### Usage ```console -student@ubuntu:~/[[ROOT]]/point$ go build -student@ubuntu:~/[[ROOT]]/point$ ./point +student@ubuntu:~/point$ go build +student@ubuntu:~/point$ ./point x = 42, y = 21 -student@ubuntu:~/[[ROOT]]/point$ +student@ubuntu:~/point$ ``` diff --git a/subjects/pointone/README.md b/subjects/pointone/README.md index d7aab1e8..9d405a6b 100644 --- a/subjects/pointone/README.md +++ b/subjects/pointone/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/pointone/test$ go build +student@ubuntu:~/pointone/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/pointone/test$ ``` diff --git a/subjects/printalphabet/README.md b/subjects/printalphabet/README.md index b682a208..705edd8f 100644 --- a/subjects/printalphabet/README.md +++ b/subjects/printalphabet/README.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalphabet$ go build -student@ubuntu:~/[[ROOT]]/printalphabet$ ./printalphabet +student@ubuntu:~/printalphabet$ go build +student@ubuntu:~/printalphabet$ ./printalphabet abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/[[ROOT]]/printalphabet$ +student@ubuntu:~/printalphabet$ ``` diff --git a/subjects/printalphabetalt/README.md b/subjects/printalphabetalt/README.md index 2f18a828..39c6e682 100644 --- a/subjects/printalphabetalt/README.md +++ b/subjects/printalphabetalt/README.md @@ -12,9 +12,9 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalphabetalt$ go build -student@ubuntu:~/[[ROOT]]/printalphabetalt$ ./printalphabetalt +student@ubuntu:~/printalphabetalt$ go build +student@ubuntu:~/printalphabetalt$ ./printalphabetalt aBcDeFgHiJkLmNoPqRsTuVwXyZ zYxWvUtSrQpOnMlKjIhGfEdCbA -student@ubuntu:~/[[ROOT]]/printalphabetalt$ +student@ubuntu:~/printalphabetalt$ ``` diff --git a/subjects/printalphabetalt2/README.md b/subjects/printalphabetalt2/README.md index 8f9d238d..664b1aa1 100644 --- a/subjects/printalphabetalt2/README.md +++ b/subjects/printalphabetalt2/README.md @@ -12,9 +12,9 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalphabetalt2$ go build -student@ubuntu:~/[[ROOT]]/printalphabetalt2$ ./printalphabetalt2 +student@ubuntu:~/printalphabetalt2$ go build +student@ubuntu:~/printalphabetalt2$ ./printalphabetalt2 AbCdEfGhIjKlMnOpQrStUvWxYz ZyXwVuTsRqPoNmLkJiHgFeDcBa -student@ubuntu:~/[[ROOT]]/printalphabetalt2$ +student@ubuntu:~/printalphabetalt2$ ``` diff --git a/subjects/printalphabetg/README.md b/subjects/printalphabetg/README.md index 9b622d22..f13c8e09 100644 --- a/subjects/printalphabetg/README.md +++ b/subjects/printalphabetg/README.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalphabetg$ go build -student@ubuntu:~/[[ROOT]]/printalphabetg$ ./printalphabetg +student@ubuntu:~/printalphabetg$ go build +student@ubuntu:~/printalphabetg$ ./printalphabetg abcdefg -student@ubuntu:~/[[ROOT]]/printalphabetg$ +student@ubuntu:~/printalphabetg$ ``` diff --git a/subjects/printalt/README.md b/subjects/printalt/README.md index 80b4d3fe..1840aa50 100644 --- a/subjects/printalt/README.md +++ b/subjects/printalt/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalt$ go build -student@ubuntu:~/[[ROOT]]/printalt$ ./printalt +student@ubuntu:~/printalt$ go build +student@ubuntu:~/printalt$ ./printalt azbycxdwevfugthsirjqkplomn -student@ubuntu:~/[[ROOT]]/printalt$ +student@ubuntu:~/printalt$ ``` diff --git a/subjects/printalt2/README.md b/subjects/printalt2/README.md index bd031b93..aa1917f1 100644 --- a/subjects/printalt2/README.md +++ b/subjects/printalt2/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalt2$ go build -student@ubuntu:~/[[ROOT]]/printalt2$ ./printalt2 +student@ubuntu:~/printalt2$ go build +student@ubuntu:~/printalt2$ ./printalt2 zaybxcwdveuftgshriqjpkolnm -student@ubuntu:~/[[ROOT]]/printalt2$ +student@ubuntu:~/printalt2$ ``` diff --git a/subjects/printaltu/README.md b/subjects/printaltu/README.md index 208019a8..c17c8694 100644 --- a/subjects/printaltu/README.md +++ b/subjects/printaltu/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printaltu$ go build -student@ubuntu:~/[[ROOT]]/printaltu$ ./printaltu +student@ubuntu:~/printaltu$ go build +student@ubuntu:~/printaltu$ ./printaltu AZBYCXDWEVFUGTHSIRJQKPLOMN -student@ubuntu:~/[[ROOT]]/printaltu$ +student@ubuntu:~/printaltu$ ``` diff --git a/subjects/printaltu2/README.md b/subjects/printaltu2/README.md index de09b3d0..cfa07b6c 100644 --- a/subjects/printaltu2/README.md +++ b/subjects/printaltu2/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printaltu2$ go build -student@ubuntu:~/[[ROOT]]/printaltu2$ ./printaltu2 +student@ubuntu:~/printaltu2$ go build +student@ubuntu:~/printaltu2$ ./printaltu2 ZAYBXCWDVEUFTGSHRIQJPKOLNM -student@ubuntu:~/[[ROOT]]/printaltu2$ +student@ubuntu:~/printaltu2$ ``` diff --git a/subjects/printchessboard/README.md b/subjects/printchessboard/README.md index eebbe8ec..ac2b10d7 100644 --- a/subjects/printchessboard/README.md +++ b/subjects/printchessboard/README.md @@ -9,14 +9,14 @@ Write a program that takes two integers as arguments and displays the chess desk ### Usage ```console -student@ubuntu:~/[[ROOT]]/printchessboard$ go build -student@ubuntu:~/[[ROOT]]/printchessboard$ ./printchessboard 4 3 | cat -e +student@ubuntu:~/printchessboard$ go build +student@ubuntu:~/printchessboard$ ./printchessboard 4 3 | cat -e # # $ # #$ # # $ -student@ubuntu:~/[[ROOT]]/printchessboard$ ./printchessboard 7 | cat -e +student@ubuntu:~/printchessboard$ ./printchessboard 7 | cat -e Error$ -student@ubuntu:~/[[ROOT]]/printchessboard$ ./printchessboard 0 0 | cat -e +student@ubuntu:~/printchessboard$ ./printchessboard 0 0 | cat -e Error$ -student@ubuntu:~/[[ROOT]]/printchessboard$ +student@ubuntu:~/printchessboard$ ``` diff --git a/subjects/printcomb/README.md b/subjects/printcomb/README.md index 280ce5b5..969f9425 100644 --- a/subjects/printcomb/README.md +++ b/subjects/printcomb/README.md @@ -31,10 +31,10 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printcomb/test$ go build +student@ubuntu:~/printcomb/test$ ./test | cat -e 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printcomb/test$ ``` `000` or `999` are not valid combinations because the digits are not different. diff --git a/subjects/printcomb2/README.md b/subjects/printcomb2/README.md index becea725..464e7e9e 100644 --- a/subjects/printcomb2/README.md +++ b/subjects/printcomb2/README.md @@ -31,8 +31,8 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printcomb2/test$ go build +student@ubuntu:~/printcomb2/test$ ./test | cat -e 00 01, 00 02, 00 03, ..., 00 98, 00 99, 01 02, 01 03, ..., 97 98, 97 99, 98 99$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printcomb2/test$ ``` diff --git a/subjects/printcombn/README.md b/subjects/printcombn/README.md index c26caa0d..d0810794 100644 --- a/subjects/printcombn/README.md +++ b/subjects/printcombn/README.md @@ -39,10 +39,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/printcombn/test$ go build +student@ubuntu:~/printcombn/test$ ./test 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 012, 013, 014, 015, 016, 017, 018, ... 679, 689, 789 012345678, 012345679, ..., 123456789 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printcombn/test$ ``` diff --git a/subjects/printdigits/README.md b/subjects/printdigits/README.md index de44801c..fbf064f2 100644 --- a/subjects/printdigits/README.md +++ b/subjects/printdigits/README.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the end of line character (`'\n'`). ### Usage ```console -student@ubuntu:~/[[ROOT]]/printdigits$ go build -student@ubuntu:~/[[ROOT]]/printdigits$ ./printdigits +student@ubuntu:~/printdigits$ go build +student@ubuntu:~/printdigits$ ./printdigits 0123456789 -student@ubuntu:~/[[ROOT]]/printdigits$ +student@ubuntu:~/printdigits$ ``` diff --git a/subjects/printhex/README.md b/subjects/printhex/README.md index 4c33edac..22bd75a1 100644 --- a/subjects/printhex/README.md +++ b/subjects/printhex/README.md @@ -10,15 +10,15 @@ Write a program that takes a positive (or zero) number expressed in base 10, and ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test 10 +student@ubuntu:~/printhex/test$ go build +student@ubuntu:~/printhex/test$ ./test 10 a -student@ubuntu:~/[[ROOT]]/test$ ./test 255 +student@ubuntu:~/printhex/test$ ./test 255 ff -student@ubuntu:~/[[ROOT]]/test$ ./test 5156454 +student@ubuntu:~/printhex/test$ ./test 5156454 4eae66 -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ ./test "123 132 1" | cat -e +student@ubuntu:~/printhex/test$ ./test +student@ubuntu:~/printhex/test$ ./test "123 132 1" | cat -e ERROR$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printhex/test$ ``` diff --git a/subjects/printmemory/README.md b/subjects/printmemory/README.md index 3211609a..c097412f 100644 --- a/subjects/printmemory/README.md +++ b/subjects/printmemory/README.md @@ -31,11 +31,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printmemory/test$ go build +student@ubuntu:~/printmemory/test$ ./test | cat -e 6800 0000 6500 0000 6c00 0000 6c00 0000 $ 6f00 0000 1000 0000 1500 0000 2a00 0000 $ 0000 0000 0000 0000 $ hello..*..$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printmemory/test$ ``` diff --git a/subjects/printnbr/README.md b/subjects/printnbr/README.md index 09c2b918..f2ebd080 100644 --- a/subjects/printnbr/README.md +++ b/subjects/printnbr/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/printnbr/test$ go build +student@ubuntu:~/printnbr/test$ ./test -1230123 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printnbr/test$ ``` diff --git a/subjects/printnbrbase/README.md b/subjects/printnbrbase/README.md index 3daceb8e..333f6041 100644 --- a/subjects/printnbrbase/README.md +++ b/subjects/printnbrbase/README.md @@ -54,12 +54,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/printnbrbase/test$ go build +student@ubuntu:~/printnbrbase/test$ ./test 125 -1111101 7D -uoi NV -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printnbrbase/test$ ``` diff --git a/subjects/printnbrinorder/README.md b/subjects/printnbrinorder/README.md index fa77895d..0cf6d8c6 100644 --- a/subjects/printnbrinorder/README.md +++ b/subjects/printnbrinorder/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printnbrinorder/test$ go build +student@ubuntu:~/printnbrinorder/test$ ./test | cat -e 1230123$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printnbrinorder/test$ ``` diff --git a/subjects/printparams/README.md b/subjects/printparams/README.md index f1b8fe72..0f71cc7c 100644 --- a/subjects/printparams/README.md +++ b/subjects/printparams/README.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line. Example of output : ```console -student@ubuntu:~/[[ROOT]]/printparams$ go build -student@ubuntu:~/[[ROOT]]/printparams$ ./printparams choumi is the best cat +student@ubuntu:~/printparams$ go build +student@ubuntu:~/printparams$ ./printparams choumi is the best cat choumi is the best cat -student@ubuntu:~/[[ROOT]]/printparams$ +student@ubuntu:~/printparams$ ``` diff --git a/subjects/printprogramname/README.md b/subjects/printprogramname/README.md index 6892c337..05374cb7 100644 --- a/subjects/printprogramname/README.md +++ b/subjects/printprogramname/README.md @@ -7,14 +7,14 @@ Write a **program** that prints the name of the program. Example of output : ```console -student@ubuntu:~/[[ROOT]]/printprogramname$ go build main.go -student@ubuntu:~/[[ROOT]]/printprogramname$ ./main +student@ubuntu:~/printprogramname$ go build main.go +student@ubuntu:~/printprogramname$ ./main main -student@ubuntu:~/[[ROOT]]/printprogramname$ go build -student@ubuntu:~/[[ROOT]]/printprogramname$ ./printprogramname | cat -e +student@ubuntu:~/printprogramname$ go build +student@ubuntu:~/printprogramname$ ./printprogramname | cat -e printprogramname$ -student@ubuntu:~/[[ROOT]]/printprogramname$ go build -o Nessy -student@ubuntu:~/[[ROOT]]/printprogramname$ ./Nessy +student@ubuntu:~/printprogramname$ go build -o Nessy +student@ubuntu:~/printprogramname$ ./Nessy Nessy -student@ubuntu:~/[[ROOT]]/printprogramname$ +student@ubuntu:~/printprogramname$ ``` diff --git a/subjects/printrevcomb/README.md b/subjects/printrevcomb/README.md index a063c130..810065d1 100644 --- a/subjects/printrevcomb/README.md +++ b/subjects/printrevcomb/README.md @@ -11,10 +11,10 @@ These combinations are separated by a comma and a space. Here is an **incomplete** output : ```console -student@ubuntu:~/[[ROOT]]/printrevcomb$ go build -student@ubuntu:~/[[ROOT]]/printrevcomb$ ./printrevcomb | cat -e +student@ubuntu:~/printrevcomb$ go build +student@ubuntu:~/printrevcomb$ ./printrevcomb | cat -e 987, 986, 985, 984, 983, 982, 981, 980, 976, ..., 310, 210$ -student@ubuntu:~/[[ROOT]]/printrevcomb$ +student@ubuntu:~/printrevcomb$ ``` `999` or `000` are not valid combinations because the digits are not different. diff --git a/subjects/printreversealphabet/README.md b/subjects/printreversealphabet/README.md index 49590c6d..da5d6902 100644 --- a/subjects/printreversealphabet/README.md +++ b/subjects/printreversealphabet/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printreversealphabet$ go build -student@ubuntu:~/[[ROOT]]/printreversealphabet$ ./printreversealphabet +student@ubuntu:~/printreversealphabet$ go build +student@ubuntu:~/printreversealphabet$ ./printreversealphabet zyxwvutsrqponmlkjihgfedcba -student@ubuntu:~/[[ROOT]]/printreversealphabet$ +student@ubuntu:~/printreversealphabet$ ``` diff --git a/subjects/printreversealphabetalt/README.md b/subjects/printreversealphabetalt/README.md index 8e807191..1c8d6775 100644 --- a/subjects/printreversealphabetalt/README.md +++ b/subjects/printreversealphabetalt/README.md @@ -14,9 +14,9 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printreversealphabetalt$ go build -student@ubuntu:~/[[ROOT]]/printreversealphabetalt$ ./printreversealphabetalt +student@ubuntu:~/printreversealphabetalt$ go build +student@ubuntu:~/printreversealphabetalt$ ./printreversealphabetalt zYxWvUtSrQpOnMlKjIhGfEdCbA aBcDeFgHiJkLmNoPqRsTuVwXyZ -student@ubuntu:~/[[ROOT]]/printreversealphabetalt$ +student@ubuntu:~/printreversealphabetalt$ ``` diff --git a/subjects/printreversealphabetalt2/README.md b/subjects/printreversealphabetalt2/README.md index 3be0d510..28d9d64d 100644 --- a/subjects/printreversealphabetalt2/README.md +++ b/subjects/printreversealphabetalt2/README.md @@ -14,9 +14,9 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printreversealphabetalt2$ go build -student@ubuntu:~/[[ROOT]]/printreversealphabetalt2$ ./printreversealphabetalt2 +student@ubuntu:~/printreversealphabetalt2$ go build +student@ubuntu:~/printreversealphabetalt2$ ./printreversealphabetalt2 ZyXwVuTsRqPoNmLkJiHgFeDcBa AbCdEfGhIjKlMnOpQrStUvWxYz -student@ubuntu:~/[[ROOT]]/printreversealphabetalt2$ +student@ubuntu:~/printreversealphabetalt2$ ``` diff --git a/subjects/printreversealphabetg/README.md b/subjects/printreversealphabetg/README.md index aa72f98e..04705a58 100644 --- a/subjects/printreversealphabetg/README.md +++ b/subjects/printreversealphabetg/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printreversealphabetg$ go build -student@ubuntu:~/[[ROOT]]/printreversealphabetg$ ./printreversealphabetg +student@ubuntu:~/printreversealphabetg$ go build +student@ubuntu:~/printreversealphabetg$ ./printreversealphabetg gfedcba -student@ubuntu:~/[[ROOT]]/printreversealphabetg$ +student@ubuntu:~/printreversealphabetg$ ``` diff --git a/subjects/printrot/README.md b/subjects/printrot/README.md index 06ed77f7..3d9ace01 100644 --- a/subjects/printrot/README.md +++ b/subjects/printrot/README.md @@ -12,16 +12,16 @@ If the input is invalid the program prints a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "abc" +student@ubuntu:~/printrot/test$ go build +student@ubuntu:~/printrot/test$ ./test "abc" -student@ubuntu:~/[[ROOT]]/test$ ./test "a" +student@ubuntu:~/printrot/test$ ./test "a" abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/[[ROOT]]/test$ ./test "g" +student@ubuntu:~/printrot/test$ ./test "g" ghijklmnopqrstuvwxyzabcdef -student@ubuntu:~/[[ROOT]]/test$ ./test "a" "a" +student@ubuntu:~/printrot/test$ ./test "a" "a" -student@ubuntu:~/[[ROOT]]/test$ ./test "A" +student@ubuntu:~/printrot/test$ ./test "A" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printrot/test$ ``` diff --git a/subjects/printstr/README.md b/subjects/printstr/README.md index eae7f5c3..0a9a4319 100644 --- a/subjects/printstr/README.md +++ b/subjects/printstr/README.md @@ -29,8 +29,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printstr/test$ go build +student@ubuntu:~/printstr/test$ ./test | cat -e Hello World!% -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printstr/test$ ``` diff --git a/subjects/printwordstables/README.md b/subjects/printwordstables/README.md index 31183a9f..dafd372d 100644 --- a/subjects/printwordstables/README.md +++ b/subjects/printwordstables/README.md @@ -32,11 +32,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build main.go -student@ubuntu:~/[[ROOT]]/test$ ./main +student@ubuntu:~/printwordstables/test$ go build main.go +student@ubuntu:~/printwordstables/test$ ./main Hello how are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printwordstables/test$ ``` diff --git a/subjects/priorprime/README.md b/subjects/priorprime/README.md index 1ac315ad..a13ba29c 100644 --- a/subjects/priorprime/README.md +++ b/subjects/priorprime/README.md @@ -33,8 +33,8 @@ func main() { Its output: ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./priorprime +student@ubuntu:~/priorprime/test$ go build +student@ubuntu:~/priorprime/test$ ./priorprime 41 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/priorprime/test$ ``` diff --git a/subjects/profanity_filter/README.md b/subjects/profanity_filter/README.md index 0b6e6989..ba3d1e76 100644 --- a/subjects/profanity_filter/README.md +++ b/subjects/profanity_filter/README.md @@ -79,10 +79,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/profanity_filter/test$ cargo run (true, "hello there") (false, "ERROR: illegal") (false, "ERROR: illegal") (false, "ERROR: illegal") -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/profanity_filter/test$ ``` diff --git a/subjects/project_motion/README.md b/subjects/project_motion/README.md index 3e3b62dc..536c67ed 100644 --- a/subjects/project_motion/README.md +++ b/subjects/project_motion/README.md @@ -61,12 +61,12 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/project_motion/test$ cargo run Some(Object { distance: 50.0, velocity: 50.0, height: 145.1, time: 1.0 }) Some(Object { distance: 100.0, velocity: 50.0, height: 125.5, time: 2.0 }) Some(Object { distance: 150.0, velocity: 50.0, height: 81.4, time: 3.0 }) Some(Object { distance: 200.0, velocity: 50.0, height: 3.0, time: 4.0 }) None None -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/project_motion/test$ ``` diff --git a/subjects/quad/README.md b/subjects/quad/README.md index 3658e078..51bec432 100644 --- a/subjects/quad/README.md +++ b/subjects/quad/README.md @@ -37,12 +37,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test o---o | | o---o -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -60,10 +60,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test o---o -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -81,10 +81,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test o -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -102,14 +102,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test o | | | o -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` ---- @@ -151,12 +151,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test /***\ * * \***/ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -174,10 +174,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test /***\ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -195,10 +195,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test / -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -216,14 +216,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test / * * * \ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` ---- @@ -265,12 +265,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBA B B CBBBC -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -288,10 +288,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBA -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -309,10 +309,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -330,14 +330,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A B B B C -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` ---- @@ -379,12 +379,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBC B B ABBBC -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -402,10 +402,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBC -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -423,10 +423,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -444,14 +444,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A B B B A -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` ---- @@ -493,12 +493,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBC B B CBBBA -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -516,10 +516,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBC -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -537,10 +537,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -558,12 +558,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A B B B C -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` diff --git a/subjects/quadchecker/README.md b/subjects/quadchecker/README.md index 74a1577d..7b5327ce 100644 --- a/subjects/quadchecker/README.md +++ b/subjects/quadchecker/README.md @@ -17,7 +17,7 @@ Create a program `quadchecker` that takes a `string` as an argument and displays - If it's `quadA` ```console -student@ubuntu:~/[[ROOT]]/quadchecker$ ls -l +student@ubuntu:~/quadchecker$ ls -l -rw-r--r-- 1 student student nov 23 14:30 main.go -rwxr-xr-x 1 student student nov 23 19:18 quadchecker -rwxr-xr-x 1 student student nov 23 19:50 quadA @@ -25,38 +25,38 @@ student@ubuntu:~/[[ROOT]]/quadchecker$ ls -l -rwxr-xr-x 1 student student nov 23 19:50 quadC -rwxr-xr-x 1 student student nov 23 19:50 quadD -rwxr-xr-x 1 student student nov 23 19:50 quadE -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadA 3 3 | ./quadchecker +student@ubuntu:~/quadchecker$ ./quadA 3 3 | ./quadchecker [quadA] [3] [3] -student@ubuntu:~/[[ROOT]]/quadchecker$ -student@ubuntu:~/[[ROOT]]/quadchecker$ -student@ubuntu:~/[[ROOT]]/quadchecker$ -student@ubuntu:~/[[ROOT]]/quadchecker$ +student@ubuntu:~/quadchecker$ +student@ubuntu:~/quadchecker$ +student@ubuntu:~/quadchecker$ +student@ubuntu:~/quadchecker$ ``` - If it's `quadC 1 1` : ```console -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 1 +student@ubuntu:~/quadchecker$ ./quadC 1 1 A -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadD 1 1 +student@ubuntu:~/quadchecker$ ./quadD 1 1 A -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 1 +student@ubuntu:~/quadchecker$ ./quadE 1 1 A -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 1 | ./quadchecker +student@ubuntu:~/quadchecker$ ./quadC 1 1 | ./quadchecker [quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1] -student@ubuntu:~/[[ROOT]]/quadchecker$ +student@ubuntu:~/quadchecker$ ``` - If it's `quadC 1 2` : ```console -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 2 +student@ubuntu:~/quadchecker$ ./quadE 1 2 A C -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 2 +student@ubuntu:~/quadchecker$ ./quadC 1 2 A C -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 2 | ./quadchecker +student@ubuntu:~/quadchecker$ ./quadE 1 2 | ./quadchecker [quadC] [1] [2] || [quadE] [1] [2] -student@ubuntu:~/[[ROOT]]/quadchecker$ +student@ubuntu:~/quadchecker$ ``` diff --git a/subjects/queens/README.md b/subjects/queens/README.md index 83b67387..a8fbc947 100644 --- a/subjects/queens/README.md +++ b/subjects/queens/README.md @@ -85,8 +85,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/queens/test$ cargo run Is it possible for the queens to attack each other? => true Is it possible for the queens to attack each other? => false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/queens/test$ ``` diff --git a/subjects/question_mark/README.md b/subjects/question_mark/README.md index b5628810..7511bb96 100644 --- a/subjects/question_mark/README.md +++ b/subjects/question_mark/README.md @@ -70,7 +70,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/question_mark/test$ cargo run 1000 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/question_mark/test$ ``` diff --git a/subjects/reachablenumber/README.md b/subjects/reachablenumber/README.md index e6e30ce9..dffeeeb9 100644 --- a/subjects/reachablenumber/README.md +++ b/subjects/reachablenumber/README.md @@ -35,10 +35,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/reachablenumber/test$ go build +student@ubuntu:~/reachablenumber/test$ ./test 9 19 36 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reachablenumber/test$ ``` diff --git a/subjects/rectangle/README.md b/subjects/rectangle/README.md index d8269ad6..42efd061 100644 --- a/subjects/rectangle/README.md +++ b/subjects/rectangle/README.md @@ -45,8 +45,8 @@ func main() { ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/rectangle/test$ go build +student@ubuntu:~/rectangle/test$ ./test area of the rectangle: 6 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rectangle/test$ ``` diff --git a/subjects/recursivefactorial/README.md b/subjects/recursivefactorial/README.md index 84f21234..94d97a26 100644 --- a/subjects/recursivefactorial/README.md +++ b/subjects/recursivefactorial/README.md @@ -35,8 +35,8 @@ func main() { ``` ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/recursivefactorial/test$ go build +student@ubuntu:~/recursivefactorial/test$ ./test 24 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/recursivefactorial/test$ ``` diff --git a/subjects/recursivepower/README.md b/subjects/recursivepower/README.md index 65022253..51d4a0bb 100644 --- a/subjects/recursivepower/README.md +++ b/subjects/recursivepower/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/recursivepower/test$ go build +student@ubuntu:~/recursivepower/test$ ./test 64 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/recursivepower/test$ ``` diff --git a/subjects/reduceint/README.md b/subjects/reduceint/README.md index 1cea2f5c..2f2441c7 100644 --- a/subjects/reduceint/README.md +++ b/subjects/reduceint/README.md @@ -40,10 +40,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/reduceint/test$ go build +student@ubuntu:~/reduceint/test$ ./test 1000 502 250 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reduceint/test$ ``` diff --git a/subjects/ref_cell/README.md b/subjects/ref_cell/README.md index 1f88560e..dbcd45b7 100644 --- a/subjects/ref_cell/README.md +++ b/subjects/ref_cell/README.md @@ -98,7 +98,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/ref_cell/test$ cargo run ("Info", "you are using up too 40% of your quote") ("Warning", "you have used up over 90% of your quota! Proceeds with precaution") ("Error", "you are over your quota!") @@ -108,5 +108,5 @@ student@ubuntu:~/[[ROOT]]/test$ cargo run "Warning: you have used up over 90% of your quota! Proceeds with precaution", "Error: you are over your quota!" ] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ref_cell/test$ ``` diff --git a/subjects/repeatalpha/README.md b/subjects/repeatalpha/README.md index d72970fe..7a34ea9f 100644 --- a/subjects/repeatalpha/README.md +++ b/subjects/repeatalpha/README.md @@ -13,15 +13,15 @@ If the number of arguments is different from 1, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/repeatalpha$ go build -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha abc | cat -e +student@ubuntu:~/repeatalpha$ go build +student@ubuntu:~/repeatalpha$ ./repeatalpha abc | cat -e abbccc -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha Choumi. | cat -e +student@ubuntu:~/repeatalpha$ ./repeatalpha Choumi. | cat -e CCChhhhhhhhooooooooooooooouuuuuuuuuuuuuuuuuuuuummmmmmmmmmmmmiiiiiiiii.$ -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "abacadaba 01!" | cat -e +student@ubuntu:~/repeatalpha$ ./repeatalpha "abacadaba 01!" | cat -e abbacccaddddabba 01!$ -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "" | cat -e +student@ubuntu:~/repeatalpha$ ./repeatalpha +student@ubuntu:~/repeatalpha$ ./repeatalpha "" | cat -e $ -student@ubuntu:~/[[ROOT]]/repeatalpha$ +student@ubuntu:~/repeatalpha$ ``` diff --git a/subjects/reverse/README.md b/subjects/reverse/README.md index e3b8d52a..c71c8f48 100644 --- a/subjects/reverse/README.md +++ b/subjects/reverse/README.md @@ -54,8 +54,8 @@ func main() { Its output: ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./main +student@ubuntu:~/reverse/test$ go build +student@ubuntu:~/reverse/test$ ./main 5 -> 4 -> 2 -> 3 -> 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reverse/test$ ``` diff --git a/subjects/reverse_it/README.md b/subjects/reverse_it/README.md index 3930d09d..9644382f 100644 --- a/subjects/reverse_it/README.md +++ b/subjects/reverse_it/README.md @@ -26,8 +26,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/reverse_it/test$ cargo run 321123 -321123 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reverse_it/test$ ``` diff --git a/subjects/reverse_string/README.md b/subjects/reverse_string/README.md index 25b8aed4..4bc9e583 100644 --- a/subjects/reverse_string/README.md +++ b/subjects/reverse_string/README.md @@ -37,11 +37,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/reverse_string/test$ cargo run !dlrow ,olleH namoR si eman ym ,olleH !rac ecin a evah I uoY era dlo woH augá elpmaxe na si siht :xe -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reverse_string/test$ ``` diff --git a/subjects/reversestrcap/README.md b/subjects/reversestrcap/README.md index c636c726..fd67e3c0 100644 --- a/subjects/reversestrcap/README.md +++ b/subjects/reversestrcap/README.md @@ -9,13 +9,13 @@ If there are no argument, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/reversestrcap$ go build -student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e +student@ubuntu:~/reversestrcap$ go build +student@ubuntu:~/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e firsT smalL tesT$ -student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e +student@ubuntu:~/reversestrcap$ ./reversestrcap "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e seconD tesT iS A littlE easieR$ bewarE it'S noT harD wheN $ gO A dernieR 0123456789 foR thE roaD E$ -student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap -student@ubuntu:~/[[ROOT]]/reversestrcap$ +student@ubuntu:~/reversestrcap$ ./reversestrcap +student@ubuntu:~/reversestrcap$ ``` diff --git a/subjects/revivethreenums/README.md b/subjects/revivethreenums/README.md index b0fb7afc..c82597a2 100644 --- a/subjects/revivethreenums/README.md +++ b/subjects/revivethreenums/README.md @@ -36,10 +36,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/revivethreenums/test$ go build +student@ubuntu:~/revivethreenums/test$ ./test 3 20 100 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/revivethreenums/test$ ``` diff --git a/subjects/revparams/README.md b/subjects/revparams/README.md index f1a94393..4e8cb6e0 100644 --- a/subjects/revparams/README.md +++ b/subjects/revparams/README.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line in a Example of output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./revparams choumi is the best cat +student@ubuntu:~/revparams/test$ go build +student@ubuntu:~/revparams/test$ ./revparams choumi is the best cat cat best the is choumi -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/revparams/test$ ``` diff --git a/subjects/revwstr/README.md b/subjects/revwstr/README.md index 4123f40f..89c95514 100644 --- a/subjects/revwstr/README.md +++ b/subjects/revwstr/README.md @@ -13,14 +13,14 @@ Write a program that takes a `string` as a parameter, and prints its words in re ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "the time of contempt precedes that of indifference" +student@ubuntu:~/revwstr/test$ go build +student@ubuntu:~/revwstr/test$ ./test "the time of contempt precedes that of indifference" indifference of that precedes contempt of time the -student@ubuntu:~/[[ROOT]]/test$ ./test "abcdefghijklm" +student@ubuntu:~/revwstr/test$ ./test "abcdefghijklm" abcdefghijklm -student@ubuntu:~/[[ROOT]]/test$ ./test "he stared at the mountain" +student@ubuntu:~/revwstr/test$ ./test "he stared at the mountain" mountain the at stared he -student@ubuntu:~/[[ROOT]]/test$ ./test "" | cat-e +student@ubuntu:~/revwstr/test$ ./test "" | cat-e $ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/revwstr/test$ ``` diff --git a/subjects/rgb_match/README.md b/subjects/rgb_match/README.md index 621a429d..69a4e64d 100644 --- a/subjects/rgb_match/README.md +++ b/subjects/rgb_match/README.md @@ -62,7 +62,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/rgb_match/test$ cargo run Color { r: 10, g: 200, b: 255, a: 30 } Color { r: 200, g: 255, b: 10, a: 30 } Color { r: 30, g: 200, b: 10, a: 255 } @@ -79,5 +79,5 @@ Color { r: 30, g: 200, b: 10, a: 255 } Color { r: 255, g: 200, b: 30, a: 10 } Color { r: 255, g: 30, b: 10, a: 200 } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rgb_match/test$ ``` diff --git a/subjects/robottoorigin/README.md b/subjects/robottoorigin/README.md index 2b710f8d..9113f3a9 100644 --- a/subjects/robottoorigin/README.md +++ b/subjects/robottoorigin/README.md @@ -18,10 +18,10 @@ If the number of arguments is not 1, output nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./main "UD" +student@ubuntu:~/robottoorigin/test$ go build +student@ubuntu:~/robottoorigin/test$ ./main "UD" true -student@ubuntu:~/[[ROOT]]/test$ ./main "LL" +student@ubuntu:~/robottoorigin/test$ ./main "LL" false ``` diff --git a/subjects/roman_numbers/README.md b/subjects/roman_numbers/README.md index 1ee26ecf..e0d09c94 100644 --- a/subjects/roman_numbers/README.md +++ b/subjects/roman_numbers/README.md @@ -53,10 +53,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/roman_numbers/test$ cargo run RomanNumber([X, X, X, I, I]) RomanNumber([I, X]) RomanNumber([X, L, V]) RomanNumber([Nulla]) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/roman_numbers/test$ ``` diff --git a/subjects/roman_numbers_iter/README.md b/subjects/roman_numbers_iter/README.md index f02de632..fe0e030b 100644 --- a/subjects/roman_numbers_iter/README.md +++ b/subjects/roman_numbers_iter/README.md @@ -68,10 +68,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/roman_numbers_iter/test$ cargo run RomanNumber([X, X, X, I, I]) RomanNumber([I, X]) RomanNumber([X, L, V]) RomanNumber([Nulla]) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/roman_numbers_iter/test$ ``` diff --git a/subjects/romannumbers/README.md b/subjects/romannumbers/README.md index 6560d760..68499a8d 100644 --- a/subjects/romannumbers/README.md +++ b/subjects/romannumbers/README.md @@ -36,19 +36,19 @@ The following table gives the Roman numerals for the first few positive integers ## Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./rn hello +student@ubuntu:~/romannumbers/test$ go build +student@ubuntu:~/romannumbers/test$ ./rn hello ERROR: can not convert to roman digit -student@ubuntu:~/[[ROOT]]/test$ ./rn 123 +student@ubuntu:~/romannumbers/test$ ./rn 123 C+X+X+I+I+I CXXIII -student@ubuntu:~/[[ROOT]]/test$ ./rn 999 +student@ubuntu:~/romannumbers/test$ ./rn 999 (M-C)+(C-X)+(X-I) CMXCIX -student@ubuntu:~/[[ROOT]]/test$ ./rn 3999 +student@ubuntu:~/romannumbers/test$ ./rn 3999 M+M+M+(M-C)+(C-X)+(X-I) MMMCMXCIX -student@ubuntu:~/[[ROOT]]/test$ ./rn 4000 +student@ubuntu:~/romannumbers/test$ ./rn 4000 ERROR: can not convert to roman digit -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/romannumbers/test$ ``` diff --git a/subjects/rostring/README.md b/subjects/rostring/README.md index fcbf250c..43d8ee8c 100644 --- a/subjects/rostring/README.md +++ b/subjects/rostring/README.md @@ -16,14 +16,14 @@ If the number of arguments is different from 1, the program displays a newline. ### Usage ```console -student@ubuntu:~/[[ROOT]]/rostring$ go build -student@ubuntu:~/[[ROOT]]/rostring$ ./rostring "abc " | cat -e +student@ubuntu:~/rostring$ go build +student@ubuntu:~/rostring$ ./rostring "abc " | cat -e abc$ -student@ubuntu:~/[[ROOT]]/rostring$ ./rostring "Let there be light" +student@ubuntu:~/rostring$ ./rostring "Let there be light" there be light Let -student@ubuntu:~/[[ROOT]]/rostring$ ./rostring " AkjhZ zLKIJz , 23y" +student@ubuntu:~/rostring$ ./rostring " AkjhZ zLKIJz , 23y" zLKIJz , 23y AkjhZ -student@ubuntu:~/[[ROOT]]/rostring$ ./rostring | cat -e +student@ubuntu:~/rostring$ ./rostring | cat -e $ -student@ubuntu:~/[[ROOT]]/rostring$ +student@ubuntu:~/rostring$ ``` diff --git a/subjects/rot/README.md b/subjects/rot/README.md index 17b718c8..05e5396f 100644 --- a/subjects/rot/README.md +++ b/subjects/rot/README.md @@ -63,7 +63,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/rot/test$ cargo run The letter "a" becomes: a The letter "m" becomes: m The letter "m" becomes: z @@ -74,5 +74,5 @@ The decoded message is: Ryg aesmuvi nkpd tewzsxq jolbkc foh Your cypher wil be: Xiwxmrk amxl ryqfivw 1 2 3 Your cypher wil be: Fqefuzs The letter "a" becomes: z -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rot/test$ ``` diff --git a/subjects/rot13/README.md b/subjects/rot13/README.md index 20ba3f7a..ec381367 100644 --- a/subjects/rot13/README.md +++ b/subjects/rot13/README.md @@ -14,13 +14,13 @@ letters by the letter 13 spaces ahead in alphabetical order. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "abc" +student@ubuntu:~/rot13/test$ go build +student@ubuntu:~/rot13/test$ ./test "abc" nop -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" +student@ubuntu:~/rot13/test$ ./test "hello there" uryyb gurer -student@ubuntu:~/[[ROOT]]/test$ ./test "HELLO, HELP" +student@ubuntu:~/rot13/test$ ./test "HELLO, HELP" URYYB, URYC -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rot13/test$ ./test +student@ubuntu:~/rot13/test$ ``` diff --git a/subjects/rot14/README.md b/subjects/rot14/README.md index 4c6e8e52..ebac8a41 100644 --- a/subjects/rot14/README.md +++ b/subjects/rot14/README.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/rot14/test$ go build +student@ubuntu:~/rot14/test$ ./test Vszzc Vck ofs Mci -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rot14/test$ ``` diff --git a/subjects/rot21/README.md b/subjects/rot21/README.md index 06b91465..534fc070 100644 --- a/subjects/rot21/README.md +++ b/subjects/rot21/README.md @@ -37,11 +37,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/rot21/test$ cargo run The letter "a" becomes: v The letter "m" becomes: h The word "MISS" becomes: HDNN Your cypher wil be: Oznodib iphwzmn 1 2 3 Your cypher wil be: mjo21 rjmfn! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rot21/test$ ``` diff --git a/subjects/rotatevowels/README.md b/subjects/rotatevowels/README.md index 7ab9f283..cbff9785 100644 --- a/subjects/rotatevowels/README.md +++ b/subjects/rotatevowels/README.md @@ -11,18 +11,18 @@ Write a **program** that checks the arguments for vowels. Example of output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "Hello World" | cat -e +student@ubuntu:~/rotatevowels/test$ go build +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "Hello World" | cat -e Hollo Werld$ -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "HEllO World" "problem solved" +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "HEllO World" "problem solved" Hello Werld problom sOlvEd -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "str" "shh" "psst" +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "str" "shh" "psst" str shh psst -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "happy thoughts" "good luck" +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "happy thoughts" "good luck" huppy thooghts guod lack -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "aEi" "Ou" +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "aEi" "Ou" uOi Ea -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels +student@ubuntu:~/rotatevowels/test$ ./rotatevowels -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rotatevowels/test$ ``` diff --git a/subjects/rpncalc/README.md b/subjects/rpncalc/README.md index 578a315b..8f56d44c 100644 --- a/subjects/rpncalc/README.md +++ b/subjects/rpncalc/README.md @@ -47,16 +47,16 @@ Or: ### Usage ```console -student@ubuntu:~/[[ROOT]]/rpncalc$ go build -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e +student@ubuntu:~/rpncalc$ go build +student@ubuntu:~/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e 10$ -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc "1 2 3 4 +" | cat -e +student@ubuntu:~/rpncalc$ ./rpncalc "1 2 3 4 +" | cat -e Error$ -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc | cat -e +student@ubuntu:~/rpncalc$ ./rpncalc | cat -e Error$ -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e +student@ubuntu:~/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e 1 -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e +student@ubuntu:~/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e Error$ -student@ubuntu:~/[[ROOT]]/rpncalc$ +student@ubuntu:~/rpncalc$ ``` diff --git a/subjects/sales/README.md b/subjects/sales/README.md index 355647d2..d10c72b3 100644 --- a/subjects/sales/README.md +++ b/subjects/sales/README.md @@ -95,9 +95,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/sales/test$ cargo run Store { products: [("product A", 1.23), ("product B", 23.1), ("product C", 3.12)] } [1.17, 2.98, 22.07] Cart { items: [("product A", 1.23), ("product B", 23.1), ("product C", 3.12)], receipt: [1.17, 2.98, 22.07] } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sales/test$ ``` diff --git a/subjects/sametree/README.md b/subjects/sametree/README.md index da2621c0..e73d5123 100644 --- a/subjects/sametree/README.md +++ b/subjects/sametree/README.md @@ -94,8 +94,8 @@ func main() { ### Output ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sametree/test$ go build +student@ubuntu:~/sametree/test$ ./test true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sametree/test$ ``` diff --git a/subjects/scores/README.md b/subjects/scores/README.md index 6c5a64be..3689e752 100644 --- a/subjects/scores/README.md +++ b/subjects/scores/README.md @@ -49,9 +49,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/scores/test$ cargo run 1 0 14 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/scores/test$ ``` diff --git a/subjects/scytale_cipher/README.md b/subjects/scytale_cipher/README.md index c82ca4dc..fc8c7624 100644 --- a/subjects/scytale_cipher/README.md +++ b/subjects/scytale_cipher/README.md @@ -61,8 +61,8 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/scytale_cipher/test$ cargo run "scytale Code" size=6 -> "sec yCtoadle" "scytale Code" size=8 -> "sCcoydtea l e" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/scytale_cipher/test$ ``` diff --git a/subjects/searching/README.md b/subjects/searching/README.md index ea3ca241..38b43691 100644 --- a/subjects/searching/README.md +++ b/subjects/searching/README.md @@ -39,7 +39,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/searching/test$ cargo run the element 6 is in the position Some(3) in the array [1, 3, 4, 6, 8, 9, 11] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/searching/test$ ``` diff --git a/subjects/searchreplace/README.md b/subjects/searchreplace/README.md index 24ba9287..1b4cd851 100644 --- a/subjects/searchreplace/README.md +++ b/subjects/searchreplace/README.md @@ -11,11 +11,11 @@ Write a program that takes 3 arguments, the first argument is a `string` in whic ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "hella there" "a" "o" +student@ubuntu:~/searchreplace/test$ go build +student@ubuntu:~/searchreplace/test$ ./test "hella there" "a" "o" hello there -student@ubuntu:~/[[ROOT]]/test$ ./test "abcd" "z" "l" +student@ubuntu:~/searchreplace/test$ ./test "abcd" "z" "l" abcd -student@ubuntu:~/[[ROOT]]/test$ ./test "something" "a" "o" "b" "c" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/searchreplace/test$ ./test "something" "a" "o" "b" "c" +student@ubuntu:~/searchreplace/test$ ``` diff --git a/subjects/simple_hash/README.md b/subjects/simple_hash/README.md index a6d5d416..d9333888 100644 --- a/subjects/simple_hash/README.md +++ b/subjects/simple_hash/README.md @@ -60,11 +60,11 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/simple_hash/test$ cargo run Does the HashMap contains the name Roman? => false Does the HashMap contains the name Katie? => true Removing Robert () Does the HashMap contains the name Robert? => false Hash {"Katie": 334, "Daniel": 122, "Ashley": 333} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/simple_hash/test$ ``` diff --git a/subjects/slices_to_map/README.md b/subjects/slices_to_map/README.md index 629a182c..cd3164c8 100644 --- a/subjects/slices_to_map/README.md +++ b/subjects/slices_to_map/README.md @@ -29,7 +29,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/slices_to_map/test$ cargo run {"James": 2, "Liam": 3, "Emma": 23, "Noah": 5, "Olivia": 1} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/slices_to_map/test$ ``` diff --git a/subjects/sortedlistmerge/README.md b/subjects/sortedlistmerge/README.md index bc0428fa..612537bd 100644 --- a/subjects/sortedlistmerge/README.md +++ b/subjects/sortedlistmerge/README.md @@ -68,8 +68,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sortedlistmerge/test$ go build +student@ubuntu:~/sortedlistmerge/test$ ./test -2 -> 3 -> 5 -> 7 -> 9 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sortedlistmerge/test$ ``` diff --git a/subjects/sortintegertable/README.md b/subjects/sortintegertable/README.md index 2c664980..df3c9c97 100644 --- a/subjects/sortintegertable/README.md +++ b/subjects/sortintegertable/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sortintegertable/test$ go build +student@ubuntu:~/sortintegertable/test$ ./test [0 1 2 3 4 5] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sortintegertable/test$ ``` diff --git a/subjects/sortlistinsert/README.md b/subjects/sortlistinsert/README.md index 027eb9b7..913eaf1f 100644 --- a/subjects/sortlistinsert/README.md +++ b/subjects/sortlistinsert/README.md @@ -69,9 +69,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sortlistinsert/test$ go build +student@ubuntu:~/sortlistinsert/test$ ./test 1 -> 4 -> 9 -> -2 -> 1 -> 2 -> 4 -> 9 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sortlistinsert/test$ ``` diff --git a/subjects/sortparams/README.md b/subjects/sortparams/README.md index 2576801b..76902184 100644 --- a/subjects/sortparams/README.md +++ b/subjects/sortparams/README.md @@ -7,8 +7,8 @@ Write a **program** that prints the arguments received in the command line in AS Example of output : ```console -student@ubuntu:~/[[ROOT]]/sortparams$ go build -student@ubuntu:~/[[ROOT]]/sortparams$ ./sortparams 1 a 2 A 3 b 4 C +student@ubuntu:~/sortparams$ go build +student@ubuntu:~/sortparams$ ./sortparams 1 a 2 A 3 b 4 C 1 2 3 @@ -17,5 +17,5 @@ A C a b -student@ubuntu:~/[[ROOT]]/sortparams$ +student@ubuntu:~/sortparams$ ``` diff --git a/subjects/sortwordarr/README.md b/subjects/sortwordarr/README.md index 8fe3b3f1..4557b396 100644 --- a/subjects/sortwordarr/README.md +++ b/subjects/sortwordarr/README.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sortwordarr/test$ go build +student@ubuntu:~/sortwordarr/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sortwordarr/test$ ``` diff --git a/subjects/speed_transformation/README.md b/subjects/speed_transformation/README.md index 16be31cf..3c65749f 100644 --- a/subjects/speed_transformation/README.md +++ b/subjects/speed_transformation/README.md @@ -26,7 +26,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/speed_transformation/test$ cargo run 100 km/h is equivalent to 27.77777777777778 m/s -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/speed_transformation/test$ ``` diff --git a/subjects/spelling/README.md b/subjects/spelling/README.md index 20e9fb47..08aa2881 100644 --- a/subjects/spelling/README.md +++ b/subjects/spelling/README.md @@ -46,8 +46,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/spelling/test$ cargo run three hundred forty-eight nine thousand nine hundred ninety-six -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/spelling/test$ ``` diff --git a/subjects/split/README.md b/subjects/split/README.md index 05ca3853..55c1dec1 100644 --- a/subjects/split/README.md +++ b/subjects/split/README.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/split/test$ go build +student@ubuntu:~/split/test$ ./test []string{"Hello", "how", "are", "you?"} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/split/test$ ``` diff --git a/subjects/splitwhitespaces/README.md b/subjects/splitwhitespaces/README.md index 70771680..4e2aa713 100644 --- a/subjects/splitwhitespaces/README.md +++ b/subjects/splitwhitespaces/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/splitwhitespaces/test$ go build +student@ubuntu:~/splitwhitespaces/test$ ./test []string{"Hello", "how", "are", "you?"} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/splitwhitespaces/test$ ``` diff --git a/subjects/sqrt/README.md b/subjects/sqrt/README.md index 19165b78..9d91a4cd 100644 --- a/subjects/sqrt/README.md +++ b/subjects/sqrt/README.md @@ -33,9 +33,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sqrt/test$ go build +student@ubuntu:~/sqrt/test$ ./test 2 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sqrt/test$ ``` diff --git a/subjects/stars/README.md b/subjects/stars/README.md index 7ec06263..d1e13a0f 100644 --- a/subjects/stars/README.md +++ b/subjects/stars/README.md @@ -30,9 +30,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/stars/test$ cargo run ** **************** ******************************** -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/stars/test$ ``` diff --git a/subjects/step_iterator/README.md b/subjects/step_iterator/README.md index 9c872c7c..e5cb8db0 100644 --- a/subjects/step_iterator/README.md +++ b/subjects/step_iterator/README.md @@ -50,8 +50,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/step_iterator/test$ cargo run 0,10,20,30,40,50,60,70,80,90,100, 0,12,24,36,48,60,72,84,96, -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/step_iterator/test$ ``` diff --git a/subjects/string_literals/README.md b/subjects/string_literals/README.md index 642072f7..d7ee0990 100644 --- a/subjects/string_literals/README.md +++ b/subjects/string_literals/README.md @@ -56,11 +56,11 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/string_literals/test$ cargo run true true true ("ru", "st") 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/string_literals/test$ ``` diff --git a/subjects/string_permutation/README.md b/subjects/string_permutation/README.md index 0fda4ea5..2f27cb41 100644 --- a/subjects/string_permutation/README.md +++ b/subjects/string_permutation/README.md @@ -40,7 +40,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/string_permutation/test$ cargo run Is `thought` a permutation of `thougth`? = true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/string_permutation/test$ ``` diff --git a/subjects/strings/README.md b/subjects/strings/README.md index 7a51cf40..450fd94a 100644 --- a/subjects/strings/README.md +++ b/subjects/strings/README.md @@ -29,10 +29,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/strings/test$ cargo run length of ❤ = 1 length of 形声字 = 3 length of change = 6 length of 😍 = 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/strings/test$ ``` diff --git a/subjects/strlen/README.md b/subjects/strlen/README.md index 3d07e83d..fb43a7ff 100644 --- a/subjects/strlen/README.md +++ b/subjects/strlen/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/strlen/test$ go build +student@ubuntu:~/strlen/test$ ./test 12 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/strlen/test$ ``` diff --git a/subjects/strrev/README.md b/subjects/strrev/README.md index ff47f90e..b31c2239 100644 --- a/subjects/strrev/README.md +++ b/subjects/strrev/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/strrev/test$ go build +student@ubuntu:~/strrev/test$ ./test !dlroW olleH -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/strrev/test$ ``` diff --git a/subjects/sudoku/README.md b/subjects/sudoku/README.md index d263c494..a0a1dcfe 100644 --- a/subjects/sudoku/README.md +++ b/subjects/sudoku/README.md @@ -13,8 +13,8 @@ Example of output for one valid sudoku : ```console -student@ubuntu:~/[[ROOT]]/sudoku$ go build -student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/sudoku$ go build +student@ubuntu:~/sudoku$ ./sudoku ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e 3 9 6 2 4 5 7 8 1$ 1 7 8 3 6 9 5 2 4$ 5 2 4 8 1 7 3 9 6$ @@ -24,7 +24,7 @@ student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku ".96.4...1" "1...6...4" "5.481.39." " 7 1 2 6 3 8 4 5 9$ 6 5 9 1 7 4 8 3 2$ 8 4 3 5 9 2 1 6 7$ -student@ubuntu:~/[[ROOT]]/sudoku$ +student@ubuntu:~/sudoku$ ``` #### Example 2: @@ -32,11 +32,11 @@ student@ubuntu:~/[[ROOT]]/sudoku$ Examples of output for invalid input or sudokus : ```console -student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku 1 2 3 4 | cat -e +student@ubuntu:~/sudoku$ ./sudoku 1 2 3 4 | cat -e Error$ -student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku | cat -e +student@ubuntu:~/sudoku$ ./sudoku | cat -e Error$ -student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/sudoku$ ./sudoku ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e Error$ -student@ubuntu:~/[[ROOT]]/sudoku$ +student@ubuntu:~/sudoku$ ``` diff --git a/subjects/swap/README.md b/subjects/swap/README.md index 09af35d9..aa6ed617 100644 --- a/subjects/swap/README.md +++ b/subjects/swap/README.md @@ -36,9 +36,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/swap/test$ go build +student@ubuntu:~/swap/test$ ./test 1 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/swap/test$ ``` diff --git a/subjects/sweetproblem/README.md b/subjects/sweetproblem/README.md index b5e93a22..1a7e8b84 100644 --- a/subjects/sweetproblem/README.md +++ b/subjects/sweetproblem/README.md @@ -36,10 +36,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sweetproblem/test$ go build +student@ubuntu:~/sweetproblem/test$ ./test 1 10 9 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sweetproblem/test$ ``` diff --git a/subjects/switchcase/README.md b/subjects/switchcase/README.md index a4ebee95..a5cba601 100644 --- a/subjects/switchcase/README.md +++ b/subjects/switchcase/README.md @@ -13,9 +13,9 @@ Write a program that takes a `string` and reverses the case of all its letters. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "SometHingS iS WronG" +student@ubuntu:~/switchcase/test$ go build +student@ubuntu:~/switchcase/test$ ./test "SometHingS iS WronG" sOMEThINGs Is wRONg -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/switchcase/test$ ./test +student@ubuntu:~/switchcase/test$ ``` diff --git a/subjects/tabmult/README.md b/subjects/tabmult/README.md index 0141a733..643374c3 100644 --- a/subjects/tabmult/README.md +++ b/subjects/tabmult/README.md @@ -9,8 +9,8 @@ Write a program that displays a number's multiplication table. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test 9 +student@ubuntu:~/tabmult/test$ go build +student@ubuntu:~/tabmult/test$ ./test 9 1 x 9 = 9 2 x 9 = 18 3 x 9 = 27 @@ -20,7 +20,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 9 7 x 9 = 63 8 x 9 = 72 9 x 9 = 81 -student@ubuntu:~/[[ROOT]]/test$ ./test 19 +student@ubuntu:~/tabmult/test$ ./test 19 1 x 19 = 19 2 x 19 = 38 3 x 19 = 57 @@ -30,7 +30,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 19 7 x 19 = 133 8 x 19 = 152 9 x 19 = 171 -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/tabmult/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/tabmult/test$ ``` diff --git a/subjects/talking/README.md b/subjects/talking/README.md index 81488dd0..05209316 100644 --- a/subjects/talking/README.md +++ b/subjects/talking/README.md @@ -44,11 +44,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/talking/test$ cargo run "There is no need to yell, calm down!" "Sure." "Quiet, I am thinking!" "Interesting" "Just say something!" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/talking/test$ ``` diff --git a/subjects/temperature_conv/README.md b/subjects/temperature_conv/README.md index 223e3fca..7b3fe4b5 100644 --- a/subjects/temperature_conv/README.md +++ b/subjects/temperature_conv/README.md @@ -30,9 +30,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/temperature_conv/test$ cargo run -459.67 F = -273.15 C 0 C = 32 F -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/temperature_conv/test$ ``` diff --git a/subjects/tic_tac_toe/README.md b/subjects/tic_tac_toe/README.md index 1e442c62..29e60436 100644 --- a/subjects/tic_tac_toe/README.md +++ b/subjects/tic_tac_toe/README.md @@ -80,9 +80,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/tic_tac_toe/test$ cargo run "Tie" "player O won" "player X won" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/tic_tac_toe/test$ ``` diff --git a/subjects/to_url/README.md b/subjects/to_url/README.md index 828cae37..4cb50b10 100644 --- a/subjects/to_url/README.md +++ b/subjects/to_url/README.md @@ -27,7 +27,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/to_url/test$ cargo run Hello, world! to be use as an url is Hello,%20world! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/to_url/test$ ``` diff --git a/subjects/tolower/README.md b/subjects/tolower/README.md index 0d509cd5..699377ab 100644 --- a/subjects/tolower/README.md +++ b/subjects/tolower/README.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/tolower/test$ go build +student@ubuntu:~/tolower/test$ ./test hello! how are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/tolower/test$ ``` diff --git a/subjects/toupper/README.md b/subjects/toupper/README.md index 193239c1..1b939fd6 100644 --- a/subjects/toupper/README.md +++ b/subjects/toupper/README.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/toupper/test$ go build +student@ubuntu:~/toupper/test$ ./test HELLO! HOW ARE YOU? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/toupper/test$ ``` diff --git a/subjects/traits/README.md b/subjects/traits/README.md index eff32305..a849471a 100644 --- a/subjects/traits/README.md +++ b/subjects/traits/README.md @@ -92,7 +92,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/traits/test$ cargo run this apple gives 4 units of strength Before eating Player { name: "player1", strength: 1.0, score: 0, money: 0, weapons: ["knife"] } After eating an apple @@ -103,5 +103,5 @@ After eating a steak player1 Strength: 14, Score: 0, Money: 0 Weapons: ["knife"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/traits/test$ ``` diff --git a/subjects/trimatoi/README.md b/subjects/trimatoi/README.md index d18a26f8..5d1e020d 100644 --- a/subjects/trimatoi/README.md +++ b/subjects/trimatoi/README.md @@ -44,8 +44,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/trimatoi/test$ go build +student@ubuntu:~/trimatoi/test$ ./test 12345 12345 12345 @@ -53,5 +53,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 1234 -1234 1234 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/trimatoi/test$ ``` diff --git a/subjects/tuples/README.md b/subjects/tuples/README.md index 7d84a580..0efab865 100644 --- a/subjects/tuples/README.md +++ b/subjects/tuples/README.md @@ -54,10 +54,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/tuples/test$ cargo run Student: Student(20, "Pedro", "Domingos") Student first name: Pedro Student last name: Domingos Student Id: 20 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/tuples/test$ ``` diff --git a/subjects/twosum/README.md b/subjects/twosum/README.md index 1d1cbd40..aefc8344 100644 --- a/subjects/twosum/README.md +++ b/subjects/twosum/README.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/twosum/test$ go build +student@ubuntu:~/twosum/test$ ./test [0 3] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/twosum/test$ ``` diff --git a/subjects/ultimatedivmod/README.md b/subjects/ultimatedivmod/README.md index dc02d9cf..4853cbe6 100644 --- a/subjects/ultimatedivmod/README.md +++ b/subjects/ultimatedivmod/README.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/ultimatedivmod/test$ go build +student@ubuntu:~/ultimatedivmod/test$ ./test 6 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ultimatedivmod/test$ ``` diff --git a/subjects/ultimatepointone/README.md b/subjects/ultimatepointone/README.md index e556c621..065958e5 100644 --- a/subjects/ultimatepointone/README.md +++ b/subjects/ultimatepointone/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/ultimatepointone/test$ go build +student@ubuntu:~/ultimatepointone/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ultimatepointone/test$ ``` diff --git a/subjects/union/README.md b/subjects/union/README.md index 737698f4..ed1b72cc 100644 --- a/subjects/union/README.md +++ b/subjects/union/README.md @@ -11,16 +11,16 @@ If the number of arguments is different from 2, then the program displays newlin ### Usage ```console -student@ubuntu:~/[[ROOT]]/union$ go build -student@ubuntu:~/[[ROOT]]/union$ ./union zpadinton paqefwtdjetyiytjneytjoeyjnejeyj | cat -e +student@ubuntu:~/union$ go build +student@ubuntu:~/union$ ./union zpadinton paqefwtdjetyiytjneytjoeyjnejeyj | cat -e zpadintoqefwjy$ -student@ubuntu:~/[[ROOT]]/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e +student@ubuntu:~/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e df6vewg4thras$ -student@ubuntu:~/[[ROOT]]/union$ ./union rien "cette phrase ne cache rien" | cat -e +student@ubuntu:~/union$ ./union rien "cette phrase ne cache rien" | cat -e rienct phas$ -student@ubuntu:~/[[ROOT]]/union$ ./union | cat -e +student@ubuntu:~/union$ ./union | cat -e $ -student@ubuntu:~/[[ROOT]]/union$ ./union rien | cat -e +student@ubuntu:~/union$ ./union rien | cat -e $ -student@ubuntu:~/[[ROOT]]/union$ +student@ubuntu:~/union$ ``` diff --git a/subjects/uniqueoccurences/README.md b/subjects/uniqueoccurences/README.md index c8a3a520..6d829cf3 100644 --- a/subjects/uniqueoccurences/README.md +++ b/subjects/uniqueoccurences/README.md @@ -11,12 +11,12 @@ Only lower case characters will be given. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./main abbaac +student@ubuntu:~/uniqueoccurences/test$ go build +student@ubuntu:~/uniqueoccurences/test$ ./main abbaac true -student@ubuntu:~/[[ROOT]]/test$ ./main ab +student@ubuntu:~/uniqueoccurences/test$ ./main ab false -student@ubuntu:~/[[ROOT]]/test$ ./main abcacccazb +student@ubuntu:~/uniqueoccurences/test$ ./main abcacccazb true ``` diff --git a/subjects/unmatch/README.md b/subjects/unmatch/README.md index e58cfb52..2517c80f 100644 --- a/subjects/unmatch/README.md +++ b/subjects/unmatch/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/unmatch/test$ go build +student@ubuntu:~/unmatch/test$ ./test 4 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/unmatch/test$ ``` diff --git a/subjects/unwrap_or_expect/README.md b/subjects/unwrap_or_expect/README.md index d9dd14a4..083a56f2 100644 --- a/subjects/unwrap_or_expect/README.md +++ b/subjects/unwrap_or_expect/README.md @@ -92,5 +92,5 @@ Ok([2, 4, 6]) [2, 4, 6] Err(("There is a even value in the vector!", [2, 6])) [2, 6] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/unwrap_or_expect/test$ ``` diff --git a/subjects/vector_operations/README.md b/subjects/vector_operations/README.md index bfba0038..95639cf5 100644 --- a/subjects/vector_operations/README.md +++ b/subjects/vector_operations/README.md @@ -42,7 +42,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/vector_operations/test$ cargo run ThreeDVector { i: 5, j: 12, k: 6 } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/vector_operations/test$ ``` diff --git a/subjects/vehicles/README.md b/subjects/vehicles/README.md index 592f10a2..ec066e99 100644 --- a/subjects/vehicles/README.md +++ b/subjects/vehicles/README.md @@ -73,7 +73,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/vehicles/test$ cargo run ["Model 3", "Ranger"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/vehicles/test$ ``` diff --git a/subjects/volumechanger/README.md b/subjects/volumechanger/README.md index 4ddd8148..865547ff 100644 --- a/subjects/volumechanger/README.md +++ b/subjects/volumechanger/README.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/volumechanger/test$ go build +student@ubuntu:~/volumechanger/test$ ./test 2 3 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/volumechanger/test$ ``` diff --git a/subjects/wdmatch/README.md b/subjects/wdmatch/README.md index cbca204f..03bc3e55 100644 --- a/subjects/wdmatch/README.md +++ b/subjects/wdmatch/README.md @@ -11,13 +11,13 @@ If the number of arguments is different from 2, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test faya fgvvfdxcacpolhyghbreda +student@ubuntu:~/wdmatch/test$ go build +student@ubuntu:~/wdmatch/test$ ./test faya fgvvfdxcacpolhyghbreda faya -student@ubuntu:~/[[ROOT]]/test$ ./test faya fgvvfdxcacpolhyghbred -student@ubuntu:~/[[ROOT]]/test$ ./test error rrerrrfiiljdfxjyuifrrvcoojh -student@ubuntu:~/[[ROOT]]/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " +student@ubuntu:~/wdmatch/test$ ./test faya fgvvfdxcacpolhyghbred +student@ubuntu:~/wdmatch/test$ ./test error rrerrrfiiljdfxjyuifrrvcoojh +student@ubuntu:~/wdmatch/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " quarante deux -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/wdmatch/test$ ./test +student@ubuntu:~/wdmatch/test$ ``` diff --git a/subjects/wget/README.md b/subjects/wget/README.md index 19a94dec..03c15642 100644 --- a/subjects/wget/README.md +++ b/subjects/wget/README.md @@ -26,7 +26,7 @@ To see more about wget you can visit the manual by using the command `man wget`, Your program must have as arguments the link from where you want to download the file, for instance: ```console -student@student$ ./wget https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ ./wget https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg ``` The program should be able to give feedback, displaying the: @@ -44,7 +44,7 @@ The program should be able to give feedback, displaying the: It should look something like this ```console -student@student$ go run main.go https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ go run . https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg start at 2017-10-14 03:46:06 sending request, awaiting response... status 200 OK content size: 56370 [~0.06MB] @@ -62,7 +62,7 @@ Your program should be able to handle different flags. 1. Download a file and save it under a different name by using the flag `-O` followed by the name you wish to save the file, example: ```console -student@student$ go run main.go -O=meme.jpg https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ go run . -O=meme.jpg https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg start at 2017-10-14 03:46:06 sending request, awaiting response... status 200 OK content size: 56370 [~0.06MB] @@ -71,7 +71,7 @@ saving file to: ./meme.jpg Downloaded [https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg] finished at 2017-10-14 03:46:07 -student@student$ ls -l +student@ubuntu:~/wget$ ls -l -rw-r--r-- 1 student student 56370 ago 13 16:59 meme.jpg -rw-r--r-- 1 student student 11489 ago 13 10:28 main.go ``` @@ -81,7 +81,7 @@ student@student$ ls -l 2. It should also handle the path to where your file is going to be saved using the flag `-P` followed by the path to where you want to save the file, example: ```console -student@student$ go run main.go -P=~/Downloads/ -O=meme.jpg https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ go run . -P=~/Downloads/ -O=meme.jpg https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg start at 2017-10-14 03:46:06 sending request, awaiting response... status 200 OK content size: 56370 [~0.06MB] @@ -90,7 +90,7 @@ saving file to: ~/Downloads/meme.jpg Downloaded [https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg] finished at 2017-10-14 03:46:07 -student@student$ ls -l ~/Downloads/meme.jpg +student@ubuntu:~/wget$ ls -l ~/Downloads/meme.jpg -rw-r--r-- 1 student student 56370 ago 13 16:59 /home/student/Downloads/meme.jpg ``` @@ -99,7 +99,7 @@ student@student$ ls -l ~/Downloads/meme.jpg 3. The program should handle speed limit. Basically the program can control the speed of the download by using the flag `--rate-limit`. If you download a huge file you can limit the speed of your download, preventing the program from using the full possible bandwidth of your connection, example: ```console -student@student$ go run main.go --rate-limit=400k https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ go run . --rate-limit=400k https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg ``` This flag should accept different value types, example: k and M. So you can put the rate limit as `rate-limit=200k` or `rate-limit=2M` @@ -109,12 +109,12 @@ This flag should accept different value types, example: k and M. So you can put 4. Downloading different files should be possible. For this the program will receive the `-i` flag followed by a file name that will contain all links that are to be downloaded. Example: ```console -student@student$ ls +student@ubuntu:~/wget$ ls download.txt main.go -student@student$ cat download.txt +student@ubuntu:~/wget$ cat download.txt http://ipv4.download.thinkbroadband.com/20MB.zip http://ipv4.download.thinkbroadband.com/10MB.zip -student@student$ go run main -i=download.txt +student@ubuntu:~/wget$ go run main -i=download.txt content size: [10485760, 20971520] finished 10MB.zip finished 20MB.zip @@ -142,7 +142,7 @@ Those flags will work based on [Follow links](https://www.gnu.org/software/wget/ example: ```console -student@student$ ./wget --mirror -R=jpg,gif https://example.com +student@ubuntu:~/wget$ ./wget --mirror -R=jpg,gif https://example.com ``` - [Directory-Based Limits](https://www.gnu.org/software/wget/manual/wget.html#Directory_002dBased-Limits) (`--exclude` short hand -X) @@ -152,7 +152,7 @@ student@student$ ./wget --mirror -R=jpg,gif https://example.com example: ```console -student@student ./wget --mirror -X=/assets,/css https://example.com +student@ubuntu:~/wget$ ./wget --mirror -X=/assets,/css https://example.com ``` ### Hint