Need advice on debugging.
What to do when solution’s idea is right, but code fails on large test. How to find the bug?