Skip to content

Instantly share code, notes, and snippets.

@anderZubi
Last active August 29, 2015 13:57
Show Gist options
  • Save anderZubi/9524755 to your computer and use it in GitHub Desktop.
Save anderZubi/9524755 to your computer and use it in GitHub Desktop.
func BinaryCount(n int, result string){
if n == len(result) {
fmt.Println(result)
} else {
BinaryCount(n, result + "0")
BinaryCount(n, result + "1")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment