where i m going wrong
passes sample test case but fails in final
where i m going wrong
passes sample test case but fails in final
hello @hg11110000
dont print distance like this (becuase map may not have all entries).
iterate from i= 1to n .
if i==src then continue
else if dist.count(i) ==0 or dist[i]==INT_MAX then print -1
else
print dist[i]