I really liked this one! I came up with a solution initially that was way too slow to complete, but the second solution works OK. Nice working in go that doesn't have any fancy libraries
I really liked this one! I came up with a solution initially that was way too slow to complete, but the second solution works OK. Nice working in go that doesn't have any fancy libraries
I was tired of having to do bounds checking every time one of these "check around this location" type tests with 2D arrays come up. So I used a "sentinel row" type solution as suggested by this person: stackoverflow.com/questions/62...
I was tired of having to do bounds checking every time one of these "check around this location" type tests with 2D arrays come up. So I used a "sentinel row" type solution as suggested by this person: stackoverflow.com/questions/62...
youtu.be/rNo5fs1iDrs?...
youtu.be/rNo5fs1iDrs?...