mirror of
https://github.com/Xevion/contest.git
synced 2025-12-08 20:06:40 -06:00
question 32 test 01 array.sort sorting method quicksort/timsort
This commit is contained in:
@@ -531,6 +531,11 @@ It replaces spaces, commas, brackets, and all other characters that *aren't dig
|
|||||||
|
|
||||||
## Question 32
|
## Question 32
|
||||||
|
|
||||||
|
This is a more "trivia-like" question that most. Arrays.sort, in *Java SE 7*.
|
||||||
|
The array in question is a primitive array, which is important, as the Arrays.sort() method will sort based on the content of the array.
|
||||||
|
If the array is for objects, it will use "Timsort", which is a hybrid of *Merge Sort* and *Insertion Sort*.
|
||||||
|
Otherwise, for primitives, it will use *Dual-Pivot Quicksort*.
|
||||||
|
|
||||||
## Question 33
|
## Question 33
|
||||||
|
|
||||||
## Question 34
|
## Question 34
|
||||||
|
|||||||
Reference in New Issue
Block a user