← Barclays questions
CodingMediumReported in a candidate post, Aug 2021

Partition array for maximum alternating sum and max prime subsequence

Filed under Barclays

Partition an array of integers to maximize the alternating sum expression P1 - P2 + P3 - ... and find the maximum prime number constructible by any subsequence of a given binary string.

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

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