Your question is Coding: Remove Vowels and Reverse Array. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
A USAA Mobile app utility receives a text label and an array of numeric status codes. Implement one function that removes all English vowels from the text and reverses the array in place.
Treat a, e, i, o, and u as vowels, regardless of case. Preserve every other character, including spaces, punctuation, digits, and uppercase letters. The text's relative order must remain unchanged after vowel removal. Reverse the array without creating another array proportional to its length.
Given a string text and a mutable list of integers nums, return a two-element list:
text.nums list.The reversal must be performed in place using swaps. The input string must not be modified, since Python strings are immutable.
def process_usaa_inputs(text, nums):