Has anyone had issues while using PriorityQueues during an Amazon interview?
For example- for the K closest points to origin is it ok if I use a PriorityQueue? Would the interviewer had any issue since it is a very small solution?
https://leetcode.com/problems/k-closest-points-to-origin/discuss/220235/Java-Three-solutions-to-this-classical-K-th-problem.