how do you reverse a string?
Anonymous
1. Create an array of characters with size of a given string for storing a reversed characters. 2. Convert a given string into an array of characters. 3. Loop through an array of characters from last character to first character storing a character into an array created in step 1. 4. Convert an array which hold a reversed characters into a string
Check out your Company Bowl for anonymous work chats.