\u3010Simple Python (1 Scan, O(1) space)\u3011
Actually two scans....\n```\nclass Solution(object):\n    def canTransform(self, start, end):\n        """\n        :type start: str\n        :type end: str\n  
Actually two scans....\n```\nclass Solution(object):\n    def canTransform(self, start, end):\n        """\n        :type start: str\n        :type end: str\n        :rtype: bool\n        """\n        if start.replace('X','')!=end.replace('X',''): return False\n\n        l1=l2=r1=r2=0\n        for v1,v2 in zip(start,end):\n            if v1=='L': l1+=1\n            elif v1=='R': r1+=1\n            if v2=='L': l2+=1\n            elif v2=='R': r2+=1\n            if l1>l2 or r1<r2: return False\n        return True
[]