Skip to content

Instantly share code, notes, and snippets.

@tamimcsedu19
tamimcsedu19 / BplusTree.py
Last active August 10, 2016 10:44
B plus tree implementation
import math
class BTree():
def __init__(self,n):
self.root = None
self.n = n
def find(self,V):
C = self.root
while C['isLeaf'] == False:
i = None
#include <iostream>
#include <bits/stdc++.h>
#define maxn 1005
#define inf 1000009
using namespace std;
typedef pair<int,int> ii;
typedef pair<long long int,int> li;
vector<ii> G[maxn];
vector<int> d[maxn];
int n,k;
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
vector<ll> binary_search(ll k,ll d1,ll d2,ll a,ll b)
{
ll lo = 0,hi = k+1;
while(lo<hi)
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int n;
int A[105];
int fact[105];
int primes[50];
int dp[105][140000],dpchoosen[105][140000],dptracer[105][140000];
bool isPrime(int x)
{
@tamimcsedu19
tamimcsedu19 / 0_reuse_code.js
Created November 13, 2013 08:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console