Possible solutions to this question ?

Правка en1, от guesshere, 2023-09-22 16:41:58

You are given an array of positive numbers. You can can convert any element (i) to any value in range [i/2, i-1] or [i+1, 2*i] in one step. Mind minimum steps needed to make the all elements equal.

1 <= n <= 1e5

Each element in range [1,1e5]

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский guesshere 2023-09-22 16:41:58 284 Initial revision (published)