1/5 Test Cases Passed
You need to earn 2 or 3 stars in order to submit.
1/5 Test Cases Passed
You need atleast 2 stars to grade your answer.
Test Cases (0/5)
-
nToLast( [5,2,3,6,4,9,7], 3 ) to return 4
-
nToLast( [1,2], 3 ) to return null
-
nToLast( [5,2,3,6,4,9,7], 4 ) to return 6
-
nToLast( [5,2,3,6,4,9,7], 5 ) to return 3
-
nToLast( [1,2,3,5,5,7,10], 1 ) to return 10