r/adventofcode • u/daggerdragon • Dec 07 '15
SOLUTION MEGATHREAD --- Day 7 Solutions ---
--- Day 7: Some Assembly Required ---
Post your solution as a comment. Structure your post like previous daily solution threads.
Also check out the sidebar - we added a nifty calendar to wrangle all the daily solution threads in one spot!
22
Upvotes
View all comments
Show parent comment
1
u/Na_rien Dec 07 '15
I'm writing my solution in java too, and think I have a similar solution to yours, only, I get the wrong values when NOT is involved.
https://github.com/narien/adventofcode/blob/master/dag7/LogicalGates.java
I thought it could be because int is 32 bit, and not would simply turn too many zeroes into ones, is that the case? and how did you solve it in that case?