Skip to content

EasyConceptData structures and algorithms

How do you find the largest and smallest value in a list?

What a good answer covers

Use the built-in max and min, which scan once in linear time, optionally with a key function for custom comparison.

More on Data structures and algorithms

Flashcards for this topic