[0, 1, 7, 8, 9] 3 dist: 2 r: 1 c: 1 r: 0 c: 2 r: 7 c: 3 r: 8 c: 4 r: 9 c: 5