Rating changes for the last round are temporarily rolled back. They will be returned soon. ×

jaivaibhav16's blog

By jaivaibhav16, history, 6 weeks 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

»
6 weeks 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

»
6 weeks 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.

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by jaivaibhav16 (previous revision, new revision, compare).