Skip to content

Instantly share code, notes, and snippets.

@alexandrelaplante
Last active April 5, 2018 17:59
Show Gist options
  • Save alexandrelaplante/96a8b0b0fccae7840c58e930fa3ebc04 to your computer and use it in GitHub Desktop.
Save alexandrelaplante/96a8b0b0fccae7840c58e930fa3ebc04 to your computer and use it in GitHub Desktop.
Question: Someone in a chat room asks people to vote for options 1, 2 or 3.
Can you parse the chat log to count the votes?
Alex: 1
James: 2
Allie: 1
Allie2: 3
Theo: 3
David: 1
Jared: 2
Emma: 3
Ben: 1
Liam: 2
Emily: 3
Lily: 1
Mike: 2
Victor: 1
Daniel: 2
Vince: 3
Chelsea: 1
Deanna: 2
Bob: What's going on?
Alex: 1
Gary: 2
Alice: Haha
Henry: 4
Gary: 3
Rodrigo: 1
Kyle: 2
Leonardo: :laughing:
Eric: 1 Eric: 1 Eric: 1
Esther: 2
John: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment