Question: Odd - Even - Transform Problem works on an array of integers ( both positive, negative and zero ) , by taking in a value
OddEvenTransform Problem works on an array of integers both positive, negative and zero by taking in a value a whole number that specifies the number of times the transformation has to be applied
On an array of integers, the transformation that n number of times: needs to to accur
Adds three to each add integer.
Subtracts three from each even Integer
Example:
means, the array with integers has to undergo transformation times.
So the result is
Language
Function Description
Complete the function addEven Transform in the
editor below
oddEven Transform has the following parameters:
arr: an array of integers
ichspe Whany transforma an integer which specifies how many times to perform transformation
The function needs to return the array after the transformation is complete...
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
