Мусчина
Chechnya, Russian Federation
 
 

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Currently Offline
Recent Activity
1,209 hrs on record
last played on 24 Mar
30 hrs on record
last played on 23 Mar
0.7 hrs on record
last played on 15 Mar
Vatastyle 23 Feb @ 5:10am 
Мусчина
Chechnya, Russian Federation
Vatastyle 22 Dec, 2024 @ 2:14pm 
let arrays = [1,2,3,4,5,6,7,8,9,10]
let target = 4

function binary(arr, target) {
let left = 0
let right = arr.length - 1

while(left <= right) {
const mid = Math.floor((left + right) / 2)

if(arr[mid] == target) {
return mid
}
if(arr[mid] < target){
left = mid + 1

}
else {
right = mid - 1
}
}
return -1
}
const result = binary(arrays, target)
console.log(result)
Мусчина 16 Sep, 2024 @ 4:33am 
display: flex;
justify-content: space-between;
Śnieżny Kockodan 13 Jul, 2024 @ 7:34am 
-Rep worst player this game ever seen
Śnieżny Kockodan 13 Jul, 2024 @ 7:34am 
-Rep worst player this game ever seen
Śnieżny Kockodan 13 Jul, 2024 @ 7:34am 
-Rep worst player this game ever seen