Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

insertion sorting algorithm

  1. martian94

    Python Insertion sort

    Hello! This time the class is tasked with insertion sorting and we've been provided with pseudocode. This far my code is this: number_list = [5,3,1,2,4,7,6] bytter = 0 for i in range(1,len(number_list)): j = i swaps_this_far = 0 while j > 0 and number_list[j-1] > number_list[j]...
Back
Top Bottom