whats wrong in my code plzz comment it pout
Https://ide.codingblocks.com/s/259358
input is wrong it has one less -1
correct input
3 4 5 -1 6 -1 -1 5 1 -1 -1 -1 -1
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course