> Leet coding requires you to memorize every operation for dozens of data structures like how to insert elements in a min heap.
I’ve done dozens of leetcode contests (4 problems every Saturday) and never had to use knowledge of the implementation of a min-heap (though I did “import heapq” a few times) to solve any of the problems.
Are you using “leet coding” to refer to technical interviews that simply ask you to implement textbook data structures (somewhat boring imo), as opposed to solving leetcode problems?
You are right, I'm referring to leet code as something every job hunter needs to solve if all the books, websites, and online courses are to be believed. min-heaps usually show up on the List Of Data Structures To Understand.
Probably no one ever asks about them but it's a crapshoot.
I’ve done dozens of leetcode contests (4 problems every Saturday) and never had to use knowledge of the implementation of a min-heap (though I did “import heapq” a few times) to solve any of the problems.
Are you using “leet coding” to refer to technical interviews that simply ask you to implement textbook data structures (somewhat boring imo), as opposed to solving leetcode problems?