Reverse reachable movement [mp]
Micro pattern¶
Description¶
Start at destinations and traverse transitions backward when this answers many origin-to-destination queries together.
Problems¶
- 417. Pacific Atlantic Water Flow (Graph Theory)
- 542. 01 Matrix (Google Prep)
- 802. Find Eventual Safe States (Graph Theory)