Can't understand 1 test case


  • 0
    R

    For the c++ implementation, the function has 3 parameters: A[], n, target. However, when testing my solution I saw a "timelimitexceeded" error for an input : [0], 1. How come a test case with 2 parameters?


  • 0
    Z

    Obviously the size of this array is the parameter/argument "n", which may be subtle when OJ tells you about its input. It's just not shown by this OJ.
    In terms of this error message, I suggest you check whether there's an infinite loop.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.