CodingReported in a candidate post, Aug 2024
Print largest and smallest element in array in minimal lines
Filed under BlackRock
The question
Write a code snippet to print the largest and smallest element in an array using as few lines of code as possible.
No write-up yet. Related questions below have one.
Related BlackRock questions
Collected from public candidate posts and coding forums. Updated Nov 2026.