raggarwalg01's blog

By raggarwalg01, 19 months ago, In English

The test cases for yesterday's CodeChef Starters 59, Problem Maximum Subarray, were so poor that the non-ideal solution was awarded AC.

I have all I need, and the code is accepted, but it does not work on the following test case

1
5
-10 -10 10 -10 -10
5
10 10 10 10 10

The correct output should be 50, the non-ideal code generates a result of 60.

Please make test cases better, Codechef.

Link to Problem -> https://www.codechef.com/submit/MAXSUBARR

Link to Ideal AC Code-> https://www.codechef.com/viewsolution/76176198

Link to Non-Ideal AC Code -> https://www.codechef.com/viewsolution/76175855

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

»
19 months ago, # |
  Vote: I like it +1 Vote: I do not like it

Always tag CodeChef_admin and some other members.