why is my code not working for the div 2 round 1011 B ?

Revision en1, by SacredSpear, 2025-03-22 23:52:52

my logic is first i will check if the entire vector is of 0s ,if yes then i just output 1 to n but otherwise i check if there are zeros on the left of the array and right of the array and perform operations accordingly ,u can easily see from my code

311920616

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English SacredSpear 2025-03-22 23:52:52 335 Initial revision (published)