Skip to content

Instantly share code, notes, and snippets.

View bayangan1991's full-sized avatar

Ryan "RB" Barnes bayangan1991

  • Uptick
  • NSW
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bayangan1991 on github.
  • I am bayangan (https://keybase.io/bayangan) on keybase.
  • I have a public key ASAkhNMDm7mkpv2VLWwILRh-AJyicWasNzNDTGzeDwZNZQo

To claim this, I am signing this object:

@bayangan1991
bayangan1991 / witness_me.py
Last active December 6, 2021 06:51
Witness me!
#!/usr/bin/env python3
# Title: Witness me!
# Description: Calculates and counts all the liars below a given n value
# Author: Ryan Barnes
# Date: 2021-12-06
# License: MIT
from collections import Counter
from functools import partial
from itertools import chain