Here is what I have so far.
My Prof. said this :
>> Your following code finds the index of the largest coefficient in the array.
>> It should find the largest index i with a non-zero coefficients[i] value.
>>
You should change the logic to do that. (Start with degree = 0.)
i changed it to degree = 0 as you can see.
Is that all I had to change? My code is looping through the coefficients array and assigned "degree" to the largest value of the coefficients array index right?
Also, is the check of the non-zero coefficient correct? Thank you.