← Infosys questions
CodingEasy

Maximum Sum of all Triplets Score

Filed under Infosys

Given an array of length n where n is a multiple of 3, construct n/3 triplets (a, b, c) such that a <= b <= c. The score of a triplet is the middle element b. Find the maximum possible sum of scores…

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 Infosys questions

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