Fails test case 3 and I can't seem to find the reason. Have submitted the same code in gfg and leetcode where it got accepted
💡-print-all-nodes-at-distance-k-from-a-given-node
Arpan_Goswami
(Arpan Goswami)
July 29, 2020, 6:21am
#1
vatsal38
(vatsal agarwal)
July 29, 2020, 6:22am
#2
@Arpan_Goswami
if v.size()==0 print 0
Arpan_Goswami
(Arpan Goswami)
July 29, 2020, 6:36am
#3
Ohh didn’t notice thanks