Skip to content

ts-ds / IntegerSortingAlgorithm

Interface: IntegerSortingAlgorithm ​

Defined in: sort/algorithms.ts:43

A sorting algorithm that works with integers only and does not compare elements.

Extends ​

  • AlgorithmInfo

Properties ​

complexity ​

ts
complexity: Complexity;

Defined in: sort/algorithms.ts:33

Inherited from ​

ts
AlgorithmInfo.complexity

id ​

ts
id: string;

Defined in: sort/algorithms.ts:26

Short identifier, the same as the key in the sort object.

Inherited from ​

ts
AlgorithmInfo.id

inPlace ​

ts
inPlace: boolean;

Defined in: sort/algorithms.ts:32

Needs only O(1) or O(log n) extra memory.

Inherited from ​

ts
AlgorithmInfo.inPlace

kind ​

ts
kind: "integer";

Defined in: sort/algorithms.ts:44


name ​

ts
name: string;

Defined in: sort/algorithms.ts:28

English name, e.g. "Quick sort".

Inherited from ​

ts
AlgorithmInfo.name

sort ​

ts
sort: (array) => void;

Defined in: sort/algorithms.ts:45

Parameters ​

ParameterType
arraynumber[]

Returns ​

void


stable ​

ts
stable: boolean;

Defined in: sort/algorithms.ts:30

Equal elements keep their original order.

Inherited from ​

ts
AlgorithmInfo.stable

MIT License