Key Insight: Infinity - 1 === Infinity — no special case needed for Infinity depth.
Practice this in a timed sprint →
5 free questions, no signup required