vivekiitian's blog

By vivekiitian, history, 6 years ago, In English

I tried to solve this problem. Refer to my solution 1 and 2. The only difference between those solutions is datatype int is replaced by Integer and solution got accepted (runtime got reduced from more than 1s to 140 ms). Any idea why is it happening?

Full text and comments »

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