Skip to content

Instantly share code, notes, and snippets.

View aryan-gupta's full-sized avatar
👾
what even is computational entropy?

Aryan Gupta aryan-gupta

👾
what even is computational entropy?
View GitHub Profile
@aryan-gupta
aryan-gupta / NodeAccumulationUsingTrees.cpp
Last active April 25, 2017 00:11
This algorithm creates combinations of different lengths using a tree.
#include <vector>
#include <iostream>
using namespace std;
typedef vector<int> IV;
IV master; // master vector of ints (or whatever)
void func(int start, int depth, const int &fDepth, IV vec, vector<IV> &pos) {