3 is not present in the output

In “Priority Queue STL 01” video you entered 3 in the input but it is not present in the output can u explain plz

hi @PranshuDuke sir started the for loop from 1, while taking input so only 4 elements are considered instead of 5. 3 is the last element so it is ignored. please mark the doubt as resolved if you are satisfied.

1 Like