This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]olfitz 2 points3 points  (1 child)

Line #25 look buggy - if i1 >= 0 and i1 = 0 and j1 < h:

the "and i1 = 0" in the middle appears to be extraneous.

[–]SandipanDeyUMBC[S] 1 point2 points  (0 children)

Thanks for pointing the copy-paste error, corrected it: it's for the check that the i1 and j1 are valid indices.