← 返回 capitalone 的题目列表String Array Transformation
类型:online_judge
capitalone
Given a list of strings, reverse those with odd lengths, and convert those with even lengths to lowercase.
Input:
A list of strings arr, where each element is a string
Output:
A list of transformed strings
Example:
Input: ['Abc', 'DEFG', 'hijkl']
Output: ['cbA', 'defg', 'lkjih']
Constraints:
Each string has a positive length
The list has a positive length
Example
Input
['Abc', 'DEFG', 'hijkl']