Блог пользователя jaivaibhav16

Автор jaivaibhav16, история, 3 года назад, По-английски

you are given an array a containing n elements and you do the following steps repeatedly. take any two elements and add their absolute difference back to the array.

Count the number of distinct element in the array. Example: Array : [1,100] Solution: 100

  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится +30 Проголосовать: не нравится

I think the question is incomplete or I am a noob that didn't get that can you please elaborate

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

https://brainly.in/question/16813953 I think this is what you are looking for.