Skip to content

Instantly share code, notes, and snippets.

@tene
Created September 23, 2010 19:55
Show Gist options
  • Save tene/594240 to your computer and use it in GitHub Desktop.
Save tene/594240 to your computer and use it in GitHub Desktop.
You're tasked with enforcing the rule "If you are less than 21 years old, you are restricted to ordering non-alcoholic drinks."
You have a set of receipts which list an age and a drink order, with one or the other obscured.
Given the information you can see on the following receipts, which fields do you need to reveal to detect violations of the rule?
1 2 3 4
--------------------------------------------
age: | 19 | 23 | XX | XX |
drink:| XXXX | XXX | vodka | coke |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment