Implement the following test cases.
1. Check if a heap is built correctly after calling build_heap()
2. Check if an IndexError is raised when inserting into a heap that’s already full.
3. Check if a KeyError is raised when extract_max() is called on an empty heap
4. Check if an object of pqueue is still a valid heap after the following series of insert and
extract_max() calls on the same pqueue object.
4 freelancer chào giá trung bình₹813 cho công việc này
Hi! I am an expert in Java, Python and C++. I would be easily able to help you regarding any task related to them. Kindly message me to discuss more details. Thank you!
Hello Dear, I am a software developer, having 3+ years of field experience with different programming languages like python, C#, C++ and C. I can write you this code in 3/4 hours. Looking forward for complete the bid.