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