Ad
  • Custom User Avatar

    I have issues with this problem. Test cases fail on this array:
    {1,2,3,4,3,2,1,1,100,50,-51,1,1,1,2,3,4,5,6,20,10,30,10,10,15,35,8,8,8,0,0,8}
    My solution returned -1, but the test expected 1, which is impossible since there is no way that the numbers on the right side after first position will evaluate to left.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    what is the actual input of this ? records like:
    name: "John",
    points: 100,

    or should it be typed in from command line. i completly dont know what input to put inside calling the function. Does the Python version matter?