Блог пользователя Shikharraj

Автор Shikharraj, история, 20 месяцев назад, По-английски

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.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

Автор Shikharraj, история, 2 года назад, По-английски

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.

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится