I've been stuck on the same bug all day and can't find the cause. I keep staring at the code and it seems logically correct, but the values come out weird.
For those of you who are good at debugging, could I ask how you break down your approach? I'm desperate, so this is my first time posting here.