Given an array (A) of N elements of positive integers .
Then find minimum absolute difference between two numbers of an array .
We can perform following operations on elements of array any number of times

if A[i] is EVEN ,then we can replace it by A[i]/2

if A[i] is ODD,then we can replace it by 2*A[i]
can any one explain @karangreat234 how to solve this kind of problems
This is problem from Hacker earth contest which was ended now .