Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
L5- part b
#python 3.5.2 import time # Bubble Sort # Selection Sort # Insertion Sort # sorted unsorted part # Example: [ 54 | {26}, 93, 17, 77, 31 ] # sorted unsorted # -------> [ 26, 54 | 93, 17, 77, 31 ] # -------> [ 26, 54, 93 | 17, 77, 31 ] # -------> [ 17, 26, 54, 93 | 77, 31 ] # Idea: Split the list into 2 parts - sorted and unsorted part # Take the first element in "unsorted part" and # Analyze its location in the "sorted part" # Hints:
run
|
edit
|
history
|
help
0
on_off
вложенные циклы Квадрат
two-digits-puzzle
Return nth fibonacci number using memoization
Itertools-Cartesian-Product-var-args
InsertionSort
Calendar 12 months
standardization
Singleton Design in Python
Reverse number