Microsoft interview question

Draw a diagram showing inserting elements into a min heap, and write code for a function that does the same.

Interview Answer

Anonymous

6 Sept 2019

I drew a series of diagrams, showing each step of elements moving around in the heap, and wrote code for a function which did the same.