Help Needed!!

Правка en3, от aloobukhara, 2019-06-10 14:52:52

we have an array of size n. we have to maximize a variable "sum" which is initialized to 0 . for this we can do the following operation as many time as we can (including 0). operation : consider any subsequence of size m<=n . update sum value by the total sum of subsequence and update value of each element of the subsequence by multiplying it by -1. M is given to us. We have to take subsequence ofsize exactly m Thanks in advance !! array elemets can be in between -1000000000 to 1000000000

Теги algorithms

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский aloobukhara 2019-06-10 14:52:52 64
en2 Английский aloobukhara 2019-06-10 14:27:56 59
en1 Английский aloobukhara 2019-06-10 14:26:55 388 Initial revision (published)