Given an integer array degrees of length degrees.
Return true if such a graph exists, or false otherwise.
Note: A simple graph is an undirected graph with no self loops and no multiple edges between any pair of vertices.
Constraints:
degrees.length
degrees[i]
Given an integer array degrees of length degrees.
Return true if such a graph exists, or false otherwise.
Note: A simple graph is an undirected graph with no self loops and no multiple edges between any pair of vertices.
Constraints:
degrees.length
degrees[i]