jrrain's blog

By jrrain, history, 7 years ago, In English

I was solving this. My approach uses a queue to store k elements.A map and set are are also used in order to get most frequent lexicographically smallest string. But if I am using set to find lexicographically smallest frequent string it is getting tle. Please suggest some optimisations!.Here's my code

Full text and comments »

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