Help on CSES Problem!

Правка en1, от Muhammad_mhs, 2020-09-17 18:10:53

Stick Lengths In this problem , sort the array and I have to make all sticks size equal to median index value of the array then answer should be the minimum. But why I choose median index. Can anyone explain, Please ? Thanks in advance.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Muhammad_mhs 2020-09-17 18:12:52 42
en1 Английский Muhammad_mhs 2020-09-17 18:10:53 299 Initial revision (published)