SacredSpear's blog

By SacredSpear, history, 3 days ago, In English

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

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it