i am not able to figure out why i got TLE with memset in http://www.codechef.com/FEB14/problems/LCPESY .
However , on replacing
memset(..., 0 , 256) by
for(i=0;i<256;i++) i got AC .
What is the reason ?
UPDATE: I should have used 256*4 for 256 size array . this was my mistake