From d709c6491bfee51f9d51b7d190cf51d74d35bd3b Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 19 Jun 2019 15:14:21 +0100 Subject: [PATCH 1/5] fixi activebits readme from hackaton --- subjects/activebits.en.md | 12 ++++++------ subjects/activebits.fr.md | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index 6722ffcc9..614186e33 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, ActiveBitsthat, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. +Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. The function must have the next signature. @@ -23,11 +23,11 @@ package main import ( "fmt" - student ".." + piscine ".." ) func main() { - nbits := student.ActiveBits(7) + nbits := piscine.ActiveBits(7) fmt.Println(nbits) } ``` @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/activebits$ go build -student@ubuntu:~/student/activebits$ ./activebits +student@ubuntu:~/piscine/test$ go build +student@ubuntu:~/piscine/test$ ./test 10 -student@ubuntu:~/student/activebits$ +student@ubuntu:~/piscine/test$ ``` diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index 6722ffcc9..614186e33 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, ActiveBitsthat, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. +Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. The function must have the next signature. @@ -23,11 +23,11 @@ package main import ( "fmt" - student ".." + piscine ".." ) func main() { - nbits := student.ActiveBits(7) + nbits := piscine.ActiveBits(7) fmt.Println(nbits) } ``` @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/activebits$ go build -student@ubuntu:~/student/activebits$ ./activebits +student@ubuntu:~/piscine/test$ go build +student@ubuntu:~/piscine/test$ ./test 10 -student@ubuntu:~/student/activebits$ +student@ubuntu:~/piscine/test$ ``` From bf3f96d57428f394a07feeb50f8296c34b03d161 Mon Sep 17 00:00:00 2001 From: LEEDASILVA <39002521+LEEDASILVA@users.noreply.github.com> Date: Wed, 19 Jun 2019 15:16:18 +0100 Subject: [PATCH 2/5] Update activebits.en.md --- subjects/activebits.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index 614186e33..fa44a926f 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -37,6 +37,6 @@ And its output : ```console student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ ./test -10 +3 student@ubuntu:~/piscine/test$ ``` From 32a8c685fce7f8dc10cc88eae2d2eca6d3053804 Mon Sep 17 00:00:00 2001 From: LEEDASILVA <39002521+LEEDASILVA@users.noreply.github.com> Date: Wed, 19 Jun 2019 15:16:38 +0100 Subject: [PATCH 3/5] Update activebits.fr.md --- subjects/activebits.fr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index 614186e33..fa44a926f 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -37,6 +37,6 @@ And its output : ```console student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ ./test -10 +3 student@ubuntu:~/piscine/test$ ``` From b439b5cc23d9c492eb71a9c0742d1fa5f3492bd9 Mon Sep 17 00:00:00 2001 From: LEEDASILVA <39002521+LEEDASILVA@users.noreply.github.com> Date: Wed, 19 Jun 2019 16:25:23 +0100 Subject: [PATCH 4/5] Update activebits.en.md --- subjects/activebits.en.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index fa44a926f..963542293 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -4,8 +4,6 @@ Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. -The function must have the next signature. - ### Expected function ```go From fa60ce3a096ee3a3c96e4e31ad1b0cd4ba5d2b4f Mon Sep 17 00:00:00 2001 From: LEEDASILVA <39002521+LEEDASILVA@users.noreply.github.com> Date: Wed, 19 Jun 2019 16:25:37 +0100 Subject: [PATCH 5/5] Update activebits.fr.md --- subjects/activebits.fr.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index fa44a926f..963542293 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -4,8 +4,6 @@ Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. -The function must have the next signature. - ### Expected function ```go