Skip to main content

Timeline for Find the Cell's Neighbours

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Jul 18, 2018 at 17:50 history edited Adám CC BY-SA 4.0
added 2 characters in body
Jul 18, 2018 at 16:16 history edited Adám CC BY-SA 4.0
added 449 characters in body
Jul 18, 2018 at 16:15 comment added JungHwan Min The last test case still has 8 elements. I think the intended output is to print the neighbors at relative positions [-1, -1], [-1, 0], [-1, 1], [0, -1], [0, 1], [1, -1], [1, 0], [1, 1]
Jul 18, 2018 at 16:12 comment added Adám @JungHwanMin Last test case has.
Jul 18, 2018 at 16:02 comment added JungHwan Min I don't think the output is expected to have the center element in it.
Jul 18, 2018 at 15:25 comment added ngn @Adám ok­­­­­­­
Jul 18, 2018 at 15:23 comment added Adám @ngn Uh, that's quite original. You post that!
Jul 18, 2018 at 15:19 history edited Adám CC BY-SA 4.0
added 208 characters in body
Jul 18, 2018 at 15:19 comment added ngn @Adám fix the above and shorten it: {,(⍺⊥⍺|(⍺⊤⍵)-⊢)¨1-⍳3 3}, I'm not sure if you should also remove the middle element: {4⌽1↓4⌽...}
Jul 18, 2018 at 13:59 history edited Adám CC BY-SA 4.0
added 1 character in body
Jul 18, 2018 at 13:48 history edited Adám CC BY-SA 4.0
explanation
Jul 18, 2018 at 13:35 history answered Adám CC BY-SA 4.0