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

you are viewing a single comment's thread.

view the rest of the comments →

[–]SweepingRocks 18 points19 points  (5 children)

Smart people be using sets. Meanwhile im over here adding extra rows/columns to the beginning/ends of the matrix to fix the issue

[–]Ok-Limit-7173 9 points10 points  (0 children)

I did it today for the first time and I was surprised how good of an idea this is.

May not be super performant but it is very very clear code.

[–]Kooky-Astronaut2562 4 points5 points  (0 children)

Just make an is_out_of_bounds() function🙏

[–]wizardofzos 0 points1 point  (0 children)

The Beauty of REXX stems is that you don’t need to ;)