Can you please tell me why am I getting segmentation fault in my code https://ide.codingblocks.com/s/300356
@sshreya2912, Indexing of input is 1-based, but your graph’s is 0-based.