While solving a question on leetcode, I got wrong answer using approach 2 while converting heap elements to a list. Rest of the approach is same. Can someone please tell me what