Browse Source

formatting and renaming subject

pull/75/head
Christopher Fremond 5 years ago committed by Frenchris
parent
commit
09f8e37b02
  1. 12
      subjects/ispowerof2.en.md

12
subjects/ispowerof2.md → subjects/ispowerof2.en.md

@ -1,19 +1,15 @@
# ispowerof2 ## ispowerof2
## Instructions
### Instructions
Write a function that determines if a given number is a power of 2. 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. 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 ## Expected function
```go ```go
func Ispowerof2(n uint) bool {
func Ispowerof2(n uint) bool {
} }
``` ```
Loading…
Cancel
Save