Custom sort vector of pair based on their values
hope this fix your issue You can think of this problem as a graph problem.
Each of your pairs represents an edge in a directed graph. For example, the
pair (0, 2) means "there's an edge from node 0 to node 2," and the pair (2,
5) means "there's an ed
Date : November 24 2020, 09:00 AM , By : Santosh