aya1909's blog

By aya1909, history, 2 months ago, In English

Min no of +1 operations on array to have only k distinct elements

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

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

The problem is not clear. Do you have any link to the problem?

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    it was asked in one of the interviews. minimum no of times we can add +1 to any element of an array such that at the end it only has k distinct elements