[Python3] greedy
Please pull this commit for solutions of weekly 301. \n\n\nclass Solution:\n    def canChange(self, s: str, e: str) -> bool:\n        dl = dr = 0 \n        for 
Please pull this [commit](https://github.com/gaosanyong/leetcode/commit/f00c06cefbc1b2305f127a8cde7ff9b010197930) for solutions of weekly 301. \n\n```\nclass Solution:\n    def canChange(self, s: str, e: str) -> bool:\n        dl = dr = 0 \n        for ss, ee in zip(s, e): \n            if dl > 0 or dl < 0 and ss == \'R\' or dr < 0 or dr > 0 and ss == \'L\': return False \n            dl += int(ss == \'L\') - int(ee == \'L\')\n            dr += int(ss == \'R\') - int(ee == \'R\')\n        return dl == dr == 0 \n```
['Python3']