Lindsey Buckingham tell Stevie Nicks Go way Nicks sad want away quickly possible life 2D hexagonal worldconsider hexagonal tiling plane picture Nicks wish cell mark 0 0 certain cell give coordinate she hexagon neighbor want cost associate the cost depend direction travel go 0 0 1 1 exact cost go 2 1 1 0 the cost give input order c_1 c_2 c_3 c_4 c_5 c_6 picture Print small cost path origin coordinate 0 0 give cell