← Mastercard questions
CodingReported in a candidate post, Sep 2024

Streams: numbers starting with 1 and array maximum

Filed under Mastercard

Using Java streams, (1) select the numbers in an array whose decimal representation starts with the digit 1, and (2) find the maximum value in an array.

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.