Hamiltonian wall's potentially wrong solution got accepted

Правка en1, от Flvx, 2023-03-22 17:34:19

The problem in question is Hamiltonian wall and I wrote a solution to this that works, but I suspect that it is the wrong solution. My solution is this. The reason I suspect that my solution is incorrect is because, if in the DFS function I change the order of the two loops, I get the wrong answer(when that should not be happening). I would really appreciate if anybody could point out what is wrong with DFS function.

Thanks, if you need any clarification regarding some of the terms in my template or regarding my approach, feel free to comment down below

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Flvx 2023-03-22 18:36:55 38 Tiny change: 'down below' -> 'down below\nEDIT: I removed the lengthy template'
en2 Английский Flvx 2023-03-22 18:36:25 6 Tiny change: 'ssion/198635041). The rea' -> 'ssion/198643038). The rea'
en1 Английский Flvx 2023-03-22 17:34:19 732 Initial revision (published)