jaivaibhav16's blog

By jaivaibhav16, history, 3 years ago, In English

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

  • Vote: I like it
  • -6
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it +30 Vote: I do not like it

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

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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