Easy
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```python3 []\nclass Solution:\n    def areSimilar(self, mat: List[List[int]], k: int) -> bool:\n        m=len(mat)\n        n=len(mat[0])\n        for r in range(m):\n            for c in range(n):\n                if r%2==0 and mat[r][c]!=mat[r][(c-k)% n]:return False\n                elif mat[r][c]!=mat[r][(c+k)%n]:return False\n        \n        return True\n        \n```
['Python3']