Skip to content

Instantly share code, notes, and snippets.

View jose-villegas's full-sized avatar

José Villegas jose-villegas

View GitHub Profile
#include <iostream>
#include <algorithm>
#include <tuple>
#include <vector>
#include <numeric>
using namespace std;
bool lessThan(pair<int, int> const &a, pair<int, int> const &b) { return a.first < b.first; }
int calculateCost(vector <pair<int, int> > deposits, vector<int> collectorsPos, int smallestCost)
#include <iostream>
#include <vector>
using namespace std;
int factorial(int x);
void combn(int n, int m, vector<vector<int> > *result);
vector<int> currentCombination;
vector<int> startingFormat;