From bb4fcea4463f581471f7cd9c39006ed45ce6efe7 Mon Sep 17 00:00:00 2001 From: Augusto Date: Fri, 19 Apr 2019 12:32:43 +0100 Subject: [PATCH] is power of 2 exam exercise --- subjects/ispowerof2.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 subjects/ispowerof2.md diff --git a/subjects/ispowerof2.md b/subjects/ispowerof2.md new file mode 100644 index 00000000..560c877c --- /dev/null +++ b/subjects/ispowerof2.md @@ -0,0 +1,19 @@ +# ispowerof2 +## Instructions + +Write a function that determines if a given number is a power of 2. + +This function returns true if the given number is a power of 2, otherwise it returns false. + +Your function must be declare as follows: + +## Expected function + +```go + +func Ispowerof2(n uint) bool { + +} + +``` +