menu
close
Cheat Sheets
Algorithms
light_mode
menu
api
TypeScript Algorithms
Overview
Data Structures
DisjointSet
Edge
Graph
MatchingVertex
MinHeap
Network
NetworkEdge
Queue
ResidualEdge
ResidualNetwork
Stack
Vertex
WeightedEdge
WeightedGraph
Networks
BipartiteNetwork
EdmondsKarp
Searching
depthFirstSearch
lcs
LIS
Shortest Path
bfs
Sorting
countingSort
countingSortImplementationB
insertionSort
mergeSort
radixSort
selectionSort
Spanning Trees
kruskal
prims
Utils
isInteger
List
log
mapNumbersToString
mapStringToNumbers
max
maxIndex
NestedList
range
reversed
utils
maxIndex
function
code
maxIndex
[max: number, index: number]
@param
values
number[]
Numeric expressions to be evaluated.
@returns
The larger of a set of supplied numeric expressions. see
max
And the corresponding index