here is the link to question: http://www.comp.nus.edu.sg/~cs1010/p...ex48/ilink.pdf
below is my code:
friendship relations #48.cppfriendship relations #48.cpp
I have some question in regards to the b part 2.
my code is working fine when the number of input is low. However when I input more larger input data to my program it start to hangs.
here is the input:
http://www.comp.nus.edu.sg/~cs1010/p...ut/friends2.in
output:
http://www.comp.nus.edu.sg/~cs1010/p...t/friends2.out