Given a string reverse only the alphabets while leaving special characters in the same place.
Anonymous
Step1:Split the string into an array of characters Step2:Create three arrays one marking the indexes as 1 for alphabet and 0 for spec. chars. Another array with all alphabets and one more array containing spec. chars Step 3: reverse the array with alphabets Step 4:Now compile the output with the index ,spec.char and reverse alphaet arrays
Check out your Company Bowl for anonymous work chats.