| | |
Selection Sort using recursion
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jul 2008
Posts: 12
Reputation:
Solved Threads: 1
def selsort(l):
if len(l)<=1:
return l
else:
for i in range(len(l)):
selsort(l[1:])Hey guys, this is what I have so far. I have trouble understanding recursion. Anyone know how to use it to do selection sort?
![]() |
Similar Threads
- help me : selection sorting read file (C++)
- Please Help (C++)
- Recursion II (C++)
- Recursion (C++)
Other Threads in the Python Forum
- Previous Thread: alphabetic phone convert to numeric
- Next Thread: Joining an Open source project
Views: 1117 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Python
accessdenied address ansi backend beginner changecolor class code conversion coordinates copy curves customdialog dan08 dictionary directory dynamic edit examples excel feet file float font format ftp function generator getvalue gui halp homework i/o images import info input ip java line linux list lists loop mouse mysql newb number numbers output panel parsing path port prime print program programming projects py2exe pygame pyqt python queue random rational recursion recursive schedule screensaverloopinactive scrolledtext searchingfile server ssh stamp statictext string strings sudokusolver table terminal text thread threading time tkinter tlapse tuple tutorial type ubuntu unicode url urllib urllib2 variable whileloop windows write wxpython





