-
Notifications
You must be signed in to change notification settings - Fork 380
Open
Description
- don't call your variables
list,listis a build in type and you loose the constructor - in bubble sort add a test if done a swap in a pass, if not => data is sorted
- no need to return the list because a list is a mutable data structure, make a copy of the list (
data[:]) if needed to have different sorted list - in insertion sort test for
(j >= 0)before testing value in list, -1 is a valid list index
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels