Need help for a question.

Revision en1, by hardy_9795, 2020-08-12 20:31:41

We have n blogs with each blog having a writer w[i] and number of likes l[i].We need to arrange the blogs in such a manner that the total happiness is maximized. Happiness of a blog is defined as number of likes of that multiplied by number of different writers that have occurred upto the given blog. We need the value of maximum happiness.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English hardy_9795 2020-08-12 20:32:23 7 Tiny change: 'the total happiness' -> 'the total sum of happiness'
en1 English hardy_9795 2020-08-12 20:31:41 367 Initial revision (published)