bansalarpan4's blog

By bansalarpan4, history, 21 month(s) ago, In English

does anyone have any viable explanation for the following submission failing on test case 3 Submission — 297549624 ques 2042B - Game with Colored Marbles

edit : actually i found the error , never mind.

  • Vote: I like it
  • -1
  • Vote: I do not like it

| Write comment?
»
21 month(s) ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

change size of vector a to 1001

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Your modified code that got accepted

You were using 0 based indexing at one place and 1 based indexing at another place