Short & Concise | Two Pointers | C++
\nclass Solution {\npublic:\n    bool canChange(string s, string t) {\n        int i = 0, j = 0, n = s.size(), m = t.size();\n        if(n != m) return false;\n
```\nclass Solution {\npublic:\n    bool canChange(string s, string t) {\n        int i = 0, j = 0, n = s.size(), m = t.size();\n        if(n != m) return false;\n        \n        while(i < n || j < m) {\n            while(i < n && s[i] == \'_\') i++;\n            while(j < m && t[j] == \'_\') j++;\n            \n            if(s[i] != t[j]) return false;\n            if(s[i] == \'R\' && i > j) return false;\n            if(s[i] == \'L\' && i < j) return false;\n            i++, j++;\n        }\n        return true;\n    }\n};\n```
['Two Pointers', 'C++']