Skip to main content
Sort
Tick mark Image
Evaluate
Tick mark Image

Similar Problems from Web Search

Share

sort(1,0,0,0,1,0,1)
Divide 1 by 1 to get 1.
1
To sort the list, start from a single element 1.
0,1
Insert 0 to the appropriate location in the new list.
0,0,1
Insert 0 to the appropriate location in the new list.
0,0,0,1
Insert 0 to the appropriate location in the new list.
0,0,0,1,1
Insert 1 to the appropriate location in the new list.
0,0,0,0,1,1
Insert 0 to the appropriate location in the new list.
0,0,0,0,1,1,1
Insert 1 to the appropriate location in the new list.