Polynomial operations in the realization of the process, through the list to find the polynomial of each, and two lists of nodes perform the appropriate action to implement operations.
在实现多项式的运算过程中,通过链表来找到多项式的每一项,并对两个链表的节点执行相应操作来实现运算。
According to the structural characteristics of polynomial, linear linked list to achieve the polynomial are added storage nodes of the coefficient and index, constructed the corresponding polynomial.
根据多项式的结构特点,利用线性链表来实现多项式相加,结点中存放各项的系数和指数,构造相应的多项式。
For the polynomial, which consists of coefficients, the unknown element and the index composition, given that it includes more properties, so the list is a very good choice.
对于多项式,它由系数,未知元以及指数组成,考虑到它包括的属性较多,故链表是一种非常不错的选择。
应用推荐