it's not the best way to word the exercise, but yeah if n < 3, then the array to be returned should only have the n number of elements. If the signature = [1,2,3] and n = 2, then the return should be [1,2]
n < 3
n
signature = [1,2,3]
n = 2
[1,2]
Loading collection data...
it's not the best way to word the exercise, but yeah if
n < 3
, then the array to be returned should only have then
number of elements.If the
signature = [1,2,3]
andn = 2
, then the return should be[1,2]