Skip to content

Instantly share code, notes, and snippets.

@SrikanthKrish
SrikanthKrish / sort1mb.cpp
Created November 23, 2012 04:23 — forked from preshing/sort1mb.cpp
Sort one million 8-digit numbers in 1MB RAM
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
typedef unsigned int u32;
typedef unsigned long long u64;
//-------------------------------------------------------------------------
// WorkArea
//-------------------------------------------------------------------------