Hamiltonian wall's potentially wrong solution got accepted
Difference between en2 and en3, changed 38 character(s)
The problem in question is [Hamiltonian wall](https://codeforces.net/problemset/problem/1766/C) and I wrote a solution to this that works, but I suspect that it is the wrong solution. My solution is [this](https://codeforces.net/contest/1766/submission/198643038). 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

EDIT: I removed the lengthy template

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Flvx 2023-03-22 18:36:55 38 Tiny change: 'down below' -> 'down below\nEDIT: I removed the lengthy template'
en2 English Flvx 2023-03-22 18:36:25 6 Tiny change: 'ssion/198635041). The rea' -> 'ssion/198643038). The rea'
en1 English Flvx 2023-03-22 17:34:19 732 Initial revision (published)