Doubt in my code

Why some of my testcases are not passing. What is the problem in my code ?

hello @yashsharma4304
check now->

u were mixing i==0 condition with other positions. Ok now I see where the problem was. Thanks

Now also it is not passing some testcases ?

@yashsharma4304
it is passing

try to copy again->

1 Like

yeah… I have not changed the datatype from int to long long. Now its passing