Shows wrong answer but test case is corect


please help me in debuggnh it

@Krishna-Singh-2678805765519156,
I don’t think it even runs on sample correctly.

how do i change it? on my local ide in sublime it gives ryt

@Krishna-Singh-2678805765519156,
You are not initialising arr before using. It may have garbage values.

1 Like