This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 800 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 960 | |
border: no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://leancrew.com/all-this/2015/02/counting-heads/ | |
# Eight people are sitting around a circular table. Each has a coin. | |
# They all flip their coins. | |
# What is the probability that no two adjacent people will get heads? | |
# | |
# > after the flip they'll end up with one of 256 combinations, | |
# > let's check how many of the combinations fulfil the criteria by enumeration |