list = [], list = empty list, for i in range(5):, REPEAT 5 times, list.append(int(input("Enter some numbers: "))), append to list(INPUT("Enter some numbers: ")), size = len(list), size = length(list), hole = 0, hole = 0, insertion = 0, insertion = 0, for i in range(size-1):, REPEAT size-1 times, insertion = list[i], insertion = list[index i], hole = i, hole = i, while hole > 0 and list[hole - 1] > insertion:, while hole > 0 AND list[index hole-1] > insertion then, list[hole], list[hole - 1] = list[hole - 1], list[hole], SWAP list[hole], list[hole - 1], hole = hole-1, INCREMENT hole -1, list[hole] = insertion, list[index hole] = insertion, print("Sorted list:", list), OUTPUT(sorted list)
0%
Insertion sort
શેર કરો
શેર કરો
40425089
દ્વારા
સામગ્રીમાં ફેરફાર કરો
સંગ્રહો
ગમ્યું
પ્રિન્ટ
એમ્બેડ
વધુ
સોંપણીઓ
લીડરબોર્ડ
વધુ બતાવો
ઓછું બતાવો
આ લીડરબોર્ડ હાલમાં ખાનગી છે. તેને સાર્વજનિક કરવા માટે
શેર
પર ક્લિક કરો.
આ લીડરબોર્ડને સ્ત્રોત નિર્માતા દ્વારા નિષ્ક્રિય કરવામાં આવ્યું છે.
આ લીડરબોર્ડ નિષ્ક્રિય છે કારણ કે તમારા વિકલ્પો સ્ત્રોત નિર્માતા કરતા અલગ છે.
વિકલ્પો પાછા લાવો
મેચ અપ
એ ઓપન-એન્ડેડ ટેમ્પલેટ છે. તે લીડરબોર્ડ માટે સ્કોર જનરેટ કરતું નથી.
લોગ-ઇન જરૂરી છે
દૃશ્યમાન શૈલી
ફોન્ટ્સ
સબસ્ક્રિપ્શન જરૂરી
વિકલ્પો
ટેમ્પલેટ બદલો
બધું બતાવો
પરિણામો ખોલો
કડીની નકલ કરો
ક્યુઆર કોડ
કાઢી નાંખો
આપોઆપ સંગ્રહ થયેલ છે:
?