Given an array and an integer, return boolean if the array contains the integer. Only check the first half of the array.
// input:
const a = [1, 2, 3, 4, 5, 6], n = 4
// output:
false
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)
Given an array and an integer, return boolean if the array contains the integer. Only check the first half of the array.
// input:
const a = [1, 2, 3, 4, 5, 6], n = 4
// output:
false
/* output */