← Back to topics
Topic

z-musicians [4th test]

N
Nocturne
I get an error saying 'Invalid memory reference (memory limit exceeded)' on the 4th test. What may be the problem?
Source code link : http://www.z-trening.com/new/www/html/submit.php?submit=7100036555&subm_code=1
p
picsel
DFS uses too much memory. Use BFS