[Help] Memory limit exceeded

Правка en1, от take_me_back, 2019-12-27 09:59:17

Hi guys, Why my implementation to problem https://codeforces.net/contest/1278/problem/D gives MLE, First I though it is because of recursive DFS. But even after changing DFS to iterative it is still giving MLE.Can anyone please help me with it. My solution links

https://pastebin.com/T5eqyXYS (Recursive) https://pastebin.com/KczMMcud (Iterative)

Теги #memory, #dfs

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский take_me_back 2019-12-27 10:00:26 3 (published)
en1 Английский take_me_back 2019-12-27 09:59:17 385 Initial revision (saved to drafts)