Skip to content

Instantly share code, notes, and snippets.

@hyperair
hyperair / suniq.cpp
Last active December 16, 2015 20:09 — forked from alisaifee/suniq.cpp
Rewritten sort | uniq -c | sort -n[r] that works faster than the original.
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <unordered_map>
#include <map>
#include <iterator>
template <typename Iter>
void print (Iter i, Iter end)