Simple 0ms || (100%) c++ solution
\n\t\tclass Solution {\n\t\tpublic:\n\t\tstring convertToBase7(int num) {\n        if(num==0)\n            return "0";\n        int res,n1=num;\n        string 
\n\t\tclass Solution {\n\t\tpublic:\n\t\tstring convertToBase7(int num) {\n        if(num==0)\n            return "0";\n        int res,n1=num;\n        string s1="";\n\t\tvector<int> v1;\n\t\t\n        if(num<0)\n        {\n        num*=-1;\n        s1="-";\n        }\n            \n        while(num)\n        {\n            res=num%7;\n            v1.push_back(res);\n            num/=7;\n        }\n        reverse(v1.begin(),v1.end());\n            \n        for(int i=0;i<v1.size();i++)\n            s1=s1+to_string(v1[i]);\n\n        return s1;        \n      }\n    };
['C++']