Does anyone know how to organize a list of integers from greatest to least?

Printable View

- 08-17-2012, 09:47 PMnatdizzleOrganizing a list of integers from greatest to least
Does anyone know how to organize a list of integers from greatest to least?

- 08-17-2012, 10:46 PMFubarableRe: Organizing a list of integers from greatest to least
Sure, most of us can whip this up quite easily, but our doing your work for you wouldn't help you, and neither would it be worth our or your while to have us try to write a full tutorial on this subject when others on sorting are already out there, better written than anything we could do. If you seriously need our help, then seriously put in some effort in asking your question, and tell us exactly what confuses you and where you're stuck.

- 08-17-2012, 11:06 PMDanieldccRe: Organizing a list of integers from greatest to least
lol at question....but I'm trying to start up java again so I wrote something quickly for you......this is a bad algorithm for sorting..it's brute force, similar to insertion sort i think....

Code:`//... moderator edit, code deleted`

- 08-17-2012, 11:55 PMNormRe: Organizing a list of integers from greatest to least
@Danieldcc Please don't do the OPs homework by spoonfeeding him code.

Read this: The Problem with Spoon-feeding