SecondLargestElement Algorithm returns wrong value
Ankush263 opened this issue · comments
Ankush Banik commented
for the array [-1, -2, -3, -4] it returns 0
Lars Müller commented
I assume the algorithm just wasn't intended to support negative values as it uses 0
as a default min value.
Ankush Banik commented
Should I make a PR
Lars Müller commented
Should I make a PR
I've already fixed it, see the linked PR.