Help in a question

Revision en1, by dunjen_master, 2019-09-13 23:47:53

You are given an array consisting of N elements. You can perform two operations any no. of times. 1. Make any even element E = E/2. and 2. Make any odd element E = 2E.

You have to minimize the maximum absolute difference between any two elements

For ex- N=2 {1,2}

We can make 2--> 2/2 = 1 Thus answer = 0

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English dunjen_master 2019-09-13 23:47:53 356 Initial revision (published)