Reverse a directed graph

medium
Last edited: October 12, 2025