Skip to content

Instantly share code, notes, and snippets.

View RodrigoDornelles's full-sized avatar
:bowtie:
IEEE 754

RodrigoDornelles

:bowtie:
IEEE 754
View GitHub Profile
@RodrigoDornelles
RodrigoDornelles / bubble.hack
Last active December 9, 2020 00:20 — forked from PedroEscudero/bubble.php
Bubble script for testing speed of Hack
function bubble_sort(dict $array): string {
$start = microtime(true);
do
{
$sw = false;
for($i = 0, $size = count($array) - 1; $i < $size; $i++)
{
if( $array[$i] > $array[$i + 1] )
{
$aux = $array[$i + 1];