Your question is Reverse a Number in an 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 Paytm QA data-quality check receives an array of integer transaction references. Reverse the digits of every number in the array, preserving the order of the elements. Implement the transformation using arithmetic operations rather than converting numbers to strings.
Negative numbers must remain negative, and leading zeroes created by reversal are discarded because the result is an integer. For example, reversing 1200 produces 21, while reversing -405 produces -504.
Implement reverse_numbers(nums), where nums is a list of integers. Modify nums in place and return the same list after replacing each element with its digit-reversed value.
def reverse_numbers(nums):