Question: I am not sure what I am doing wrong. I think it is all passing except for the last part of the code def dekete_top_k(self,j):

I am not sure what I am doing wrong. I think it is all passing except for the last part of the code "def dekete_top_k(self,j):" If you could help me with that that would be great. I included the previous code and test cells (can't edit) for reference.

I am not sure what I am doing wrong. I think itis all passing except for the last part of the code "defdekete_top_k(self,j):" If you could help me with that that would be great.I included the previous code and test cells (can't edit) for reference.Initial data structure: A=[10,9,8,4,0]H=[1,4,5,6,15,22,31,7]Test1:Insertingelement2 A=[10,9,8,4,2]H=[0,1,5,4,15,22,31,7,6]Test2:Insertingelement11A=[10,9,8,4,11]H=[2,0,5,4,1,22,31,7,6,15] AssertionError Traceback (most recent call last) ipython-input-17-4dc7c72648d8>in module> 24 print ( \tA=;,hA) 25 print ('\t H=, , h.H)

Initial data structure: A=[10,9,8,4,0]H=[1,4,5,6,15,22,31,7]Test1:Insertingelement2 A=[10,9,8,4,2]H=[0,1,5,4,15,22,31,7,6]Test2:Insertingelement11A=[10,9,8,4,11]H=[2,0,5,4,1,22,31,7,6,15] AssertionError Traceback (most recent call last) ipython-input-17-4dc7c72648d8> in module> 24 print ( \tA=;,hA) 25 print ('\t H=, , h.H) 26 assert h.A ==[11,10,9,8,4] 27 assert h.H.min_element ()==2 28 h.satisfies_assertions() AssertionError

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!