Data Structures and Algorithms
with Object-Oriented Design Patterns in C# |
Generate the terms of the result in order by putting intermediate product terms into a priority queue. That is, use the priority queue to group terms with the same exponent. Hint: See also Project .