Minimum Reversal
Examples
Example 1:
Input: gNodes = 4, gFrom = [1, 2, 3], gTo = [4, 4, 4]
Output: 2
Explanation:
Example 2:
Input: gNodes = 4, gFrom = [1, 1, 3], gTo = [2, 3, 4]
Output: 0
Explanation:
Example 3:
Input: gNodes = 4, gFrom = [2, 2, 4], gTo = [1, 3, 3]
Output: 1
Explanation: