3

Practicing some random code interview questions while not busy.
Find top N values with MaxHeap in JS
Didn’t get it right in 1st try. Something wrong with the replace function. Then started getting busy...
At the end of the day, still didnt have a chance to fix it.
God damn it! It’s me. A frontend developer can’t write MaxHeap in JavaScript 🤦‍♂️

Comments
Add Comment