Show / Hide Table of Contents

    Class BubbleSort<T>

    A bubble sort implementation.

    Inheritance
    Object
    BubbleSort<T>
    Namespace: Advanced.Algorithms.Sorting
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class BubbleSort<T> : object where T : IComparable
    Type Parameters
    Name Description
    T

    Methods

    Sort(T[], SortDirection)

    Time complexity: O(n^2).

    Declaration
    public static T[] Sort(T[] array, SortDirection sortDirection = null)
    Parameters
    Type Name Description
    T[] array
    SortDirection sortDirection
    Returns
    Type Description
    T[]
    Back to top Generated by DocFX