Akshima Sharmakeycomputereducation.hashnode.dev·Feb 6, 2024Reverse the array - 450DSA Cracker SolutionReverse a String Given a String S , print the reverse of the string as output. class Solution { public: string revStr(string S) { for(int i = 0, j= S.length()-1; i<j ;i++,j--) { swap(S[i], S[j]); } re...20 likes450 DSA Series450dsaAdd a thoughtful commentNo comments yetBe the first to start the conversation.