ashktchm's blog

By ashktchm, history, 3 years ago, In English

I read somewhere that using collections.Counter is faster for getting the count of the elements in an array. Is this true?

If yes, can someone tell me why did 233131667 TLE while 233285899 using inbuild python dictionary get Accepted? I tried using collections.defaultdict which also gave TLE.

Apologies if I am missing something.

Full text and comments »

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