Question bank › Arrays
Dsa Arrays Warm-up

Mini Max Sum

You are given an array of exactly five integers. Your task is to calculate the mini and max sums of the four integers. That is, you need to find the smallest possible sum of four of the five integers and the largest possible sum of four of the five integers. Input format: - A single line containing five space-separated integers. Output format: - Two integers representing the minimum and maximum sums, separated by a space. Example: Input: 1 2 3 4 5 Output: 10 14

Key concepts

arrayssumminmax

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.