insurgentes's blog

By insurgentes, history, 6 months ago, In English

Hi all, what are some good algorithms/concepts to learn to get better at graph problems? I can usually tackle most tree problems since most of them rely on some form of modified DFS/BFS, but struggle with anything beyond that.

Read more »

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

By insurgentes, history, 6 months ago, In English

Hi all, I'm getting a runtime error while trying to submit my solution for 1588C - Game with Stones which I cannot replicate on the custom invocation tab or locally in vscode. Any help debugging this would be very appreciated.

My code submission: 135533102

UPDATE: I was able to edit the logic for modifying the map to get A/C but unable to see what the issue was. New submission- 135560689

Read more »

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

By insurgentes, history, 10 months ago, In English

I'm getting a runtime error when i submit my code using C++ 17, but the same code is accepted for C++ 17 64 bit. I usually make all my submissions with C++17, so I'm interested in figuring out which line is causing runtime error.

Problem: https://codeforces.com/contest/1538/problem/E

RTE (C++17): https://codeforces.com/contest/1538/submission/123976702

Accepted (C++17 64bit): https://codeforces.com/contest/1538/submission/123976695

Read more »

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