Unable to load image

Advent of Code 2022 : Day 9

grate filter edition

:#marseycapyhacker:

17
Jump in the discussion.

No email address required.

I've been filtered by p2 for over 2 hours because somehow

vec = sign(pos(i,:)-pos(i+1,:));

pos(i+1,:) = pos(i+1,:) + vec;

isn't the same as

pos(i+1,:) = pos(i+1,:) + sign(pos(i,:)-pos(i+1,:));

I hate matlab so much it's unreal. There is literally no reason this should ever happen

Jump in the discussion.

No email address required.

wait I'm r-slurred

I figured it out, vec changes which means further loops won't move it properly

Jump in the discussion.

No email address required.

cleaned code

frick matlab

![](/images/16705731986710944.webp)

Jump in the discussion.

No email address required.



Now playing: Funky's Fugue (DKC).mp3

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.