Find the numbers containing a digit in a given array and reverse the digits of the
numbers found.
Note: Use the maximum of digits present in the array for reversing
Example 1:
Size of input array: 6 Input array: 8, 10, 17, 18, 20,1
Digit: 1
Output: 8,1,71,81,200,100
(Note: 10 is rotated to 01 which is 1 and 1 is rotated to 10)
Example 2
Size of input array: 5 Input array: 0,-5,1,55,7
Digit: 5
Output: 0,-50,1,55,7
(Note: -5 is rotated as -50 because maximum digits in the array is 2 (55)
Answers
Answered by
0
Answer:
im kevein
and hamare me computer band ho gya hai so
i dont know
Similar questions