• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
July 04, 2022 |910 Views
Print reverse string after removing vowels
  Share   Like
Description
Discussion

A simple solution is to first reverse the string, then traverse the reversed string and remove vowels. An efficient solution is to do both tasks in one traversal. Create an empty string r and traverse the original string s and assign the value to the string r. Check whether, at that index, the original string contains a consonant or not. If yes then print the element at that index from string r. Print reverse string after removing vowels : https://www.geeksforgeeks.org/print-reverse-string-removing-vowels/

Read More