"Given the number of nodes and the number of edges connecting these nodes, arrange these edges such that maximum number of nodes are strongly connected. Return the number of nodes that could be strongly connected."
I am wondering if is there a formula for this? if not, how could I solve this problem? any help would be appreciated!