[python] O(n) 5-lines
\n    def isTransformable(self, s: str, t: str) -> bool:\n        for c in \'0123456789\':\n            a,b=[i for i,cc in enumerate(s) if cc==c],[i for i,cc in
```\n    def isTransformable(self, s: str, t: str) -> bool:\n        for c in \'0123456789\':\n            a,b=[i for i,cc in enumerate(s) if cc==c],[i for i,cc in enumerate(t) if cc==c]\n            if len(a)!=len(b) or any(i<j for i,j in zip(a,b)): return False\n            s,t=s.replace(c,\'\'),t.replace(c,\'\')\n        return True\n```
[]