Skip to content

Instantly share code, notes, and snippets.

@bobbydeveaux
bobbydeveaux / bubble.js
Created March 13, 2014 21:32
JS Bubble Sort
function main() {
for (var c = 0; c < 1000000; c++) {
bubble();
}
}
function bubble() {
var array = [3,4,1,3,5,1,92,2,4124,424,52,12];
@bobbydeveaux
bobbydeveaux / bubble.c
Created March 13, 2014 21:29
C Bubble Sort
#include <stdio.h>
void bubble_sort();
int main()
{
long c, x;
for (x = 0; x < 1000000; x++)
{
@bobbydeveaux
bobbydeveaux / bubble.php
Created March 13, 2014 21:26
PHP Bubble Sort
<?php
function main() {
for ($c=0;$c<1000000;$c++) {
bubble();
}
}
function bubble() {
$array = array(3,4,1,3,5,1,92,2,4124,424,52,12);