This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arr = [2,45,67,89,100,103]; | |
let key = 80; | |
function binary_serch(arr , key){ | |
let low = 0; | |
let high = arr.length - 1; | |
while(low <= high){ | |
let mid = Math.floor((low+high)/2); | |
console.log(low, mid, high) | |
if(arr[mid] > key){ | |
high = mid - 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Rely = {}; | |
/* New variables */ | |
var image_width = '87px'; | |
if(product_type === "rely"){ | |
image_width = '50px'; | |
} | |
// paylater , installement, rely |
OlderNewer