Search for a tool
Maximum of a List

Tool to find the maximum value in a list of numbers, that is to say the largest possible value approaching plus infinity (if the numbers are positive) or 0 (if numbers are negative).

Results

Maximum of a List -

Tag(s) : Data Processing

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Maximum of a List' tool for free! Thank you!

Maximum of a List

List Maximum Finder

Loading...
(if this message do not disappear, try to refresh this page)

Answers to Questions (FAQ)

How to calculate the maximum of a list of numbers?

To find the biggest value (the maximum) among a list of numbers, go through the whole list of numbers and compare each values. The maximum in the list is the largest value found when all values have been compared.

Example: The list of 4 values: 6,4,8,2 has for maximum 8 (and for minimum 2)

For positive values, the maximum is the value closest to $ +\infty $ (plus infinity) and for negative values the maximum is the value that is closest to $ 0 $.

What is the algorithm of maximum calculation?

A naive algorithm for calculating a maximum of a list A of $ n $ integers is:function max(list) {
max = list[0]
for i = 1 , i < n {
if list[i] > max {
max = list[i]
}
}
return max
}

The algo complexity is of order $ n $, as there are $ n - 1 $ comparisons made, and at most $ n $ assignments made in the worst case, (if the table is sorted by ascending order) and in the best case only 1 assignment made (if the maximum is the first value in the list).

Source code

dCode retains ownership of the "Maximum of a List" source code. Any algorithm for the "Maximum of a List" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Maximum of a List" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Maximum of a List" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Maximum of a List" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/maximum-list
In a scientific article or book, the recommended bibliographic citation is: Maximum of a List on dCode.fr [online website], retrieved on 2025-04-16, https://www.dcode.fr/maximum-list

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Maximum of a List' tool for free! Thank you!


https://www.dcode.fr/maximum-list
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback