use of assert

what is the benefit of using assert in coding contest? When I read code given in editorial, most of the time I find use of assert. Is there any specific reason behind using it or it is just good coding habit?

@anup1ma:Refer this link(read the comment posted by crucifix):

Link :

Also refer this link:

1 Like