all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
3
Task/Sort-stability/Mathematica/sort-stability-1.math
Normal file
3
Task/Sort-stability/Mathematica/sort-stability-1.math
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
mylist = {{1, 2, 3}, {4, 5, 6}, {5, 4, 3}, {9, 5, 1}};
|
||||
Sort[mylist, (#1[[2]] < #2[[2]]) &]
|
||||
#[[Ordering[#[[All, 2]]]]] &[mylist]
|
||||
2
Task/Sort-stability/Mathematica/sort-stability-2.math
Normal file
2
Task/Sort-stability/Mathematica/sort-stability-2.math
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{{1, 2, 3}, {5, 4, 3}, {9, 5, 1}, {4, 5, 6}}
|
||||
{{1, 2, 3}, {5, 4, 3}, {4, 5, 6}, {9, 5, 1}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue