Skip to content

Instantly share code, notes, and snippets.

View angelorohit's full-sized avatar

Angelo Rohit angelorohit

View GitHub Profile
@angelorohit
angelorohit / heapsortcpp
Created June 25, 2013 14:32
Heap Sort in C++
#include <iostream>
#include <vector>
using namespace std;
void Swap(std::vector<int>& vHeap, std::vector<int>::size_type i, std::vector<int>::size_type j)
{
if(i == j)
return;