This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<assert.h> | |
#include"polynomial.h" | |
//s07490015 莊舒歆 | |
int | |
Polynomial_Print(Polynomial *poly) | |
{ | |
int cc = 0; | |
int ii; | |
if (poly == NULL) return cc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Example 1: | |
//Input: nums = [2,2,1] | |
//Output: 1 | |
//Example 2: | |
//Input: nums = [4,1,2,1,2] | |
//Output: 4 | |
//Example 3: | |
//Input: nums = [1] |