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

Similar Problems from Web Search

Share

sort(2+1,1+1+1,2)
Add 1 and 1 to get 2.
sort(3,1+1+1,2)
Add 2 and 1 to get 3.
sort(3,2+1,2)
Add 1 and 1 to get 2.
sort(3,3,2)
Add 2 and 1 to get 3.
3
To sort the list, start from a single element 3.
3,3
Insert 3 to the appropriate location in the new list.
2,3,3
Insert 2 to the appropriate location in the new list.