Here are a couple of hints. The easiest way to do the sorting for this problem is to use the insertion sort algorithm you learned in CS 191. For your recursive algorithm, you’ll need three parameters: the address of the array, the starting index, and the ending index. Suppose your function has the prototype
bool isGraphical(int degrees[], int start, int end);
For the recursive call, the address of the array and the ending index don’t change, but you drop the first array element by increasing the starting index by one. Therefore, the recursive call looks like this: isGraphical(degrees, start…