Jumping to zero

what is wrong in this code

hello @i_am_dekard_shaw
when u r pushing any element inside queue then only mark it visited.
otherwise this will create problem

1 Like