virtual-labs-archive / data-structures-iiith

This repository contains sources to Data Structures Lab IIITH.
https://cse01-iiith.vlabs.ac.in/
Other
1 stars 73 forks source link

Polynomial-Operations_Simulation #231

Open jiviteshjain opened 5 years ago

jiviteshjain commented 5 years ago

Description:

The input instructions do not say that the degree entered must be unique for each term. Hence, repeated degrees are allowed. When the same degree is entered for multiple terms, the terms are not merged, while they should be. The simulator treats the terms as distinct, adds them separately and gives distinct terms in the result as well, even when they have the same degree and should be combined. This is an inefficient way of storing and adding terms.

Steps to reproduce:

Go to this page, and type polynomials with the same degree repeated multiple times. Press 'Add'.

Expected Result:

The same degree terms should be combined.

Screenshot:

Selection_007