Discussion:
Two questions
(too old to reply)
Karun
2004-11-08 13:22:01 UTC
Permalink
Hi

1. for the toString function, ask then is it
necessary to print the polynomial from the highest
degree to the lowest degree?

2. Do we need to handle array type Polynomials

Thanks
Karun
Igor Ivkovic
2004-11-08 18:01:48 UTC
Permalink
Post by Karun
1. for the toString function, ask then is it
necessary to print the polynomial from the highest
degree to the lowest degree?
No, it is not necessary since it was not specified and as far as I can
tell in the P3 AE we can handle both ascending and descending order.
Post by Karun
2. Do we need to handle array type Polynomials
No, you are only responsible for dealing with PolynomialAsLinkedList. I
mentioned PolynomialAsArray as a hint to help your run-time analysis.

Igor
Kenneth Wang
2004-11-10 21:30:06 UTC
Permalink
I understand that we are onlyresponsible for dealing with
PolynomialAsLinkedList, but do we also have to check if "p" is an array
type?
Post by Igor Ivkovic
Post by Karun
1. for the toString function, ask then is it
necessary to print the polynomial from the highest
degree to the lowest degree?
No, it is not necessary since it was not specified and as far as I can
tell in the P3 AE we can handle both ascending and descending order.
Post by Karun
2. Do we need to handle array type Polynomials
No, you are only responsible for dealing with PolynomialAsLinkedList. I
mentioned PolynomialAsArray as a hint to help your run-time analysis.
Igor
Igor Ivkovic
2004-11-11 02:10:09 UTC
Permalink
Post by Kenneth Wang
I understand that we are onlyresponsible for dealing with
PolynomialAsLinkedList, but do we also have to check if "p" is an array
type?
No, you do not have to check if it is of array type.

Igor
Post by Kenneth Wang
Post by Igor Ivkovic
Post by Karun
1. for the toString function, ask then is it
necessary to print the polynomial from the highest
degree to the lowest degree?
No, it is not necessary since it was not specified and as far as I can
tell in the P3 AE we can handle both ascending and descending order.
Post by Karun
2. Do we need to handle array type Polynomials
No, you are only responsible for dealing with PolynomialAsLinkedList. I
mentioned PolynomialAsArray as a hint to help your run-time analysis.
Igor
Continue reading on narkive:
Loading...