Shikharraj's blog

By Shikharraj, history, 3 weeks ago, In English

Hello CF community,

I am stuck on problem (Cost of the Array). My solution is getting wrong answer on test case 2 and I am not sure why.

My submission : 304400545

Any counterexample for the above solution?

Thanks.

Full text and comments »

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

By Shikharraj, history, 6 months ago, In English

Hello CF community,

I am stuck on problem (Connect). My solution is exceeding memory limit and I am not sure why.

My submission : 278951587

Chatgpt's Solution: 278954226

My code is similar to chatgpt's, therefore I am not able to find any reasonable differences.

Any suggestions what might be wrong with my code?

Thanks.

Full text and comments »

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