Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 10
What is the difference between sort() and sort_unstable() on slices?
A
sort_unstable may give wrong results
B
They are identical
C
sort is stable (equal elements keep order) and may allocate; sort_unstable is in-place and usually faster
D
sort is O(n^2)