C++ 100%Fast O(N) Time + Highly Readable + Beginner Friendly Code
Plz Upvote if you like the solution\n\n\n```\nclass Solution {\npublic:\n    bool backspaceCompare(string S, string T) {\n        string S2="";\n        string 
**Plz Upvote if you like the solution**\n\n\n```\nclass Solution {\npublic:\n    bool backspaceCompare(string S, string T) {\n        string S2="";\n        string T2="";\n        \n\t\t// For first String\n        for(int i=0;i<S.size();i++){\n            if(S[i]==\'#\'){\n               if(S2.size()!=0)\n                S2.pop_back();\n                continue;\n            }\n            S2+=S[i];\n        }\n        \n\t\t// For second String\n        for(int i=0;i<T.size();i++){\n            if(T[i]==\'#\'){\n               if(T2.size()!=0)\n                T2.pop_back();\n                continue;\n            }\n            T2+=T[i];\n        }\n        \n\t\t// Ready with the answer\n        return S2==T2;\n    }\n};\n
['C', 'C++']