Python solution | dfs from king
\ndef queensAttacktheKing(self, queens: List[List[int]], king: List[int]) -> List[List[int]]:\n\tqueens = set(tuple(q) for q in queens)\n\tdirs = [[-1, 0], [1, 
```\ndef queensAttacktheKing(self, queens: List[List[int]], king: List[int]) -> List[List[int]]:\n\tqueens = set(tuple(q) for q in queens)\n\tdirs = [[-1, 0], [1, 0], [0, -1], [0, 1], [-1, -1], [-1, 1], [1, -1], [1, 1]]\n\tans = []\n\tfor dx, dy in dirs:\n\t\tx, y = king\n\t\twhile(0<=x<8 and 0<=y<8):\n\t\t\tx += dx\n\t\t\ty += dy\n\t\t\tif (x, y) in queens:\n\t\t\t\tans.append([x, y])\n\t\t\t\tbreak\n\treturn ans\n```
[]