Problem 1963. Grid traversal

Created by Zikobrelli in Community

Given a line defined by (x1,y1) & (x2,y2),return the number of squares that the line crosses on the grid (a square is 1x1).

Coming next: return the number of squares for any geometrical shape

Solution Stats

40.32% Correct | 59.68% Incorrect
Last solution submitted on Mar 03, 2019

Problem Comments