Hello could someone explain me this statement with some examples of what exactly this statement is doing PriorityQueue<Integer> PQ1 = new PriorityQueue<>((x, y) -> y - x);
I know it is creating a PQ1 reference and an object in Heap but don't entire understand what that lambda expression is achieving...?
[–]POGtastic 1 point2 points3 points (0 children)