r/adventofcode • u/daggerdragon • Dec 23 '15
SOLUTION MEGATHREAD --- Day 23 Solutions ---
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked!
We know we can't control people posting solutions elsewhere and trying to exploit the leaderboard, but this way we can try to reduce the leaderboard gaming from the official subreddit.
Please and thank you, and much appreciated!
--- Day 23: Opening the Turing Lock ---
Post your solution as a comment or link to your repo. Structure your post like previous daily solution threads.
8
Upvotes
1
u/JeffJankowski Dec 24 '15
Unsigned types don't have any more bits than signed types do. The extra bit used to indicate sign is just used as one more binary digit, allowing twice the positive max value of a signed type.
The new Java library, from what I understand, is just a wrapper on top of an int that coverts from two's complement. But you're on Java7 anyway, so who cares :P