pallav12's blog

By pallav12, history, 4 years ago, In English

While trying to solve this, I made 2 submissions with only difference in using Array<Array<Int>> instead of Array<IntArray>.

  1. IntArray got AC in 546 ms
  2. Array got TLE with more then 3 sec

Can anyone please explain reason for this?

Full text and comments »

  • Vote: I like it
  • -7
  • Vote: I do not like it

By pallav12, 4 years ago, In English

Problem B of previous Div 2 (711), 2 almost same code gives different verdicts, TreeSet gives TLE, while Mutatable List got Accepted.

  1. Using TreeSet: TreeSet using frequency array gives TLE, even though treeset has Log(n) removal time.

  2. Using MutableList: Gets AC even with linear removal time.

I'm not sure what am I missing.

Full text and comments »

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

By pallav12, history, 4 years ago, In English

I don't know if there's a better way to get the python submissions for a contest, but for this I wrote a small python utility that returns a set() of handles of member who submitted a particular problem in python.

Code

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it