Please read the new rule regarding the restriction on the use of AI tools. ×

Strange Behaviour Noticed
Difference between en1 and en2, changed 25 character(s)
Hi Everyone,↵

<p>I would like to ask all of you about the cause for this kind of strange behaviour of my code with respect to little change.</p>↵
<p>↵
I have made submission to the following problem <a href="https://www.hackerearth.com/january-clash-16/algorithm/rebuild/description/#c45102"> Rebuild (January Clash Contest)</a>. I have made the following submission at first <a href="https://www.hackerearth.com/january-clash-16/algorithm/rebuild/description/#c45102">link here</a> and got following result.↵
</p>↵
<p>↵
![ ](<img src="https://s3.amazonaws.com/hr-challenge-images/3194/1452962788-dac18a68ab-rebuild1.JPG" title="rebuild1.JPG" />↵
)↵
</p>↵
<p>↵
I thought and checked for the possible reason of segmentation fault but could n't find one as everything was correct according to me then suddenly i made one small change and woohhhh amazingly it worked and the change was ..↵
</p>↵
<p>↵
![ ](<img src="https://s3.amazonaws.com/hr-challenge-images/3194/1452963067-9d59553260-image3.JPG" title="image3.JPG" />)
</p>↵
<p>↵
![ ](<img src="https://s3.amazonaws.com/hr-challenge-images/3194/1452963097-4d397d5cff-rebuild2.JPG" title="rebuild2.JPG" />) ↵
</p>↵

<p> I am still not convinced with whatever happened to me. After all what possible difference 
that an "equal to" can cause in this case. Please explain ? </p>

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English NeverSayNever 2016-01-16 19:55:48 25
en1 English NeverSayNever 2016-01-16 19:54:05 1353 Initial revision (published)