Doubt in a testcase of Div 2C problem

Revision en1, by skpro19, 2017-09-28 09:32:09

This is the problem .

According to the accepted solution of other coders, the following test case gives a "Yes". But, shouldn't it give a "No" ?

6 1 2 1 1 1 1 1 1 6

Any help would be really appreciated.

Tags two pointers, dynamic programming

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English skpro19 2017-09-28 09:32:09 296 Initial revision (published)