C++ 100% fast
\nclass Solution {\npublic:\n    bool isTransformable(string s, string t,string s1,string t1) {\n     for (int i=9;i>=0;i--){\n         vector<int> p1,p2 ;\n   
```\nclass Solution {\npublic:\n    bool isTransformable(string s, string t,string s1,string t1) {\n     for (int i=9;i>=0;i--){\n         vector<int> p1,p2 ;\n         for (int j=0;j<s.size();j++){\n             if (s[j]-\'0\'==i) p1.push_back(j) ;\n             if (t[j]-\'0\'==i) p2.push_back(j) ;\n         }\n         if (p1.size()!=p2.size()) return false ;\n         for (int j=0;j<p1.size();j++)\n             if (p1[j]>p2[j]) return false ;\n         for (int j=0;j<s.size();j++)\n             if (s[j]-\'0\'<i) s1.push_back(s[j]) ;\n         for (int j=0;j<t.size();j++)\n             if (t[j]-\'0\'<i) t1.push_back(t[j]) ;\n         s=s1 ;t=t1 ;\n     }\n        return true ;\n    }\n};\n```
[]