Skip to content

Instantly share code, notes, and snippets.

View khondokerfahad's full-sized avatar
🎯
Focusing

khondokerfahad

🎯
Focusing
View GitHub Profile
@khondokerfahad
khondokerfahad / templates
Created September 30, 2020 07:44
Competitive
#include<bits/stdc++.h>
#include <iostream>
#include <sstream>
#include <vector>
#include <iterator>
#include <map>
#include <list>
#include <set>
#include <stack>
#include <queue>
@khondokerfahad
khondokerfahad / Binary-search function(Own build)
Last active January 31, 2020 19:21
Binary search without build-in functioon
#include<bits/stdc++.h>
using namespace std;
bool bnry_srch(int f , int *v , int n){
int low = 0, high = n;
while(low<=high){
int c = (low+high)/2;
if(v[c]==f)
return true;
if(v[c]>f)
high = c-1;