Wonderful to see your problem solving going through this ‘live’ - very instructive, particularly on this problem. So glad you’re uploading these.
@bikkel7720 күн бұрын
I think the reason why some paths are cheaper than others is mainly due to the left command (
@urban2420 күн бұрын
"Can we move the robot arm over empty tiles? It doesn't actually matter for this part I think" - famous last words
@artemistrubacheev770423 күн бұрын
A really tough one! I misinterpreted part of the lore where it says “-40 degrees” and for like 3 minutes thought I will have to type on a rotated keypad :D
@NStripleseven22 күн бұрын
Yea some of the stuff I don’t know why they bolded
@Bundas10222 күн бұрын
This day's part2 was the first time this year that I couldn't do it in one sitting. I had to relax a bit and do something else bc it broke my brain :D Definitely the hardest one so far
@cedw23 күн бұрын
World class thumbnail
@MattDog_22222 күн бұрын
Using some inspiration from memoized solutions on reddit i basically had `static long cheapestMove(int start, int end, int upstreamRobots, int deadzone)` which generates the ways to move from start to end index, ignoring deadzone, and finds the min of those by calling a helper method(String sequence, int upstream) which recursively invokes the cheapestMove for each move in the sequence. And cheapestMove memoizes the result of all 4 args.
@yemiez23 күн бұрын
This one sure made my head hurt a lot, it took me wayyyyyy to long to realise the shortest sequence for any N robot doesn't matter if it doesn't produce the shortest sequence of another later one..
@NStripleseven22 күн бұрын
That’s a critical piece. There are so many sequences that look equivalent lengthwise but aren’t because all but one screw you over when you’re generating a robot’s input earlier in the chain.
@God-i223 күн бұрын
HAHA, you can tell from thumbnail if Neil had an easy time with the problem or not😂
@joule16253422 күн бұрын
i have solved it but took me several hours... my solution for part 1 was very sub-optimal and i had to come up with a different approach for part 2. not happy with this day but at least solved