sandeep007's blog

By sandeep007, history, 5 years ago, In English

Given the frequency of each lowercase character f(a), f(b)... f(z) and k. Compute the number of unique strings of length k having sorted characters.

k <= 10^5

Sum(f(i)) <= 10^5

Please provide Hints/Approach to solve this problem.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it