Holiday Accomodation Problem

I am solving this problem, I have coded along with the video but I am not getting correct answer. Can you tell where I have made mistake? My code is : https://ide.codingblocks.com/s/247604

@gourav could you send me the question link as your code looks fine i will check it by submitting it there.

Link of the question : https://www.spoj.com/problems/HOLI/

@gourav look at line 58 and 59 of your code there should be count[neighbor] you have written count[node].

1 Like