← Mastercard questions
CodingReported in a candidate post, Jul 2025

Pseudocode to find min and max in an array

Filed under Mastercard

Given an array of integers, write pseudocode (or code) that finds both the minimum and the maximum element. Aim for a single pass over the array and state the number of comparisons and the time…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Mastercard questions

Collected from public candidate posts and coding forums. Updated Nov 2026.