Back to feed
Salesforce
Salesforce
Interview Verified

Salesforce FutureForce AI Challenge 2026 - get maximum opportunity sum

Anonymous · Summer 2027 Intern - Software Engineer · Intern · OA · solved: yes
Interview: 2026-04 Posted: Apr 30, 2026
given a m x n matrix with values in one operation: 1. you can select one row 2. remove either first element or last element from the row if you remove first element, then second element becomes the first we can perform these operations exactly k times we have to maximize the sum of removed elements and print the sum 1<= n, m <= 100 1<= mat[i][j] <= 1e5 1<= k <= min(2000, m*n)