Open adamwadelewis opened 11 months ago
Problem 1: OK.
Problem 2: You have a list class. Better to use that making the bag do something it doesn't need to do. (-8 pts)
Problem 3: OK.
Problem 4: Consider use of iterators and how that might have made your life easier. -5 pts.
One other comment about Problem 4: Look at how you duplicated code between insert() and priorityInsert. Would have been better to have considered how to call insert from inside of priorityInsert
insert()
priorityInsert
insert
Problem 1: OK.
Problem 2: You have a list class. Better to use that making the bag do something it doesn't need to do. (-8 pts)
Problem 3: OK.
Problem 4: Consider use of iterators and how that might have made your life easier. -5 pts.