Given an array and an integer, return boolean if the array contains the integer. Only check the second half of the array.

// input:
const a = [1, 2, 3, 4, 5, 6], n = 3

// output:
false
Loading...
/* output */

Next