educative.io

Educative

newQueue solution class leaks

Just wanted to point out that newQueue class is leaking mainStack and tempStack because they are not being deleted when the class is destructed!


Type your question above this line.

Course: https://www.educative.io/collection/5642554087309312/5646276079124480
Lesson: https://www.educative.io/collection/page/5642554087309312/5646276079124480/5673461879930880