Блог пользователя SacredSpear

Автор SacredSpear, история, 3 дня назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится