maximising the frequency of mode.

56 Views Asked by At

I have 4 numbers 5,5,3,1. Now I have the number 5, which I can distribute in any manner to these 4 numbers. Now I have to find the maximum possible frequency of the mode from all the newly formed sequences. For instance I can form 5,5,5,1.(give 2 to 3) Note that all the numbers might not be distributed.

What is the general approach of such problem? Note that I just the maximum possible frequency of the sequence.