reneargento/algorithms-sedgewick-wayne

Parent K value if pq[] starts from 0

chopragaurav opened this issue · 1 comments

Hi,

For exercise 10 of chapter 2, section 4, I think that Parent value should be k if we are using pq[0].

Thanks

We don't need to handle that case separately since with integer division (-1) / 2 is equal to zero.