Skip to content

Arrays.sort(input) is mentioned as Quick Sort #1

Closed
@isarwarfp

Description

@isarwarfp

Say on FastInterstectionSol2.java class

   public void mergeSort(int[] input) {
        Arrays.sort(input);
    }

but Arrays.sort(input) is a quicksort
Sorts the specified array into ascending numerical order.
Implementation note: The sorting algorithm is a Dual-Pivot Quicksort by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch
as per the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions