Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaining comparisons and assumed uniqueness #96

Open
snoyes opened this issue Dec 11, 2020 · 0 comments
Open

Chaining comparisons and assumed uniqueness #96

snoyes opened this issue Dec 11, 2020 · 0 comments

Comments

@snoyes
Copy link

snoyes commented Dec 11, 2020

"in1: Set[int] = set(data(1, int))\n",

" if x != y)"

The puzzle description doesn't guarantee that each entry is unique; it's possible that a report contains the entry 1010 twice.

" if x != z != y)"

If we want to find unique entries anyway, this comparison chain does not preclude x == y. Perhaps use x < y < z ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant