View Single Post
Old 14-08-2009, 10:51   #18
punky
Inactive
 
Join Date: Jun 2003
Age: 44
Posts: 14,750
punky has a golden aurapunky has a golden aura
punky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aura
Re: Programming Challenges?

Quote:
Originally Posted by LemonyBrainAid View Post
Seeing as you're only using 10 random numbers, I suggest you actually create your own code for a bubble sort algorithm - http://en.wikipedia.org/wiki/Bubble_sort
I remember doing a bubble sort at university. Its very inefficient. The way I did it at university (and last night) was on usually about twice as efficient. I did it both ways for fun last night anyway. I'll post both later if people want.

Quote:
Originally Posted by heero_yuy View Post
Try coding the divisibility test without using the "%" operator.
Excellent idea for test #3.

BTW remember my post on this before: http://www.cableforum.co.uk/board/34528914-post11.html
punky is offline   Reply With Quote