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

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

I get this error on one test case saying "out of bounds" .I think the code works fine.

What is the reason for this error?

Thanks in Advance!

174314198

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

»
4 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

That's because you are checking i+1 so you have to iterate in for loop n-1 times..

In your case it will be n+m-1 maybe..