MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / tim_sort

Function tim_sort

src/sorting/tim_sort.rs:84–110  ·  view source on GitHub ↗

Sorts a slice using Tim sort algorithm. This function sorts the provided slice in-place using the Tim sort algorithm. # Arguments `arr` - The slice to be sorted.

(arr: &mut [T])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

compute_min_run_lengthFunction · 0.85
insertion_sortFunction · 0.70
mergeFunction · 0.70
lenMethod · 0.45

Tested by

no test coverage detected