Skip to content

Instantly share code, notes, and snippets.

#include <vector>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <sys/time.h>
void event(std::vector<char> &v, std::vector<unsigned long long> &sp, std::vector<unsigned long long> &ep)
{
char pre_val(0), cur_val(0);
unsigned long long pos(0);
#include <vector>
#include <algorithm>
#include <iostream>
#include <sys/time.h>
#include <cstdlib>
using namespace std;
int main()
{
@shivallan
shivallan / MinMax
Last active August 29, 2015 14:19
#include <vector>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <sys/time.h>
using namespace std;
std::pair<int, int> minimax (std::vector<long long> &v)
{
@shivallan
shivallan / NoZeros
Last active August 29, 2015 14:19
#include <vector>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <sys/time.h> // for gettimeofday()
//#include <cstdint> C++11 Standart only
using namespace std;
void nozero (std::vector<long long> &v)
{