We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How would one implement Advent of Code 2024 Day 8:
Day 8: Resonant Collinearity https://adventofcode.com/2024/day/8
In Trealla Prolog? Whats the recommended way to solve it? It specifies as the counting of unique solutions:
How many unique locations within the bounds of the map contain an antinode?
The text was updated successfully, but these errors were encountered:
Ok, I found a solution without aggregate_all/3 or distinct/1, just using some other common builtins:
count_distinct(G, N) :- findall(G, G, L), sort(L, R), length(R, N).
But the above uses more memory usually, since findall/3 would create the non-deduplicated list first.
Sorry, something went wrong.
No branches or pull requests
How would one implement Advent of Code 2024 Day 8:
In Trealla Prolog? Whats the recommended way to solve it?
It specifies as the counting of unique solutions:
The text was updated successfully, but these errors were encountered: