Sir, I did not understand why we have done g.insert(36,36).an edge will be like (35,36) or (33,36) .There is no dice throw which will give me 0 .Minimum move is 1 so how 36,36 is possible?
Doubt in the video
hello @
it has nothing to with problem logic.
since we are implementing graph using map , it will not have all the vertices inside map to make sure that all vertices are there in map as key.
we are inserting 36,36.
if u use vector to implement grapch then in that case u will not need (36,36)