7
occams
6y

More marks for a bubble sort.

For those of you that know the bubble sort you may share my frustration. I built a simple python program that took three integers and sorted them using a series or compound if statements using no built in low and max functions. Someone in my college class did the same thing but used a bubble sort and got higher marks. This angers me, I had to write an algorithim in a language I had barely touched but this person just used old scrappy code and got higher marks. Only a little tease but you get the picture, bubble sort is inefficient.

Comments
  • 1
    Just call sort function 😉
  • 3
    Unless the task clearly said that you get 3 integers and you have to sort them with absolute minimum of resources, which I doubt is the case, I agree that he should get a higher grade.
Add Comment