Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • DOLLECT
  • Others
  • Configuration
  • AI
  • BLOG
  • ABOUT
    • ABOUT
    • Perception Style

Daily Archives: October 26, 2011

insertion sort algorithm in php

<?php $numbers = array(2,3,4,5,1,8,11,0); $count = count($numbers); for($i=1;$i=0 && $numbers[$j] > $key){ $numbers[$j+1] = $numbers[$j]; $numbers[$j]= $key; $j= $j-1; } } print_r($numbers); ?>

Posted byjeffrinOctober 26, 2011Posted inUncategorizedLeave a comment on insertion sort algorithm in php
October 2011
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Sep   Nov »
TRUEANGLE, Proudly powered by WordPress.