81% intuitive python
permutating all directions away from king except the [0,0]\n\n2. going though them , being within the chessboard and finding the first attacker -> breaking \n\n
1. permutating all directions away from king except the [0,0]\n\n2. going though them , being within the chessboard and finding the first attacker -> breaking \n\n3. if found append to results \n\n81%\n```\nclass Solution(object):\n    def queensAttacktheKing(self, queens, king):\n        """\n        :type queens: List[List[int]]\n        :type king: List[int]\n        :rtype: List[List[int]]\n        """\n     \n        di = [-1,0,1]\n        \n        rs =[]\n       \n        for i in di:\n            for j in di:\n                if (i==0 and j==0):\n                    continue\n           \n                nx = king[0] + i\n                ny = king[1] + j\n                \n                \n                while  nx<8 and  ny<8 and nx>-1  and ny>-1:\n                    \n                    \n                    if [nx,ny] in queens:\n                        rs.append([nx,ny])\n                        break\n                    nx += i\n                    ny += j    \n                        \n                continue  \n                \n        return rs                \n                \n\n        \n```
['Python', 'Python3']