Traverse From King
\ngrid = [[0 for _ in range(8)] for _ in range(8)]\n        res = []\n        for q in queens:\n            grid[q[0]][q[1]] = 1\n        x = king[0]\n        y
```\ngrid = [[0 for _ in range(8)] for _ in range(8)]\n        res = []\n        for q in queens:\n            grid[q[0]][q[1]] = 1\n        x = king[0]\n        y = king[1]\n        dir = [(1, 0), (-1, 0), (1, 1), (-1, -1), (1, -1), (-1, 1), (0, 1), (0, -1)]\n        for i in range(1, 8):\n            level = []\n            for d in dir:\n                a = x + d[0] * i\n                b = y + d[1] * i\n                print(a,b)\n                if 0 <= a < 8 and 0 <= b < 8 and grid[a][b] == 1:\n                    res.append([a, b])\n                else:\n                    level.append(d)\n            dir = level\n        return res\n\t```
[]