c++ very very easy to understand soution using hash map and vector
\n     map>mp;\n\n        int n=nums.size();\n        for(auto it:nums){\n            string temp=to_string(it);\n            int a=0;\n            for(auto x:t
\n     map<int,vector<int>>mp;\n\n        int n=nums.size();\n        for(auto it:nums){\n            string temp=to_string(it);\n            int a=0;\n            for(auto x:temp){\n                int y=x-\'0\';\n                a=a*10 + mapping[y];\n            }\n            mp[a].push_back(it);\n        }\n        vector<int>res;\n        for(auto it:mp){\n            for(auto i:it.second) res.push_back(i);\n        }\n        return res;
[]