Browse Source

is power of 2 exam exercise

pull/75/head
Augusto 5 years ago committed by Frenchris
parent
commit
bb4fcea446
  1. 19
      subjects/ispowerof2.md

19
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 {
}
```
Loading…
Cancel
Save