3

APL (Dyalog Unicode), 59 bytesSBCS {v⍳+\(⍺⌷v),↓⍉↑(|⍴¨×)(⍵⊃v)-⍺⊃v←9 11∘○¨+\0,0j1*{⍵/⍨⌈⍵÷2}⍳⍺⌈⍵} Try it online! Anonymous function that accepts two endpoints as left and right arguments. Ungolfed & how it works The queen moves diagonally first, so it is sufficient to pre-compute the coordinates of each number up to max(start,end). The coordinate-...


Only top voted, non community-wiki answers of a minimum length are eligible