Has anyone solved any of these two problems using Dominator Tree?
https://cses.fi/problemset/task/1703
https://cses.fi/problemset/task/1203
Unfortunately my code is failing on a couple tests.
I'd really appreciate it if anyone provides an accepted code using Dominator Tree.