Holes in text

Please help and let me know, why my code is generating “wrong Answer”. PFB the link

Well, there’s no need for

printf("noh: %d\n", noh);

You only need to output the number of holes. You must have seen the sample output in the question. Change your output to match that , in other words just change the above statement to

printf("%d\n", noh);
1 Like