Skip to content

Instantly share code, notes, and snippets.

View mjarpitanand's full-sized avatar
:octocat:
Focusing

arpit anand mjarpitanand

:octocat:
Focusing
  • Rely
  • Banglore
View GitHub Profile
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;
var Rely = {};
/* New variables */
var image_width = '87px';
if(product_type === "rely"){
image_width = '50px';
}
// paylater , installement, rely