Getting memory limit exceeded error

Revision en1, by LunaticPriest, 2019-08-15 20:04:53

Hello, I'm solving a basic connected components . My code is this . I tried switching to bitsets and a map instead of vectors, and also wrote my dfs iteratively in case of stack overflow. What can be the problem? Thanks!

Tags mle, #dfs, #c++

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English LunaticPriest 2019-08-15 20:04:53 348 Initial revision (published)